Transcribe and route Twilio voicemails the moment they land

By General Input

When a voicemail finishes recording in Twilio, an agent transcribes it, decides who should see it, posts a clean summary in Slack, and texts urgent callers back.

Integrations

  • Twilio
  • AssemblyAI
  • Slack Bot

Type

Agentic Task

Categories

  • Customer Support
  • Operations

Build an agent workflow that turns inbound Twilio voicemails into transcribed, intelligently routed Slack notifications, with an SMS acknowledgement to the caller when the voicemail is urgent.

Trigger: a Twilio webhook fired when a voicemail recording is completed. The incoming payload includes RecordingUrl, From, To, CallSid, and RecordingDuration. Use these directly, do not download the audio yourself.

Step 1, transcribe. Call AssemblyAI Submit Transcript and pass the Twilio RecordingUrl straight through as audio_url. Enable PII redaction so names, phone numbers, emails, and payment details are masked before the agent reads the text. Then call AssemblyAI Get Transcript and poll until status is completed or error. If transcription errors out, post a short failure note to the on-call Slack channel with the caller's From number and stop.

Step 2, understand. Read the transcript and decide two things: intent (one of sales inquiry, support escalation, scheduling, or spam) and urgency (high, normal, or low). Then draft a one-paragraph human summary in plain English that captures what the caller wants and any specific dates, account references, or callback requests. Pull one short verbatim snippet (one or two sentences) that best represents the message.

Step 3, route to Slack. Use Slack Bot Send a Message to post in the channel that matches the intent. Default mapping: sales inquiry to #sales-leads, support escalation to #support-triage, scheduling to #scheduling, and spam to #voicemail-archive (or skip entirely, configurable). If urgency is high, also cross-post to #on-call regardless of category. Format the message as: caller's From number on the first line, then the one-paragraph summary, then a blockquote with the verbatim snippet, and a final line tagging the intent and urgency. Use Slack mrkdwn formatting (single asterisks for bold, angle-bracket links).

Step 4, acknowledge urgent callers. If urgency is high and intent is not spam, use Twilio Send a Message to text the caller's From number a short acknowledgement, something like "Got your voicemail — someone from our team will follow up shortly." Draft the wording fresh each time so it does not feel canned, but keep it under 160 characters and never make commitments about response time beyond "shortly". Skip the SMS entirely for spam, low, and normal urgency.

The agent should make the routing and acknowledgement decisions itself based on the transcript content. The workflow is not a dumb forwarder. Channel mappings, the urgency bar, and the SMS template should all be easy to change at the top of the instructions.

Related prompts

Explore more prompts
A brand asset library your marketing team actually searchesTurn Mailjet email clicks into ranked HubSpot follow-upsClean out the Looker dashboards and Looks nobody opensLiveKit live operations console for room moderationWake up dormant Keap leads with a researched reasonLiveChat coverage board for planning next week's shiftsPhone routing control panel for LiveKit voice agentsLinkedIn Ads budget pacing dashboard for every client accountGive your team Looker numbers without buying more seatsPause marketing emails to escalated customers, then restore them