Let’s build a technical support assistant that remembers where we left off.
Create an assistant
transcriber
- We’re defining this to make sure the transcriber picks up the custom words related to our devices.model
- We’re using the OpenAI GPT-3.5-turbo model. It’s much faster and preferred if we don’t need GPT-4.messages
- We’re defining the assistant’s instructions for how to run the call.forwardingPhoneNumber
- Since we’ve added this, the assistant will be provided the transferCall function to use if the caller asks to be transferred to a person.firstMessage
- This is the first message the assistant will say when the user picks up.recordingEnabled
- We’re recording the call so we can hear the conversation later.assistant-request
to fetch a new configuration based on the caller every time someone calls.Buy a phone number
Configure your Server URL
assistant-request
to do this.First, we’ll create an endpoint on our server for Vapi to hit. It’ll receive messages as shown in the Assistant Request docs. Once created, we’ll add that endpoint URL to the Server URL field in the Account page on the Vapi Dashboard.Save the conversation at the end of the call
end-of-call-report
message to do this.At the end of each call, we’ll get a message like this:call.customer.number
and summary
fields to our database for the next time they call.Handle assistant requests.
Try calling it!