Quickstart sending outbound calls with Vapi.
pizza
, side
s, & drink
s. Customers will be ordering 1 of each.
Outbound Scenario: We will imagine we are calling back a customer who originally called in to place an order. Our assistant is calling back to complete the ordering process with the customer.
Customers can order 3 items: 1 pizza, 1 side, & 1 drink. The assistant will call the customer (who got disconnected) & finish the ordering process.
Sign-up or Log-in to Vapi
Your dashboard may look a bit different if you already have an account with assistants in it. The main idea is that we’re in the dashboard now.
Create an Assistant
Ensure you are in the 'Assistants' dashboard tab, then this button will allow you to begin the assistant creation flow.
Blank Template
option.Ensure you are in the 'Assistants' dashboard tab, then this button will allow you to begin the assistant creation flow.
Vapi’s Pizza Front Desk
, for example):Name your assistant.
The assistant overview. You can edit your assistant’s transcriber, model, & voice — and edit other advanced configuration.
Model Setup
GPT-4
(from OpenAI) for this demo (though you’re free to use GPT-3.5
, or any one of your favorite LLMs).Set Your OpenAI Provider Key (optional)
We set our provider key for OpenAI so Vapi can make requests to their API.
Set a First Message
First Message
. This first message will be spoken by your assistant when either:Set the System Prompt
System Prompt
for our assistant. If you’re familiar with OpenAI’s API, this is the first prompt in the message list that we feed our LLM (learn more about prompt engineering on the OpenAI docs).The system prompt can be used to configure the context, role, personality, instructions and so on for the assistant.Since we are calling the customer back, we will tweak the base prompt a bit so the model understands the situation & new goal (recovering the order).A system prompt like this will give us the behaviour we want:System Prompt
field. Now the model configuration for your assistant should look something like this:Note how our model provider is set to OpenAI & the model is set to GPT-4.
Transcriber Setup
Set Your Deepgram Provider Key (optional)
Set Transcriber
Nova 2
& the language to en
for English. Now your assistant’s transcriber configuration should look something like this:Note how our transcriber is set to 'deepgram', the model is set to 'Nova 2', & the language is set to English.
Voice Setup
Jennifer
(female
, en-US
).You are free to use your favorite TTS voice platform here. ElevenLabs is
another alternative — by now you should get the flow of plugging in vendors into Vapi (add
provider key + pick provider in assistant config).You can skip the next step(s) if you don’t intend to use PlayHT.Set Your PlayHT Provider Key (optional)
API Key
& User ID
from them.Set Voice
playht
in the “provider” field, & Jennifer
in the “voice” field. We will leave all of the other settings untouched.Each voice provider offers a host of settings you can modulate to customize voices. Here we will leave all the defaults alone.
Provision via Vapi (faster)
Make sure you are in the 'Phone Numbers' dashboard tab.
415
for our phone number (these are area codes domestic to the US & Canada).Choose an area code for your phone number.
Here we can attach an assistant to the number for inbound calls (or perform an outbound call, with a select assistant).
Import from Twilio or Vonage
Buy a Phone Number via Twilio (optional)
The Twilio 'Buy a Number' page in the Twilio console.
Locate Twilio Account SID & Auth Token
We will want to navigate to the credentials section of our account.
Import via Dashboard
Click 'Import' in the 'Phone Numbers' tab of your dashboard.
The phone number detail page, we can configure our phone number here.
When we hit the call button, our assistant will make the outbound call to the phone number.