Logo: Twilio Setup

Twilio Setup

OrganisatiounBeléift
vellum-ai
twilio-setup

Configure Twilio credentials and phone numbers for voice calls

Iwwersiicht

Editeurvellum-ai
Repositoryvellum-assistant
Skill-Nummtwilio-setup
Stären
1.4K
Forks
208
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    vellum-ai huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Twilio Setup an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/vellum-ai/vellum-assistant/tree/main/skills/twilio-setup
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vellum-ai/vellum-assistant.git /tmp/vellum-assistant
mkdir -p .claude/skills
cp -r /tmp/vellum-assistant/skills/twilio-setup .claude/skills/twilio-setup
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Twilio Setup an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Twilio Setup automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Twilio Setup net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

You are helping your user configure Twilio for voice calls. Walk through each step below.

Value Classification

Before you begin, understand how each Twilio value is stored:

ValueTypeStorage methodSecret?
Account SIDConfigassistant config set twilio.accountSidNo
Auth TokenCredentialassistant credentials prompt --service twilio --field auth_tokenYes
Phone NumberConfigassistant config set twilio.phoneNumberNo
  • Config values (Account SID, Phone Number) are non-sensitive identifiers. Collect them via normal conversation -- the user can paste them in chat or you can use AskUserQuestion. Auth Token is a secret. Collect it securely via assistant credentials prompt -- never accept it pasted in plaintext chat.

Retrieving Twilio Credentials

Many steps below require the Account SID and Auth Token. Retrieve them with:

bash
TWILIO_SID=$(assistant config get twilio.accountSid)
TWILIO_TOKEN=$(assistant credentials reveal --service twilio --field auth_token)

Checking Current Configuration

You can determine whether Twilio has been fully set up by checking to see that all the following config and credential values have been set:

bash
assistant config get twilio.accountSid
assistant credentials inspect --service twilio --field auth_token --json  # check "hasSecret" field
assistant config get twilio.phoneNumber
  • If all three config values are non-empty -- Twilio is fully configured. Offer to show status or reconfigure.
  • Otherwise, continue to the missing steps.
  • If Account SID and Auth Token are already stored (even when you skip Step 2), give the Channel Trust Floors briefing before continuing unless you already gave it in this conversation.

Twilio Setup Steps

Follow the steps below in order to fully configure Twilio in preparation to make phone calls.

Step 1: Check Current Configuration

Mark setup as started before doing any read-only checks. This lets a managed gateway begin opening the Velay tunnel WebSocket immediately, so the public Twilio HTTP and WebSocket routes are warming up while the user finishes entering credentials and selecting a phone number:

bash
assistant config set twilio.setupStarted true
assistant platform status --json
assistant gateway status --json

If assistant platform status --json reports an available platform assistant but assistant gateway status --json returns {} (no tunnel URL yet), continue with setup and check status again before configuring webhooks. Do not treat this as an ngrok setup problem unless the assistant is local/self-hosted without Velay.

Refer to "Checking Current Configuration" above to see the current state of the user's Twilio setup. If Twilio appears to be fully configured, offer to show status or reconfigure. If they are asking about inbound access or an unexpected first greeting, go to "Channel Trust Floors" and the matching Troubleshooting section. Otherwise, continue to the missing steps below.

Step 2: Collect and Store Credentials

Tell the user: "You'll need a Twilio account. Sign up at https://www.twilio.com/try-twilio -- it's free to start and includes trial credit."

They need two values from the Twilio Console dashboard (https://console.twilio.com):

  • Account SID -- visible on the dashboard, starts with AC (this is not a secret value and can be collected conversationally)
  • Auth Token -- click "Show" to reveal (this is a secret value and should be collected securely)

Collect Account SID

Ask the user for their Account SID. This is NOT a secret value, so the user should be encouraged to comfortable paste it into the chat directly. Once they have, store it as a config value:

bash
assistant config set twilio.accountSid "<Account SID from user>"

Collect Auth Token

Ask the user for their Auth Token. This IS a secret value, so the user should be prompted to enter the value securely. Do NOT ask them to provide it in the chat. Once they have, store it as a credential:

  • Run (via the bash tool):

    bash
    assistant credentials prompt --service twilio --field auth_token \
      --label "Twilio Auth Token" --placeholder "your_auth_token" \
      --description "Enter your Auth Token from the Twilio Console dashboard (click 'Show' to reveal it)"

Confirm it has been stored successfully:

bash
assistant credentials inspect --service twilio --field auth_token

If credentials are invalid, Twilio API calls in Step 3 will fail -- ask the user to re-enter.

Once both the Account SID and Auth Token are stored, tell the user how Phone access works before continuing. Do not skip this briefing, even if they already have a number.

Connecting Twilio does not open the line to everyone. Phone starts on Verified contacts: you and people you have verified can talk. Anyone else who calls hears that I don't recognize the number, is asked for their name, and you get a request so you can decide.

Change this any time on the Channels page: select Phone, then Who can message. The options are No one, Only you, Verified contacts, Any contact, and Strangers (anyone who dials can talk immediately).

See "Channel Trust Floors" below if they want more detail or want to change the floor.

Step 3: Get a Phone Number

The assistant needs a phone number for voice calls. Three options:

Option A: Use an Existing Number

You should assume this option if the user had just created their Twilio account. Trial accounts come with one free number.

Retrieve credentials, then list numbers on the account:

bash
curl -s -u "$TWILIO_SID:$TWILIO_TOKEN" \
  "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_SID/IncomingPhoneNumbers.json"

Present the incoming_phone_numbers array. Let the user choose.

Option B: Provision a New Number

Retrieve credentials (see "Retrieving Twilio Credentials" above), then:

Search for available numbers:

bash
curl -s -u "$TWILIO_SID:$TWILIO_TOKEN" \
  "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_SID/AvailablePhoneNumbers/US/Local.json?VoiceEnabled=true&AreaCode=415"
  • AreaCode is optional -- ask the user if they have a preference
  • Replace US with another country code if needed

Present the first few results from the available_phone_numbers array (show phone_number and friendly_name).

Purchase the chosen number:

bash
curl -s -u "$TWILIO_SID:$TWILIO_TOKEN" -X POST \
  "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_SID/IncomingPhoneNumbers.json" \
  -d "PhoneNumber=+14155551234"

Note the sid field (starts with PN) from the response -- needed for webhook setup in Step 4.

Option C: Manual Entry

If the user already has a number and knows it, skip the API calls. They can paste it directly in chat.

Save the phone number

After choosing a number via any option, store it as a config value:

bash
assistant config set twilio.phoneNumber "+14155551234"

Step 4: Set Up Public Ingress and Webhooks

Verify Public Ingress is Set Up

Twilio needs publicly reachable HTTP webhooks and, for live calls, a publicly reachable WebSocket path. First check managed/platform status:

bash
assistant platform status --json
assistant gateway status --json

If assistant platform status --json reports an available platform assistant and assistant gateway status --json reports a tunnel URL (a { "tunnel": "..." } object), do not load public-ingress or install ngrok. Use the managed Velay route for the WebSocket leg. If it returns {}, restart or re-hatch the assistant/gateway and check gateway logs for Velay tunnel registered; do not treat that as an ngrok setup problem.

For local/self-hosted assistants without Velay, load the public-ingress skill to determine whether ingress.publicBaseUrl is configured and walk the user through setting one up if not.

Configure Twilio Webhooks

Set webhook URLs on the phone number so Twilio routes traffic to the assistant.

Retrieve credentials and config values:

bash
TWILIO_SID=$(assistant config get twilio.accountSid)
TWILIO_TOKEN=$(assistant credentials reveal --service twilio --field auth_token)
PUBLIC_URL=$(assistant config get ingress.publicBaseUrl)
PHONE_NUMBER=$(assistant config get twilio.phoneNumber)

Look up the phone number's SID:

bash
curl -s -u "$TWILIO_SID:$TWILIO_TOKEN" \
  "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_SID/IncomingPhoneNumbers.json?PhoneNumber=$PHONE_NUMBER"

Note the sid field (starts with PN) from the matching entry, then update webhooks:

bash
curl -s -u "$TWILIO_SID:$TWILIO_TOKEN" -X POST \
  "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_SID/IncomingPhoneNumbers/$PHONE_SID.json" \
  -d "VoiceUrl=$PUBLIC_URL/webhooks/twilio/voice" \
  -d "StatusCallback=$PUBLIC_URL/webhooks/twilio/status"

Channel Trust Floors

Phone access is a channel trust floor, separate from Twilio credentials. Credentials decide whether calls can reach the assistant. The floor decides who is allowed to talk once a call arrives.

FloorWho can talk
No oneNobody, including you. Inbound calls are rejected.
Only youOnly the verified owner.
Verified contacts (default)You and people you have verified. Everyone else is asked to identify themselves, and you are notified.
Any contactYou and any known contact, including unverified ones. Strangers still request access.
StrangersAnyone who dials the number, including complete strangers.

The control lives on the Channels page. Select Phone (it must be connected) and use Who can message. Only the guardian can change this setting. Point them there; do not treat this as a webhook or ingress repair.

Unknown callers on Verified contacts or Any contact hear a scripted greeting: the assistant does not recognize the number, will let the owner know, and asks for a name. After a name, the caller is held while you decide. That greeting means the call reached the assistant and the floor is doing its job.

Clearing Credentials

To disconnect Twilio:

bash
assistant credentials delete --service twilio --field auth_token
assistant config set twilio.accountSid ""

Phone number assignments are preserved. Voice calls will stop until credentials are reconfigured.

Troubleshooting

"Twilio credentials not configured"

Run Steps 2 and 3.

"No phone number assigned"

Run Step 3.

Phone number provisioning fails

  • Verify credentials are correct
  • Trial accounts may already have a free number -- check "Active Numbers" in the Console
  • Ensure the account has sufficient balance

Calls fail after setup

  • Verify ingress is running: assistant config get ingress.publicBaseUrl
  • For calls, ensure calls.enabled is true
  • Trial accounts can only reach verified numbers

Inbound call greeting asks for a name / "I don't recognize this number"

If the user complains about the first thing callers hear (asked for their name, "I don't recognize this number", "I'll let them know and see if I have permission", or held after giving a name), this is who can contact the assistant on Phone, not a Twilio, webhook, or voice-setup failure. The call reached the assistant. The Phone trust floor (default Verified contacts) is keeping unknown callers out of a normal conversation.

Identify it that way. Then:

  1. Explain the default floor and that the greeting is expected for unrecognized numbers.
  2. Point them to Channels → Phone → Who can message.
  3. Ask what they want: keep the gate, verify specific people in Contacts, verify themselves (guardian-verify-setup), or change Who can message to Strangers on Channels → Phone. Only the guardian can change that setting.
  4. Do not retune webhooks, ingress, or TTS unless the call never answered, Twilio reported an application error, or the spoken message named a missing speech credential and hung up.

The same floor applies if the user calls from their own unverified number and hears that greeting. Offer guardian-verify-setup so their number is recognized.

Incoming calls not reaching the assistant

Webhooks on the Twilio phone number may not match the current ingress URL. This happens when ngrok restarts with a new URL or webhooks were never configured. Use this path only when the call does not connect or Twilio reports an application error. If the call connects and speaks the "I don't recognize this number" greeting, see the trust-floor case above.

Diagnose -- fetch the number's current webhooks and compare to the expected URL:

bash
TWILIO_SID=$(assistant config get twilio.accountSid)
TWILIO_TOKEN=$(assistant credentials reveal --service twilio --field auth_token)
PUBLIC_URL=$(assistant config get ingress.publicBaseUrl)
PHONE_NUMBER=$(assistant config get twilio.phoneNumber)

curl -s -u "$TWILIO_SID:$TWILIO_TOKEN" \
  "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_SID/IncomingPhoneNumbers.json?PhoneNumber=$PHONE_NUMBER"

Check that voice_url and status_callback start with the current ingress.publicBaseUrl. If they don't match, update them:

bash
PHONE_SID=<PN sid from the response above>
curl -s -u "$TWILIO_SID:$TWILIO_TOKEN" -X POST \
  "https://api.twilio.com/2010-04-01/Accounts/$TWILIO_SID/IncomingPhoneNumbers/$PHONE_SID.json" \
  -d "VoiceUrl=$PUBLIC_URL/webhooks/twilio/voice" \
  -d "StatusCallback=$PUBLIC_URL/webhooks/twilio/status"

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Twilio Setup?

Configure Twilio credentials and phone numbers for voice calls

Firwat Twilio Setup op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Twilio Setup besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Twilio Setup an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/vellum-ai/vellum-assistant/tree/main/skills/twilio-setup an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Twilio Setup benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Twilio Setup benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Twilio Setup domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Twilio Setup gratis?

Jo. vellum-ai huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇