Video summary

Cómo Conectar tu Teléfono TWILIO a tu Agente IA en VAPI (para CUALQUIER PAÍS)

Main summary

Key takeaways

Technology

Technological goal

Connect an AI agent built in Vapi (referred to as “BAPI” in subtitles) to a Twilio phone number so the agent can:

  • Receive calls (inbound)
  • Make calls (outbound)

Key requirement: the AI agent must be associated with a phone number that supports voice.


Prerequisites / prior setup (Vapi side)

  • The AI agent must already be created on the Vapi platform.
  • The referenced video points to earlier tutorials covering:
    • Creating the AI agent
    • Configuring it
    • Setting up tools
    • A step-by-step guide

Twilio phone acquisition (country-dependent process)

If you are not in Spain

  1. In the Twilio (iLO) app, go to Phone Numbers
  2. Choose Manage → Buy a Number
  3. Select the country
  4. Under Capacity, select Voice
    • Ensure voice calling is enabled
    • SMS/MMS-only numbers won’t work
  5. Search and purchase an eligible phone number

If you are in Spain (stricter regulation)

Twilio may not allow straightforward anonymous number buying due to Spanish rules. Extra steps include:

  1. Go to Phone Numbers → Regulatory Compliance
  2. Create a Regulatory Bundle
    • Select Spain
    • Choose Type of Phone Number: Local
    • Choose Individual or Business
    • Provide required identity/tax information
    • Submit and wait for approval
  3. Create and validate an Address
    • Create New Address
    • Enter real company/individual address data
    • If validation fails, retry as the creator notes you may need formatting changes (e.g., commas)
  4. Use approval codes from:
    • the Regulatory Bundle
    • the Address
  5. Apply for an exclusive number
    • Select Spain, Local phone type, and Voice
    • Provide required account/tax fields
    • Monthly cost is shown; delivery is mentioned as ~1–3 days

Importing the Twilio number into Vapi

In Vapi:

  • Go to Phone Numbers → Create → Import data from Twilio

You’ll need the credentials/data mentioned:

  • Account SID / “Account Seat” (from Twilio)
  • Auth token / “Ad Out Token
  • Phone Label

After import, the phone becomes available for calls in/out via Vapi.


Inbound calls (simpler part)

After importing the Twilio number into Vapi:

  • In Inbound Settings, assign/select the assistant (the created AI agent)

Demo result: the assistant answers using the imported phone line and speaks through the agent.


Outbound calls + automation (more complex part)

The video uses make.com to automate outbound calling (triggered by new leads).

Workflow described

  1. Trigger: a new lead appears in a data source
    • Example: Google Sheets
    • In practice: could be a CRM (e.g., GoHighLevel)
  2. In the sheet/CRM, store variables such as:
    • Name (e.g., “Victor”)
    • Phone number
  3. Use Tools / variables to map spreadsheet fields into the AI call payload
  4. Format the phone number:
    • Add +country code (example: +34)
  5. Store the Vapi API key and retrieve IDs:
    • Assistant ID
    • Phone ID
    • (Both are referenced from Vapi settings pages)
  6. Create an HTTP request (POST) in make.com:
    • URL: Vapi “Call phone” function
    • Body type: as required (subtitles indicate “rw”)
    • Content type: JSON
    • Send JSON including:
      • selected assistant
      • variables (e.g., First Name, current day, customer fields, etc.)
  7. Test automation:
    • Run the trigger to place a real call
    • The demo shows the assistant greeting and asking about a mattress purchase and store availability (including business hours), confirming personalization and successful integration

Key speakers/sources

  • Main speaker: the video creator (unnamed), who runs the demo with an assistant named “Sandra”
  • Tools/sources mentioned: Vapi, Twilio, make.com, Google Sheets, CRM (e.g., GoHighLevel)

Original video