Prerequisites
- Node.js 20 or higher
- A Twilio account with:
- Account SID
- Auth Token
- Phone Number
- An Ultravox API key
Set-up and Installation
Get the Source Code
Copy all the code locally from the
twilio-outgoing-quickstart-js example.Making Your First Call
The AI assistant will introduce itself as Steve and have a conversation with the recipient. To make a call you need to update the variables for keys and phone numbers. You may also update the system prompt.Update Configuration
TWILIO_ACCOUNT_SID: Your Twilio Account SID from the Twilio ConsoleTWILIO_AUTH_TOKEN: Your Twilio Auth TokenTWILIO_PHONE_NUMBER: The Twilio phone number to make calls fromDESTINATION_PHONE_NUMBER: The recipient’s phone numberULTRAVOX_API_KEY: Your Ultravox API keySYSTEM_PROMPT: Instructions for the AI agent’s behavior