- 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.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: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.
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 aninitial_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:
agent_id
in our update request as follows: