Supademo Logo

Vapi Phone Calling Tool

Learn how to create a tool that uses Vapi to make a phone call and confirm or negotiate a demo time with an attendee.
Get Started
Blurred step underneath chapter
Demo Image 2
Demo Image 3

Vapi Phone Call Tool

S

Updated: Jul 29, 2024

Description

Learn how to create a tool that uses Vapi to make a phone call and confirm or negotiate a demo time with an attendee.

Steps

1
Vapi Phone Calling Tool
2
On the tools page, click on "New".
3
Next up, click on "Create Tool".
4
Give it an phone emoji icon.
5
Call it "Call and confirm or re-negotiate demo time".
6
Video step
7
Describe what the tool does, e.g. "Call attendee to confirm that they can still attend the demo time we have booked in for them. If not, re-negotiate over the phone, and book in a new time".
8
After, click on "Add input".
9
Add a "Long text input".
10
Name the input "Availability".
11
Video step
12
Describe the input and it's expected format. e.g. "List of available demo times in iso format".
13
Video step
14
Paste in list of available demo times. This is an example of output that is produced by the "Get calendar availability tool", which you can learn how to build here: https://app.supademo.com/demo/clxjx5jw32kh0t2oeazi7xj5z
15
Video step
16
Call the variable used to access this input a more descriptive name, like "availability".
17
Video step
18
Click on "Text input".
19
Call it "Phone number".
20
Video step
21
Write a description. In this case our phone number must have an area code, so we use the description to help the agent understand what phone number format is expected: "Phone number with area code, e.g. +61[rest of number]".
22
Video step
23
Change the variable name to "phone". You can give an example phone number too if you want. I chose not to.
24
Click on "Text input".
25
Give it the name "Demo start".
26
Describe the input use and format, e.g. "Demo start date and time in iso format".
27
Give an example of the format expected for the demo start time, e.g. "2024-06-24T09:00:00+10:00". This will help the agent work out how to convert a natural language time to the correct format.
28
Video step
29
After, click on "Text input", and add an input for: - Name: Name. - Description: The name of the call recipient.
30
Next up, click on "Add step".
31
Select the "Make Phone Call" tool step. There is also a make a phone call with Vapi step, but this one lets you use Relevance's Vapi account and number to make a call instead of setting up your own.
32
Click on the "Phone Number" field, and enter "{{" to open the variable selector. Click on "phone" to pull in the phone number input variable we created earlier.
33
Change the model to "GPT-4".
34
Write a prompt to describe how your agent should behave over the phone call. You can use the one that I wrote as an example.
35
In the assistant prompt field, you can write a call script for what you want your agent to say while on the call, and how to handle different responses. You can use a mix of direct call script quotes and meta guidance like I did. Experiment! :)
36
You can reference input variables in your phone call prompt too.
37
Click on the checkbox under "Wait for Finish", so the call details are returned after the call has ended, rather than as soon as the call has started.
38
Click the plus button to add another tool-step.
39
Select the "VapiAI - Call Details" tool step.
40
In the "Call Id" field, type in "", where the variable name referenced is the same as the make a phone call tool-step variable.
41
Video step
42
Finally, click on "Save" to save your tool. Now it's ready for you to equip an agent with!
Vapi Phone Call Tool