Inbound customer support
Build a banking customer support agent that can process inbound phone calls and assist with common banking issues.
Overview
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:
- Account lookup and verification via phone number
- Balance and transaction history retrieval
What You’ll Build:
- Retrieval tools and CSV knowledge bases for account/transaction data
- Voice test suites for automated quality assurance
- Inbound phone number configuration for 24/7 availability
Prerequisites
- A Vapi account.
Scenario
We will be creating a customer support agent for VapiBank, a bank that wants to provide 24/7 support to consumers.
1. Create a Knowledge Base
2. Create an Assistant
3. Configure an Assistant
4. Add Tools to an Assistant
Create a tool for retrieving account balance
-
Click
Create Tool
. -
Select
Function
as your tool type. -
Change tool name to
get_balance
. -
Add the following function description:
Function Description -
Scroll down to the
Knowledge Bases
section and add the following knowledge base:- Name:
accounts
Description:Use this to retrieve account information
File IDs:<File ID of your accounts.csv file>
- Name:
Create a tool for retrieving account transactions
-
Click
Create Tool
. -
Select
Function
as your tool type. -
Change tool name to
get_recent_transactions
. -
Add the following function description:
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>
-
Create a tool for looking up account
-
Click
Create Tool
. -
Select
Function
as your tool type. -
Change tool name to
lookup_account
. -
Add the following function description:
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:
Add tools to assistant
- Click
Assistants
in the left sidebar. - Make sure
Tom
is selected in the list of assistants. - Scroll down until you see
Tools
accordion. Expand it. - In the expanded accordion, add
get_balance
andget_recent_transactions
tools. - Click
Publish
to save your changes.
Add predefined functions to assistant
- While we’re here, let’s give our assistant ability to hang up.
- Expand the
Predefined Functions
accordion. - Toggle
Enable End Call Function
toOn
. - Here you can add a forwarding phone number to transfer the call to (in case assistant is unable to resolve the issue).
- Click
Publish
to save your changes.
5. Assign a Phone Number to an Assistant
6. Create a Test Suite for an Assistant
Create a new test suite
- On the
Test Suites
page, clickCreate Test Suite
. - Click on
New Test Suite
and change the name toSupport Hotline Test Suite
. - Set the
Assistant
toBobby
. - Set the
Phone Number
toVapi Support Hotline
. - Under
Test Cases
, clickGenerate Tests
. - Use the following prompt to generate the test case:
- Accept the generated test case.
7. Run the Test Suite on an Assistant
Next Steps
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:
- Knowledge Bases - Attach a Trieve KB so the agent can answer FAQs inline.
- External Integrations - Configure integrations with Google Calendar, Google Sheets, Slack, etc.