Cysora

Connect a Twilio phone number

Connect a Twilio phone number so your AI agent answers calls on it. You paste your number, Account SID and Auth Token into Cysora, and Cysora sets the number's voice webhook for you.

About 10 minutesOpen in your dashboard
On this page

What you need

  • A Twilio account with a voice-capable phone number in that same account.
  • Your Twilio Account SID (it starts with AC) and Auth Token (see the first section below).
  • A number that is free to hand over. Connecting replaces how that number currently handles voice calls.

Find your Account SID and Auth Token

  1. 1

    Open the Twilio Console

    Sign in at console.twilio.com. On the Console home page, find the Account Info panel.

  2. 2

    Copy both values

    Copy the Account SID (starts with AC) and the Auth Token (choose Show or the copy button to reveal it). Use the main account's values, from the account that owns the number.

  3. 3

    Check your number

    In Phone Numbers, then Manage, then Active numbers, note the number you want to use, in E.164 format like +15551234567.

Connect your number

  1. 1

    Open the Phone tab

    In the sidebar, choose Channels (under Deployments), then the Phone tab.

    Channels, Phone tab: Telnyx, Twilio and Plivo provider buttons and the number and credential fields.
  2. 2

    Choose Twilio

    Select Twilio as the provider.

  3. 3

    Enter your number

    In Twilio number, type the number in E.164 format: a plus sign, the country code and the number with no spaces, like +15551234567.

  4. 4

    Paste your credentials

    Enter your Twilio Account SID and Twilio Auth Token. Cysora stores the token encrypted and never shows it again.

  5. 5

    Connect

    Choose Connect. Cysora sets the number's voice webhook to https://www.cysora.com/api/webhooks/twilio/voice (HTTP POST) and its status callback, so you don't change anything in Twilio.

Connecting replaces the number's current voice setup, including any TwiML app or SIP trunk it uses. Don't connect a number that still takes calls you need.

Set transfer and office hours, then go live

  1. 1

    Transfer number (E.164)

    Optional. Enter a number with its country code, like +15557654321, where calls can be passed to a person. Leave it blank and Save activates the agent as AI-only: callers cannot reach a human from the call.

  2. 2

    Language

    Enter the language code the agent should speak, such as en.

  3. 3

    Office hours

    Set Office hours start (HH:mm) and Office hours end (HH:mm) in 24-hour time, like 09:00 and 17:00, and your Timezone (IANA), like America/New_York or Asia/Karachi. These hours control when the AI answers, not just when a person is available. Outside them, callers hear an after-hours message and the call ends.

  4. 4

    Save and activate

    Choose Save & activate. The button area shows Saved — AI live when your agent is answering. You don't need to set any environment variables or code: everything is saved in Cysora.

Disconnecting

Disconnect on the Phone tab clears the number's voice webhook in Twilio, then unlinks it from your agent. Calls to the number stop reaching your agent straight away. Only use it when you really want to stop; you can connect again later.

Check it worked

  • The Phone tab shows your number as connected and your agent as live.
  • In the Twilio Console, the number's A call comes in setting points to the Cysora voice webhook.
  • During office hours, call the number from another phone: your agent answers.

If it doesn't work

Connect says the Account SID and Auth Token are required, or the SID is invalid.

Fill in both fields before choosing Connect. The SID starts with AC followed by 32 letters and numbers. If you reset your Auth Token in Twilio, paste the new one.

The number isn't accepted or isn't found.

Use E.164 format: + then the country code and number with no spaces or dashes, like +15551234567. The number must be in the same Twilio account as the Account SID.

Connect says the number is already in use.

Another Cysora account still has this number connected. Ask them to disconnect it, or contact support.

Calls ring but your agent doesn't answer.

Check you chose Save & activate, not just Connect, and that the call is inside your office hours in the timezone you set. In the Twilio Console, check the number's voice webhook is still https://www.cysora.com/api/webhooks/twilio/voice. If it was changed, choose Connect again.

You're on a Twilio trial account.

Trial accounts play a Twilio trial message before your agent answers and can only call phone numbers you have verified in Twilio, which can block transfers. Upgrade the Twilio account before going live.

Callers hear the after-hours message.

The call came in outside Office hours start and end. Check the hours use 24-hour HH:mm and the Timezone (IANA) is your own, like Asia/Karachi.

Calls stopped after someone chose Disconnect.

Disconnect clears the voice webhook. Enter the number and credentials again, choose Connect, then Save & activate.

Was this helpful?

Related guides

Still stuck?

Ask Cy in your dashboard, or email us and your account rep will help.