Developer resourcesRecipes

Working code for every part of a call

Clone a folder, add your credentials, and it runs. Most are under two hundred lines. The builds show what they look like assembled.

Featured

AI Agents

44

Tools & integrations 13

Let a voice AI agent call an API without your serverserverless API integration for voice AISignalWire makes the API call, so no service of yours is in the tool path.py yamlCommit a transaction from a callvoice transaction confirmationUse an allow-list to validate the caller's confirmation before one transaction tool commits the request.pyCover AI agent tool latency with fillersAI agent tool latency fillersPlay localized filler phrases or a hosted wait file while a slow AI agent tool finishes.pyCreate a hosted voice AI agent with one REST callhosted voice AI agent (no server)Turn the agent definition you would serve yourself into a resource SignalWire hosts, with one POST, then put a phone number on it with one more.py tsExtract structured data after a callpost-call structured data extractionGet typed fields out of a finished conversation instead of parsing a transcript.pyGive a voice AI agent a tooltool calling for voice AILet the model call your function, and decide what it gets back.py tsLet a browser dial your agent with no dashboard setupprogrammatic WebRTC voice agent accessCreate a dialable voice AI endpoint and a restricted guest token over REST, without configuring either in the dashboard.pyLet a voice AI agent see the caller's cameramultimodal voice AI with visionEnable visual input, choose a vision model, and play a filler while the voice AI agent analyzes the caller's camera.pyNormalize spoken dates and phone numbers in a voice AI tool handlerspoken input normalization for voice AITake a date and a phone number in the caller's words, turn them into an ISO date and an E.164 number in the tool handler, and read both back for the caller to check.py tsPush events from a voice AI agent to the browservoice-controlled website navigationReturn a JSON event from a voice AI agent tool and deliver it to the browser connected to the call.py yamlPut an AI agent in a web chat widgetAI web chat widgetA small gateway on your server holds the API token, mints a signed handle per visitor and forwards the page's messages to the AI Chat API. The page learns a publishable key and nothing else.py tsRun the same voice AI agent over text chatomnichannel AI agent (voice and text)Point the AI Chat API at the URL your voice agent already serves. Create a conversation, send turns, read the log, summarise and end it, with one agent definition for both channels.py tsWrite a reusable AI agent skillreusable AI agent skillsPackage a capability once and load it into any agent with one line.py

Governance 11

Collect required details in any order with a voice AI agentslot filling for voice AI agentsLet a caller give the required details of a report in any order, keep the checklist in the tool handlers, and refuse to file until every required detail is in.py tsEnforce an AI agent's next step in codecode-enforced AI conversation flowReturn the next allowed conversation state from code instead of letting the AI agent choose it.pyGet recording consent before recordingcall recording consentSpeak the disclosure and capture the answer before any audio is written to disk.pyShow the AI model only the fields it needsdata minimization for LLM promptsLoad the whole record, expose a curated slice, and keep the rest out of the prompt entirely.pyKeep per-call state server-side, keyed by call idserver-side session state for voice AIStore full per-call state on your server, keyed by call ID, and expose only the fields the voice AI agent needs.pyProtect AI agent tool webhooks with per-call tokensAI agent tool webhook authenticationMint a token for each call and AI agent tool, then reject missing, expired, edited, or mismatched tokens.pyRequire verification before unlocking AI agent toolsverification-gated AI agent toolsThe account tools do not exist in the model's world until a handler says the caller passed.pyControl which tools an AI agent can call at each stepper-step tool scoping for AI agentsAt each point in the conversation the model can only see the tools you allowed there.pyRun isolated personas behind one numbermulti-persona AI on one numberRoute one phone number among isolated sales, support, and billing AI personas, each with access only to its own tools.pyWalk a caller through steps they cannot skipguided AI conversation flowExpose only the next allowed AI agent tool at each step so callers cannot move backward or skip ahead.pyWrite call dispositions from data your handlers recordedcall disposition from handler dataBuild call dispositions only from qualification fields recorded by tool handlers, not from transcripts or model summaries.py
Builds 39
4 recipesRepositoryAbsence reporting line: the caller gives details in any order and code decides when the form is completeAn absence reporting demo built to show slot filling where the model collects and code decides completeness. One tool with six optional parameters merges each turn, validates dates from spoken words, and opens confirmation only when nothing is missing.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+16 recipesRepositoryAfter-hours AI answering service: code decides whether the AI is on the call at allAn answering service demo built to show a per-call check deciding whether an AI answers at all. In hours the SWML is a plain connect, after hours one tool classifies urgency and the handler picks the route.configure-an-agent-per-requestwalk-a-caller-through-ordered-stepsscope-tools-per-step+36 recipesRepositoryAI appointment reminder caller: consent, do-not-call and calling hours enforced before the dialAn appointment reminder demo built to show outbound voice AI with consent handling in code. The dialer skips anyone without consent, on the do-not-call list or outside hours. The model learns the appointment only after identity is confirmed.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+35 recipesRepositoryAI bank balance line: account tools that do not exist until a handler verifies the callerA bank balance demo built to show a voice AI agent whose account tools appear only after a handler verifies the caller. Failures are counted on the server across calls, so a redial does not reset them.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+21 recipesRepositoryAI calendar assistant over MCP: tools from an MCP server on a live call, scoped by the tokenA calendar assistant demo built to show MCP tools reaching a live call through one add_mcp_server call. The bearer token sets the tool list, the server holds the rules, and a caller ID signature keeps meetings to their owner.call-an-mcp-server-from-a-live-call5 recipesRepositoryAI collections agent: a payment policy the model cannot reveal or bargain overA collections demo built to show a voice AI agent negotiating against a policy it has never seen. Minimum payment, maximum term and refusal limit live in code, and the handler moves the call when they are exhausted.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+23 recipesRepositoryAI customer survey caller: a prefab agent with validation the handler ownsA customer survey demo built to show a prefab SurveyAgent configured rather than written. The two tools are overridden with one strict schema, so the handler decides what counts as an answer and what is recorded.start-from-a-prefab-agentconfigure-an-agent-per-requestplace-an-outbound-ai-call8 recipesRepositoryAI drive-thru ordering: a voice agent whose flow your code controlsA fast-food drive-thru demo built to show a voice AI agent run by a state machine in your code. Steps scope the tools, handlers move the flow, upsell rules run as code, and a live order board updates from events.scope-tools-per-stepenforce-state-transitions-in-a-tool-handlerpush-events-from-an-agent-to-the-browser+53 recipesRepositoryAI front desk receptionist: departments as isolated personas that cannot use each other's toolsA front desk demo built to show one voice AI agent with four personas that cannot reach each other's tools. Each department is an isolated context, the routing graph is code, and a refund needs a verified invoice.walk-a-caller-through-ordered-stepssplit-one-number-into-isolated-personasscope-tools-per-step5 recipesRepositoryAI hiring phone screen: a voice form the candidate cannot reorder or skipA hiring phone screen demo built to show a gather step asking questions in a fixed order with confirmed read-backs. The platform injects one question at a time, and the handler writes the answers, not the model.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+26 recipesRepositoryAI insurance claim intake: the adjuster is briefed and accepts before the bridge completesAn insurance claim intake demo built to show a screened handoff where the human is briefed before the bridge. Every gathered answer is checked in code, and the platform, not the model, decides where the caller lands.walk-a-caller-through-ordered-stepsscope-tools-per-steppause-a-voice-ai-agent-mid-call+34 recipesRepositoryAI lead qualification line: a lead scored from typed handler data, not the transcriptA lead qualification demo built to show post-call extraction from data the handlers wrote. Four tools record typed values, and the disposition reads only those, so a caller saying "mark me hot" changes nothing.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+16 recipesRepositoryAI medical appointment line: recording that starts only in the handler that records consentA medical appointment demo built to show compliance as a state machine rather than a prompt. The consent step has one tool, recording starts in its handler on yes, and the audit record is built from handler data.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+32 recipesRepositoryAI movie showtimes hotline: a governed voice agent in one SWML file and no serverA movie showtimes demo built to show a voice AI agent as one SWML file pasted into the Dashboard. Its only tool is a DataMap that fetches a feed, so the model never sees a URL it was not given.run-an-agent-from-one-yaml-filecall-an-api-without-a-backend5 recipesRepositoryAI order status line: the handler holds the full record and the model sees a curated sliceAn order status demo built to show verify-then-expand projection. The full record enters global_data, the step text exposes three fields, and the refund thresholds are read only inside the handler.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+21 recipesRepositoryAI package tracking line: an external API called from the SWML with no server in the call pathA package tracking demo built to show a voice AI agent calling a carrier API without a backend. The HTTP request and the sentence template ship inside the SWML, and SignalWire runs them during the call.call-an-api-without-a-backend5 recipesRepositoryGive Claude a phone number: an AI phone line whose tools are also an MCP serverA phone line demo built to show an AI agent's tools served as an MCP endpoint with its own credential. An allowlist keeps call-control tools off MCP, and the handlers carry the booking rules on both channels.expose-an-agent-as-an-mcp-serverwalk-a-caller-through-ordered-stepsscope-tools-per-step+28 recipesRepositoryAI phone ordering: a voice agent working with a live backend in real timeA coffee shop ordering demo built to show a voice AI agent working with a real backend in real time. Every item is a tool call into the order system, nothing exists until a handler has recorded it, and the page shows each call as it happens.give-an-agent-a-toolpush-events-from-an-agent-to-the-browserlet-a-browser-dial-your-agent-with-no-dashboard-setup+51 recipesRepositoryAI product docs hotline: answers taken from your documentation or a refusal, never a guessA product docs hotline demo built to show a voice AI agent grounded by its tool rather than its prompt. A similarity gate drops weak search results before the model sees them, so an off-topic question gets a refusal.ground-an-agent-in-your-docs4 recipesRepositoryAI restaurant reservation line: a booking the model cannot confirm until code has made itA restaurant reservation demo built to show a voice AI agent that cannot announce a booking the code has not made. One step exposes one tool, the handler checks hours and party size, writes the row, and only then moves the call on.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+16 recipesRepositoryAI SMS concierge: one agent definition answering texts and calls with the same rulesAn SMS concierge demo built to show one agent file serving voice and text. Inbound texts run the same SWML through the AI Chat API, so verification, step-scoped tools and the service enum hold on both channels.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+31 recipesRepositoryAI stock quote line: two agents sharing one reusable skill with different settingsA stock quote demo built to show a skill written once and loaded by two agents with different parameters. The skill holds the provider, keeps the API key out of the SWML, and scopes each agent by a watchlist.write-a-reusable-agent-skill6 recipesRepositoryAI support line with callback: the issue survives the queue and the return call without the model carrying itA support line demo built to show a callback whose context lives in a store, not the model. The handler files the triage and the caller's real number, a worker dials back, and the return call opens already informed.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+35 recipesRepositoryAI travel concierge: two agents handing a caller back and forth with context and no transcriptA travel concierge demo built to show two voice AI agents trading a caller with context in both directions. A one-time token in the transfer URL keys a short-lived record, and each agent rebuilds its state from that.transfer-a-call-without-losing-contextconfigure-an-agent-per-requestwalk-a-caller-through-ordered-steps+24 recipesRepositoryAI trivia hotline: a game graded in code with an answer key the model never seesA trivia hotline demo built to show a voice AI agent that keeps no game state and never sees the answers. The handler grades each answer, writes the score and the next question, and ends the game itself.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+15 recipesRepositoryAI utility bill payment line: card digits that never reach the model, the recording or the logsA utility bill payment demo built to show a voice AI agent handing the card entry to the SWML pay verb. Recording stops before the first digit, the amount comes from the billing record, and the model never hears the result.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+24 recipesRepositoryAI website chat agent: the phone agent in a chat bubble, with the API token kept off the pageA website chat demo built to show channel parity from the browser. A ChatGateway holds the API token, pins the agent URL and caps conversations, so the page carries only a publishable key.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+18 recipesRepositoryAppointment confirmation by SMS: a text built by the handler and a reply that calls the customer backAn appointment confirmation demo built to show one booking presented across voice and SMS with its memory in code. The handler writes the text from the stored record, and the dial-back loads that record before the model speaks.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+55 recipesRepositoryBilingual AI support line: English and Spanish from one code path, switching mid-sentenceA bilingual support demo built to show multilingual as configuration rather than a second code path. Each language is one add_language call, and the handlers return language-neutral JSON the model voices in whichever language is live.switch-language-mid-callcover-tool-latency-with-fillerswalk-a-caller-through-ordered-steps+210 recipesRepositoryEmbed a state-aware voice agent in your web pageEmbed a voice and video assistant that searches your documentation, knows the current page, and navigates visitors to relevant sections.ground-an-agent-in-your-docspush-events-from-an-agent-to-the-browsergive-an-agent-a-video-avatar+77 recipesRepositoryIVR navigator: an AI agent that works through phone menus to reach a humanAn IVR navigation demo built to show an AI agent dialing into an unknown phone tree, listening, and pressing the digits that serve a goal, without speaking. When it reaches a human it hands off with the full path it took.send-dtmf-to-an-external-ivrplace-an-outbound-ai-callscope-tools-per-step+43 recipesRepositoryMulti-tenant AI answering service: one deployment answering as many businesses, configured per requestAn agency answering service demo built to show per-request configuration instead of a deployment per customer. The callback resolves the tenant and registers only its tools, so another tenant's tool does not exist in the SWML.configure-an-agent-per-requestgive-an-agent-a-toolhand-off-from-ai-to-a-human-agent8 recipesRepositoryOrder status desk: one omnichannel AI agent for web chat and phoneAn order status demo built to show one AI agent serving web chat and phone calls, with the conversation moving between the two without starting over. It answers questions about order status and declines everything else, on purpose.put-an-agent-in-a-web-chat-widgetrun-the-same-agent-over-textroute-a-call-to-an-ai-agent+52 recipesRepositoryCompetitor alerts on live calls: real-time agent assist from an AI listenerA sales-call demo built to show real-time agent assist: an AI listener rides along on a live call, notices when the customer names a competitor, and posts the alert to your server while the sentence is still being spoken. It never speaks into the call.run-an-ai-sidecar-on-a-live-callgive-an-agent-a-tool3 recipesRepositoryReal-time sales copilot: a sidecar that rides a human call and surfaces objection playbooks on the rep's screenA sales copilot demo built to show an ai_sidecar listening to both legs of a human call without speaking. A code classifier decides the objection category, and the talk tracks go only to the rep's page, never into the prompt.run-an-ai-sidecar-on-a-live-callgive-an-agent-a-tooltransfer-a-call3 recipesRepositorySupport copilot that acts: a sidecar issues the credit the rep offers, under a cap enforced in codeA support copilot demo built to show an ai_sidecar executing scoped tools on a call it does not own. The cap, the caller binding and the one-credit-per-order rule live in the handler, and every refusal reads the same to the model.run-an-ai-sidecar-on-a-live-callgive-an-agent-a-tooltransfer-a-call7 recipesRepositoryVideo blackjack dealer: a voice AI agent that controls the browserA blackjack game built to show a video AI agent controlling a web page in real time over WebRTC. Stepped conversation contexts run the hand, every card and chip change reaches the page as an event, and the dealer's voice is chosen on the page.scope-tools-per-stepenforce-state-transitions-in-a-tool-handlerpush-events-from-an-agent-to-the-browser+44 recipesRepositoryVoice AI latency lab: the same agent under several models and voices, timed from the platform's own stampsA latency lab demo built to show model choice as a configuration change, measured from the platform's per-turn timings. A test diffs every configuration's SWML against the baseline so a comparison cannot quietly become unfair.configure-an-agent-per-requestextract-structured-data-after-a-callwalk-a-caller-through-ordered-steps+13 recipesRepositoryWin/loss interview line: post-call extraction validated against a schema you ownA win/loss interview demo built to show post-call analysis on structured extraction rather than a summary. The post prompt and the validator are generated from one JSON Schema, and a record that fails it is flagged, never repaired.walk-a-caller-through-ordered-stepsscope-tools-per-stepextract-structured-data-after-a-call

Voice

57

Call control 22

Answer an inbound callinbound call handlingAccept an incoming call, greet the caller, and hang up cleanly.py yamlBuild a conference callconference callingPut several legs in one room and control each member independently.py yamlCall from a browserWebRTC browser callingPlace a call from a web page into the same flow a phone reaches.ts pyConnect a PBX with a Domain ApplicationSIP trunking for a PBXAn IP-authenticated Domain Application takes inbound SIP from your PBX and a SIP Gateway carries calls back to it.py yamlStart, steer and stop live translation on a call in progressreal-time call translation over RESTSwitch translation on partway through a call, speak a translated line into it, ask for a summary, and switch it off, each with one REST command.py tsDetect a machine, fax tone or digits on a call in progressanswering machine detection (AMD) over RESTStart answering machine, fax tone or keypad detection on a call that is already up, and read the result at your webhook.py tsDetect an answering machineanswering machine detection (AMD)Use answering machine detection to classify a pickup as human or voicemail before playing the main message.pyEmbed a call widget with no backendclick-to-call widgetA sw-click-to-call element with a Click to Call token from the Dashboard and a destination address puts a call button on a page. No server of yours is in the call path.pyEnd or transfer a live call over RESTREST call control (hangup and transfer)Hang up a live call with a reason, send it to a new destination, or unbridge it from its peer, each with one REST command addressed to the call id.py tsPause and resume a call recording over RESTcall recording pause and resumeStart recording a live call from your own backend, pause it while a card number is read out, resume it, and stop it, all by control id over REST.py tsPlace an outbound callprogrammatic outbound callingDial a number from your own code and follow the call through to completion.pyPlay a prompt and collect digits or speech over RESTprompt playback and input collection on a live callSpeak a prompt into a live call from your own backend, stop it early, and collect keypad digits or speech, with the result delivered to your webhook.py tsReceive calls in the browserWebRTC softphone in the browserRegister a browser as a WebRTC endpoint with a subscriber token, then route calls to its address.py tsRecord a callcall recordingStart a recording and pick it up from the completion webhook.py yamlReduce background noise on a callAI noise suppressionTurn call noise reduction on or off in the call flow or during a live call through REST.yaml pyRegister a SIP endpoint and receive callsSIP endpoint registrationCreate SIP credentials for a softphone, register it as an endpoint, and route calls to its address.pySend DTMF to someone else's IVRautomated DTMF navigationSend programmed keypad tones during an outbound call to navigate an external IVR.pyStream call audio to a WebSocket that checks a bearer tokenauthenticated media streaming over WebSocketSend one side of a call, or both, to your own WebSocket over TLS, with a bearer token on the connection and your own metadata attached.py tsStream call audio to your own servermedia streaming and audio forkingCopy live call audio to your WebSocket or RTP server, then stop the stream by its control ID.yaml pyTake a voicemailvoicemailIf a bridge fails, play a voicemail prompt, record the caller's message, and send its download URL to a status webhook.yaml pyTranscribe a voicemail and text it to the ownervoicemail transcription (voicemail to text)Turn transcription on in a cXML Record, then text the owner the words and the recording link when the transcription callback arrives.py tsTransfer a SIP call with REFERSIP REFER transferHand a SIP call to another endpoint with a REFER, sending the destination URI and, when the far end asks for them, credentials.py ts

Routing & queueing 13

Build an IVR menuIVR menu (DTMF)Play a menu, collect keypad input, and route the caller to the right place.py yamlBuild an IVR without a serverserverless IVRCreate and assign a serverless IVR call flow through REST, without hosting a webhook server.pyCollect speech input and branch on itspeech recognition IVRAsk an open question, recognise the answer, and take a different path for each.py yamlForward calls to a phone and keep the caller's numbercall forwarding with caller ID pass-throughForward every call on a number to a phone, and show that phone the original caller's number instead of your own.py tsHost a TwiML bin without a serverhosted cXML script (TwiML bin)Store a cXML document on SignalWire with one REST call, get back the URL it is served from, and route a number to it, with no server of yours in the call.py tsLook up the caller and branch inside the call flowdata-driven call routing (CRM lookup)Have the call itself fetch the caller's record from your API, branch on a field of the reply, and still reach a human when the lookup fails.py tsOffer a callback instead of a holdvirtual hold with callbackCollect the caller's number and context, end the held call, then call them back with that context.pyQueue a call until an agent is freecall queuingCallers wait in a named queue with hold audio and are bridged in order as agents connect to it.yaml pyReject callers on a blocklist before answeringcall blocking and screening (blocklist)Read the caller's number when SignalWire fetches your call document, and decline a listed number before the call is answered while everyone else is connected.py tsRelay calls and texts through a proxy numberphone number masking (call and text by proxy)Pair two people on one number of yours so calls and texts between them are relayed with your number showing, and neither ever sees the other's.py tsRoute calls by dialed number or timetime-of-day call routingRead the dialed number and local time from each inbound webhook, then return the matching call flow.pyRoute SIP calls to AI agents by usernameSIP routing to AI agentsMap SIP usernames on one domain to different AI agents and return the selected agent's call flow.pyDial destinations in order or all at once, with a failure pathsequential and simultaneous ringDial destinations sequentially or simultaneously, then run a failure branch if no connection succeeds.yaml py

Governance 8

Check consent before an outbound calloutbound call consent and hours checksCheck stored consent and the callee's local calling window before your code sends an outbound dial request.pyExport recordings and enforce retentioncall recording retention and exportCopy recordings older than your retention window to your storage, then delete each SignalWire original after a successful copy.pyIssue a browser calling token restricted to chosen destinationsscoped WebRTC access tokensMint a short-lived browser token and restrict what it is allowed to call.pyIsolate tenants with subprojects and scoped tokensmulti-tenant isolation with scoped API tokensCreate a subproject for each tenant and issue API tokens limited to that subproject and an explicit permission list.pyLet your users buy a phone number through your appself-service number provisioning for tenantsGive each customer their own project and API token, then search, buy, route and release phone numbers with their credentials rather than yours.py tsRegister an E911 address for a numberE911 address registrationCreate an emergency address through REST, look up the phone number, and attach that address to it.pyVerify a caller id for outbound callscaller ID verificationThree REST requests register a number you own elsewhere as a verified caller ID. You submit the code you heard, and redial the verification call if you missed it.pyVerify a webhook signaturewebhook signature verificationThe gate refuses, with 403 and before any route runs, a request whose signature header does not match hex(HMAC(signing_key, url + raw_body)). X-Signalwire-SHA256-Signature decides when present; otherwise X-Signalwire-Signature, the SHA-1 one, does.py
Builds 24
6 recipesalso in AI Agents, MessagingRepositoryAfter-hours AI answering service: code decides whether the AI is on the call at allAn answering service demo built to show a per-call check deciding whether an AI answers at all. In hours the SWML is a plain connect, after hours one tool classifies urgency and the handler picks the route.configure-an-agent-per-requestwalk-a-caller-through-ordered-stepsscope-tools-per-step+36 recipesalso in AI AgentsRepositoryAI appointment reminder caller: consent, do-not-call and calling hours enforced before the dialAn appointment reminder demo built to show outbound voice AI with consent handling in code. The dialer skips anyone without consent, on the do-not-call list or outside hours. The model learns the appointment only after identity is confirmed.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+35 recipesalso in AI AgentsRepositoryAI bank balance line: account tools that do not exist until a handler verifies the callerA bank balance demo built to show a voice AI agent whose account tools appear only after a handler verifies the caller. Failures are counted on the server across calls, so a redial does not reset them.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+25 recipesalso in AI AgentsRepositoryAI collections agent: a payment policy the model cannot reveal or bargain overA collections demo built to show a voice AI agent negotiating against a policy it has never seen. Minimum payment, maximum term and refusal limit live in code, and the handler moves the call when they are exhausted.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+28 recipesalso in AI AgentsRepositoryAI drive-thru ordering: a voice agent whose flow your code controlsA fast-food drive-thru demo built to show a voice AI agent run by a state machine in your code. Steps scope the tools, handlers move the flow, upsell rules run as code, and a live order board updates from events.scope-tools-per-stepenforce-state-transitions-in-a-tool-handlerpush-events-from-an-agent-to-the-browser+56 recipesalso in AI AgentsRepositoryAI insurance claim intake: the adjuster is briefed and accepts before the bridge completesAn insurance claim intake demo built to show a screened handoff where the human is briefed before the bridge. Every gathered answer is checked in code, and the platform, not the model, decides where the caller lands.walk-a-caller-through-ordered-stepsscope-tools-per-steppause-a-voice-ai-agent-mid-call+36 recipesalso in AI AgentsRepositoryAI medical appointment line: recording that starts only in the handler that records consentA medical appointment demo built to show compliance as a state machine rather than a prompt. The consent step has one tool, recording starts in its handler on yes, and the audit record is built from handler data.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+35 recipesalso in AI AgentsRepositoryAI order status line: the handler holds the full record and the model sees a curated sliceAn order status demo built to show verify-then-expand projection. The full record enters global_data, the step text exposes three fields, and the refund thresholds are read only inside the handler.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+25 recipesalso in AI AgentsRepositoryGive Claude a phone number: an AI phone line whose tools are also an MCP serverA phone line demo built to show an AI agent's tools served as an MCP endpoint with its own credential. An allowlist keeps call-control tools off MCP, and the handlers carry the booking rules on both channels.expose-an-agent-as-an-mcp-serverwalk-a-caller-through-ordered-stepsscope-tools-per-step+28 recipesalso in AI AgentsRepositoryAI phone ordering: a voice agent working with a live backend in real timeA coffee shop ordering demo built to show a voice AI agent working with a real backend in real time. Every item is a tool call into the order system, nothing exists until a handler has recorded it, and the page shows each call as it happens.give-an-agent-a-toolpush-events-from-an-agent-to-the-browserlet-a-browser-dial-your-agent-with-no-dashboard-setup+56 recipesalso in AI Agents, MessagingRepositoryAI SMS concierge: one agent definition answering texts and calls with the same rulesAn SMS concierge demo built to show one agent file serving voice and text. Inbound texts run the same SWML through the AI Chat API, so verification, step-scoped tools and the service enum hold on both channels.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+36 recipesalso in AI AgentsRepositoryAI support line with callback: the issue survives the queue and the return call without the model carrying itA support line demo built to show a callback whose context lives in a store, not the model. The handler files the triage and the caller's real number, a worker dials back, and the return call opens already informed.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+35 recipesalso in AI AgentsRepositoryAI utility bill payment line: card digits that never reach the model, the recording or the logsA utility bill payment demo built to show a voice AI agent handing the card entry to the SWML pay verb. Recording stops before the first digit, the amount comes from the billing record, and the model never hears the result.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+28 recipesalso in AI Agents, MessagingRepositoryAppointment confirmation by SMS: a text built by the handler and a reply that calls the customer backAn appointment confirmation demo built to show one booking presented across voice and SMS with its memory in code. The handler writes the text from the stored record, and the dial-back loads that record before the model speaks.walk-a-caller-through-ordered-stepsscope-tools-per-stepenforce-state-transitions-in-a-tool-handler+51 recipesRepositoryCompliance call monitor: required disclosures checked as they are spoken, with one alert per missA compliance monitor demo built to show rules enforced by code on a live transcript, not judged by a model. Each phrase counts by the time it was spoken, each rule settles once, and the alert goes by SMS or webhook.transcribe-a-call-in-the-background10 recipesalso in AI AgentsRepositoryEmbed a state-aware voice agent in your web pageEmbed a voice and video assistant that searches your documentation, knows the current page, and navigates visitors to relevant sections.ground-an-agent-in-your-docspush-events-from-an-agent-to-the-browsergive-an-agent-a-video-avatar+77 recipesalso in AI AgentsRepositoryIVR navigator: an AI agent that works through phone menus to reach a humanAn IVR navigation demo built to show an AI agent dialing into an unknown phone tree, listening, and pressing the digits that serve a goal, without speaking. When it reaches a human it hands off with the full path it took.send-dtmf-to-an-external-ivrplace-an-outbound-ai-callscope-tools-per-step+42 recipesRepositoryLive call transcription line: every word posted to a server you own, with no model in the call pathA transcription line demo built to show live_transcribe sending every utterance to your own authenticated webhook. The SWML has no ai verb, viewers get a read-only login, and the payload adapter is the one place that knows the event shape.transcribe-a-call-in-the-backgroundverify-a-webhook-signature2 recipesRepositoryLive captions from a phone call: a web page that shows each line with its real delayA live captions demo built to show a transcript stream rendered in a browser with its latency measured. The delay is computed on the server from the platform's timestamp, and the page can read one call but change nothing.transcribe-a-call-in-the-backgroundverify-a-webhook-signature3 recipesalso in AI AgentsRepositoryMulti-tenant AI answering service: one deployment answering as many businesses, configured per requestAn agency answering service demo built to show per-request configuration instead of a deployment per customer. The callback resolves the tenant and registers only its tools, so another tenant's tool does not exist in the SWML.configure-an-agent-per-requestgive-an-agent-a-toolhand-off-from-ai-to-a-human-agent8 recipesalso in AI AgentsRepositoryOrder status desk: one omnichannel AI agent for web chat and phoneAn order status demo built to show one AI agent serving web chat and phone calls, with the conversation moving between the two without starting over. It answers questions about order status and declines everything else, on purpose.put-an-agent-in-a-web-chat-widgetrun-the-same-agent-over-textroute-a-call-to-an-ai-agent+53 recipesalso in AI AgentsRepositoryReal-time sales copilot: a sidecar that rides a human call and surfaces objection playbooks on the rep's screenA sales copilot demo built to show an ai_sidecar listening to both legs of a human call without speaking. A code classifier decides the objection category, and the talk tracks go only to the rep's page, never into the prompt.run-an-ai-sidecar-on-a-live-callgive-an-agent-a-tooltransfer-a-call3 recipesalso in AI AgentsRepositorySupport copilot that acts: a sidecar issues the credit the rep offers, under a cap enforced in codeA support copilot demo built to show an ai_sidecar executing scoped tools on a call it does not own. The cap, the caller binding and the one-credit-per-order rule live in the handler, and every refusal reads the same to the model.run-an-ai-sidecar-on-a-live-callgive-an-agent-a-tooltransfer-a-call7 recipesalso in AI AgentsRepositoryVideo blackjack dealer: a voice AI agent that controls the browserA blackjack game built to show a video AI agent controlling a web page in real time over WebRTC. Stepped conversation contexts run the hand, every card and chip change reaches the page as an event, and the dealer's voice is chosen on the page.scope-tools-per-stepenforce-state-transitions-in-a-tool-handlerpush-events-from-an-agent-to-the-browser+4

Messaging

12

MFA

1

Video

7

Fax

2

/ to search · Esc to clear