Tutorial
Build a virtual personal finance advisor with generative AI
Take advantage of watsonx Assistant, Watson Discovery, and NeuralSeek to build a generative AI powered Virtual Personal Finance AdvisorVirtual assistants are increasingly relevant in both personal and professional settings, providing immediate, personalized, and efficient support. They enhance productivity by automating routine tasks, offering quick access to information, and streamlining processes—all of which save time and resources.
Role of virtual assistants in personal finance
In personal finance, virtual assistants can help users manage budgets, track spending, and plan for financial goals. They make financial management more accessible and less intimidating. With 24/7 availability, these assistants offer consistent support whenever needed, learning and adapting to individual preferences. This ability to deliver tailored advice and solutions is crucial in today’s world, where demand for personalized services is high. Ultimately, virtual assistants improve efficiency, convenience, and user experience across various contexts.
The value of financial literacy
As Money Vehicle highlights:
"... financial literacy is instrumental in enhancing decision-making skills. It enables individuals to weigh their options carefully, understand the potential outcomes of their financial decisions, and navigate the challenges of financial planning and investment. This competency is especially significant in a world where financial options are increasingly complex and abundant."
Financial literacy is essential for personal financial well-being, securing one’s future, and contributing to the overall prosperity of society. It is a life skill that should be nurtured and developed over time.
Building a virtual personal finance advisor is crucial in today’s fast-paced, technology-driven world. It democratizes access to personalized financial guidance, enabling individuals from all backgrounds to make informed financial decisions anytime and anywhere.
Benefits of virtual assistants for Financial Services companies
For financial services companies, a virtual personal finance advisor plays a key role in reducing debt delinquency by offering personalized, real-time guidance based on individual financial situations. These advisors also enhance users’ financial well-being by providing actionable tips and strategies for managing finances.
Companies from the financial services industry, as well as other industries, can reap significant benefits by leveraging virtual assistants, enhancing both operational efficiency and customer experience. Here are some key advantages:
- 24/7 Customer Support: Virtual assistants provide round-the-clock service, allowing customers to get help with their financial inquiries at any time. This reduces wait times and improves customer satisfaction by offering immediate assistance outside of traditional business hours.
- Cost Efficiency: Implementing virtual assistants can reduce operational costs associated with customer service. By handling routine inquiries and transactions, virtual assistants can free up human agents to focus on more complex issues, optimizing workforce allocation.
- Scalability: Virtual assistants can easily scale to handle increasing volumes of customer interactions without the need for proportional increases in staff. This is particularly valuable during peak times, when customer inquiries may surge.
- Personalized Customer Interactions: By analyzing customer data, virtual assistants can offer tailored advice and product recommendations, enhancing the personalization of services. This can lead to higher customer engagement and better satisfaction as customers feel understood and valued.
- Improved Customer Experience: Virtual assistants can streamline the customer journey by providing quick and accurate responses, guiding users through processes like account management, loan applications, or investment inquiries. A smooth and efficient experience can lead to higher customer retention rates.
- Reduced Human Error: Virtual assistants operate with consistent accuracy, reducing the likelihood of errors in handling customer inquiries, processing transactions, or providing information. This reliability can boost customer trust and reduce the costs associated with error correction.
- Increased Sales Opportunities: Virtual assistants can identify and capitalize on cross-selling and upselling opportunities by analyzing customer profiles and transaction histories. By suggesting relevant financial products or services, they can drive additional revenue for the company.
- Seamless Integration with Other Services: Virtual assistants can be integrated with other digital platforms, such as mobile apps and websites, providing a consistent and unified customer experience across multiple channels. This enhances the overall digital presence of the company.
By adopting virtual assistants, financial services companies can improve operational efficiency, enhance customer satisfaction, and drive growth, making it a strategic investment in the competitive financial landscape.
This tutorial provides a step-by-step guide to building a virtual personal finance advisor using IBM Cloud's low-code services, including watsonx Assistant, Watson Discovery, and NeuralSeek.
By using natural language understanding (NLU), watsonx Assistant interprets user requests and accesses data from a KnowledgeBase via Watson Discovery. The system then delivers human-like interactions with the help of NeuralSeek Large Language Model (LLM) capabilities.
Prerequisites
To follow this tutorial, ensure you have the following:
- IBM Cloud Account
- Watson Discovery Plus – This service costs $500 USD per instance/month
- watsonx Assistant – Plan Lite, or higher
- NeuralSeek – Various plans available
- Prepare a PDF document containing personal finance best practices
Estimated Time
This tutorial should take approximately 1 hour to complete.
Steps
Configuring the Watson Discovery service
Log in to your IBM Cloud account and load the Watson Discovery instance from the
Resource ListunderAI/Machine Learning.
Copy your
API KeyandURLto a secure location for later use.
Click on
New projectto create a collection.
Enter a
Project nameand selectConversational Searchas the project type, then click Next.
Specify a
Collection name, choose your preferred language (the language of the KnowledgeBase), and click Drag and drop files or upload to add your personal finance material (for example, budgeting or expense management best practices).Once the file(s) are uploaded, click
Finish.

Navigate to
Manage Collectionsfrom the left-hand menu.
Verify your collection details by clicking on the collection name created in step 3.


To integrate Watson Discovery with NeuralSeek, you’ll need the
Watson Discovery Project ID.In the left-hand menu, select
Integrate and Deploy.
- Go to the
API Informationtab, then clickCopyto save theProject IDin a secure location.

- Go to the
Configuring the NeuralSeek service
Log in to your IBM Cloud account and load the NeuralSeek instance from the
Resource ListunderAI/Machine Learning.
Click
Launchto open the NeuralSeek tool.
Configure NeuralSeek
Basics
Enter your company or organization name.
Select
Output languageas "English" (it’s recommended that the output language matches the KnowledgeBase and question language).Click
Next.
Data
As the KnowledgeBase will be configured later, click
Next.
Organize
Leave the settings unchanged, ensuring the selections match the defaults provided. Click
Next.
Tune
In the
Which of these looks more like your datasection, selectImportant phrases are surrounded by many lines of text that explain them.In the
Choose the option below that best describes your data requirementssection, selectI want to give lots of information to the LLM, and give it leeway to decide the answer. You can test the other option later to compare results.In the
Choose the option below that best describes your data currencysection, selectAll my documents are current and relevant.Click
Next.
Q&A
To generate Q&A content for the NeuralSeek instance, click
Auto-Generate Questions.

Review the auto-generated questions and click
Submit.
Finish the Q&A Bootstrap
After reviewing the answers generated for the auto-generated questions, you can download the report as a CSV file by clicking
Download Report.
Integrate NeuralSeek with watsonx Assistant. Retrieve API key and OpenAPI file.
Select the
Integratetab and copy theAPI Keyto a secure location.
Download the
Custom Extension OpenApi Fileto your preferred location.
Connect NeuralSeek to the KnowledgeBase. To configure KnowledgeBase connection:
In the
Configuretab, clickKnowledgeBase Connection.
Select
Watson Discoveryfrom theKnowledgeBase Typeoptions.Choose
English(or your preferred language) underKnowledgeBase Language.Paste the Watson Discovery credentials (Discovery Service URL, API Key, and Project ID) that you saved earlier.
Click
Save.
Finalize configuration.
Name and save the version.
Enter a name and description for this version of NeuralSeek and click
Save.
Test NeuralSeek.
Go to the
Seektab and type a question in the text field (e.g.,Why budgeting?), then pressEnterto review the answer generated by NeuralSeek.

Trace the answer source.
Scroll to the
KnowledgeBase Contextsection at the bottom of the screen and click on the document name you uploaded in Watson Discovery (Step 3 ofConfiguring the Watson Discovery serviceprocedure) to trace where the answer came from.

Configure watsonx Assistant and integrate with NeuralSeek
In your IBM Cloud Account, load the watsonx Assistant instance from the Resource List under AI/Machine Learning.

Write the name of your assistant in the
Assistant namefield, add a description, and select the language of your assistant.
Select
Webfrom theWhere do you plan on deploying your assistantoptions, then clickNext. The remaining questions are optional and for statistical purposes, so you can skip them.
Customize the Chat UI. This step is to configure the look and feel of the Virtual Assistant chat. We will skip this step for now. Click
Next, thenCreate, and finallyLet’s go.

Integrate watsonx Assistant with NeuralSeek. In the left-hand menu, scroll to the bottom and select
Integrations.
Go to the
Extensionssection and clickBuild custom extension.
Click
Next, then give your extension a name and optional description.

Integrate NeuralSeek with the OpenAPI File. Drag and drop the NeuralSeek OpenAPI file saved from step 4 of the
Configuring the NeuralSeek serviceprocedure.

Click
Next, review the information, then clickFinish.

Add the NeuralSeek Extension. Find the newly created
NeuralSeekcustom extension and click Add +. In the dialog window, click Add.

Add Credentials.

Enter the NeuralSeek API key saved from from step 4 of the
Configuring the NeuralSeek serviceprocedure. ClickNext, and finally clickFinish.
Create a watsonx Assistant Action
In the left-hand menu, select
Actions.
Upload the Action.
Go to the
Upload/Downloadtab.Download the
ejemplo-action.jsonfile from the Github repository.Drag and drop the
ejemplo-action.jsonfile into the interface, then clickUpload.Click
Upload and Replace, then clickCloseto finalize the action upload.



Configure the NeuralSeek Action
Click on the
NeuralSeekaction.In the left-hand panel, click on
Step 3(highlighted in red).At the bottom of the screen, click
Edit extension.

Configure the NeuralSeek Extension.
In the
Extensionfield, select theNeuralSeekextension.In the
Operationfield, selectSeek an answer from NeuralSeek.In the
Parametersfield, set thequestiontoSession variables, then choosequery_text.Click
Optional parametersat the bottom of the dialog window.


Configure the
session_idparameter.Scroll to the bottom of the parameters list and locate
user_session.system.session_id.Click
To, selectEnter text, and input any number. For this case, enter10002, then clickApply.


Configure the
user_idParameter. Locateuser_session.metadata.user_id, clickTo, selectEnter text, and input any text, then clickApply.

After configuring the parameters, click the
Applybutton in the parameters configuration window.
Test the Personal Finance Advisor
Save and preview.
Click the
Saveicon in the upper right corner.Then, click the
Previewbutton located at the bottom right.


Test a Query.
Try asking something like: "What are the benefits of saving, and can you give me a couple of tips to start saving, please?"
Review the response provided by the virtual assistant to ensure everything is functioning as expected.

Optional: Personalize the user interface (UI)
In the left-hand menu, select
Preview.
Click the
Change background +button.
Choose your preferred option (either by entering a URL or uploading an image).
Once selected, click the
Continuebutton to apply your changes.
Demonstration video
Watch the demontration video of the Personal Finance Advisor:
Summary and reference information
This tutorial provided a step-by-step guide on building a Virtual Personal Finance Advisor using IBM Cloud services such as watsonx Assistant, Watson Discovery, and NeuralSeek. It covered the configuration of these services, integration of AI tools, and setting up personalized interactions with natural language understanding. The tutorial also included optional steps to customize the user interface for a tailored experience. By following these instructions, you can create a scalable and efficient virtual assistant to help manage personal finance tasks.
See the following reference information - The role of technology in improving financial literacy.