Build a banking support agent with function tools, CSV knowledge bases, and voice test suites. The agent handles account verification, balance inquiries, and transaction history via phone calls.
Agent Capabilities:
What You’ll Build:
We will be creating a customer support agent for VapiBank, a bank that wants to provide 24/7 support to consumers.
accounts.csv and transactions.csvUpdate First Message to:
First, create this system prompt:
Then update your assistant:
Copy the system prompt above and paste it into the System Prompt field in your assistant configuration.
Configure the LLM settings to your liking.
Click Create Tool.
Select Function as your tool type.
Change tool name to get_balance.
Add the following function description:
Scroll down to the Knowledge Bases section and add the following knowledge base:
accountsUse this to retrieve account information<File ID of your accounts.csv file>Click Create Tool.
Select Function as your tool type.
Change tool name to get_recent_transactions.
Add the following function description:
Scroll down to the Knowledge Bases section and add the following knowledge bases:
Name: accounts
Description: Use this to retrieve account information
File IDs: <File ID of your accounts.csv file>
Name: transactions
Description: Use this to retrieve transactions
File IDs: <File ID of your transactions.csv file>
Click Create Tool.
Select Function as your tool type.
Change tool name to lookup_account.
Add the following function description:
Scroll down to the Knowledge Bases section and add the following knowledge bases:
accountsUse this to retrieve account information<File ID of your accounts.csv file>Test Suites page, click Create Test Suite.New Test Suite and change the name to Support Hotline Test Suite.Assistant to Tom.Phone Number to Vapi Support Hotline.Test Cases, click Generate Tests.Run Test Suite to execute the tests.Just like that, you’ve built a 24/7 customer support hotline that can handle inbound calls, create support tickets, and run automated tests to ensure it’s working as expected.
Consider the reading the following guides to further enhance your assistant: