Configuring your number
Setting up our agent to function as a receptionist
Now that we have a number set up on Vocode, our agent is ready to start accepting calls. Vocode Agents have several different parameters we can use to control its behavior. We’re going to be setting up our receptionist by modifying:
- Voice -> this is the voice of our agent
- Prompt -> the prompt is the instruction we give our agent that controls its behavior
- Actions -> actions are things that the agent can do like end the conversation or make an API request to an external service (like a calendar booking software)
Setting up our receptionist
Voice
First, let’s create a new voice via ElevenLabs and grab the voice ID.
For other voice options curated by Vocode, check out our page on Voices. Voice clones are also available on demand for enterprise accounts.
Prompt
The prompt is how our agent will know what instructions to follow on the call. We’re going to set up a prompt suitable for a receptionist agent and create a prompt object in the API:
For more guidance on how prompts work check out our guide on Prompt Objects and Prompt Engineering.
Actions
Finally, for our receptionist to be complete, we’re going to want to give it the ability to actually do two things:
- End the conversation
- Make an API call to our calendar software to book calendar appointments.
Let’s set up both of these actions using the API:
For more information on how to set up actions, check out our Actions guide and our new beta feature External Actions which we are using here to make the calendar API call.
Updating our agent
Now that we’ve created our voice, prompt, and actions, we can run a query to update our agent as follows. We’ll
also add an initial_message
to our agent to greet people who call in.
We’ll have to first grab the agent_id
in order to make the agent/update
request. Here’s how we can grab it from our
phone number:
Which should output a UUID for our agent.
And now we can use the agent_id
in our update request as follows:
Now our agent is ready to be a receptionist! Check it out by giving it a call.