Voice (phone number)

Make your agent call phone numbers, and receive inbound phone calls.

Voiceflow integrates with Twilio, allowing you to connect a phone number to your agent. Agents with a phone number connected can receive inbound calls and programatically make outbound calls, subject to concurrency limits associated with your plan. Our voice integration is often used for customer support hotlines, lead qualification workflows, and appointment scheduling.


Setting up voice

To use our voice features, you'll need a Twilio account and a Twilio phone number. A free trial account is enough to test out our voice integration. Once you've created a Twilio account, follow the instructions below to connect a phone number to your agent.

Written version

To set up the Twilio integration, you'll need to have a Twilio account with an active phone number, as well as Editor permissions in your Voiceflow workspace. Here's how to get started:

  1. Generate Twilio API credentials
    1. Log in to your Twilio console and navigate to the Account Info section on the dashboard.
    2. Save the Account SID and Auth token for your account.

❗️

Before proceeding, ensure you've setup a phone number in your Twilio account that is ready to connect to your agent.

  1. Enable the integration in Voiceflow (from Workspace)

    1. Open your Voiceflow workspace and go to Phone Numbers.

    2. Click Import Numbers and input the number you want to use.

    3. Enter your Twilio Account SID, Auth Token.

    4. Optionally, add a friendly name for your number.

    5. Click Import to connect your accounts.

  2. Enable the integration in Voiceflow (from Agent)

    1. Open your Voiceflow agent and go to the Integrations > Telephony tab.
    2. Follow same steps as above.
  3. Assign a phone number to your agent

    1. Open your agent and go to the Integrations > Telephony tab.

    2. Under Phone Numbers, click Assign existing number.

    3. Choose a number and the environment (Development/Production) to route calls to.

      📘

      Reminder: Agents come with two built-in environments: the development and production environments. The development environment is what you edit with the Voiceflow canvas, while the production environment is the version that is automatically created (or updated) when you publish your agent.

  4. Test the integration by calling your agent from a real phone.

Change the Agent Assigned to a Phone Number

  1. Go to the Integrations > Telephony tab for the agent you want to unassign.
  2. Under Phone Numbers, click the Unassign option in the more menu next to the number.
  3. Navigate to the same tab in the agent you want to reassign the number to.
  4. Click Assign existing number and select the newly unassigned number.
  5. Choose the environment and click Assign number.

Best Practices & Tips

  • Assign separate phone numbers for your Development and Production agent environments. This ensures that test calls don't interfere with production traffic.
  • Verify the caller experience by dialing the phone numbers yourself before publicizing them to end users.