/signalwire:signalwirefrom SignalWire
Provides REST API patterns, SDK examples, and production-tested workflows for SignalWire telephony, messaging, video, and voice AI agents. Covers SWML call flows, WebSocket communication, webhook debugging, and authentication.
Ships in SignalWire. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
SignalWire maintains compatibility APIs (LAML/CXML) that should NOT be used for new development:
/laml/) → Use REST API (/api/calling/, /api/video/)This skill documents ONLY modern APIs: REST with JSON, SWML, Relay SDK, AI Agents SDK.
Code owns the conversation's steps, its data, and its rules. The model handles intent and phrasing: what the caller wants, and how to say the reply. A prompt guides. It cannot enforce. Treating the prompt as the safety mechanism is prompt and pray. Put anything that must happen on every call in code — identity checks, prices, and whether a charge, transfer, or hangup runs. Code decides what happens once the tool runs. The model still chooses when to call it. Leave the model the judgment calls you cannot write as a procedure.
See Patterns.
SignalWire's documentation is machine-readable. Append .md to any page URL under https://signalwire.com/docs to get clean Markdown, or send Accept: text/markdown.
Start from https://signalwire.com/docs/llms.txt for the root index, or go straight to a product index:
| Index | Covers |
|---|---|
/docs/swml/llms.txt | SWML methods and the ai verb |
/docs/apis/llms.txt | REST APIs, calling commands, webhook payloads |
/docs/server-sdks/llms.txt | Server SDKs and their guides |
/docs/platform/llms.txt | Voices, TTS engines, SWSH, changelog |
/docs/browser-sdk/llms.txt | Browser SDK v4 |
The root index warns that it is "an orientation page and directory, not an exhaustive list" — check the product index before concluding a page does not exist.
Prefer fetching the live page over this skill's bundled reference when the question is about an exact parameter name, a default, or an endpoint path. This skill is a snapshot; the docs are not.
If you cannot fetch URLs in this environment, answer from the bundled reference and say which detail the user should confirm against the live page.
There is also a changelog at /docs/platform/changelog (append .rss for a feed) covering new capabilities, changed defaults, and deprecations. Defaults in particular have moved more than once — see the voice default in Voice AI.
When the SignalWire MCP server (https://mcp.signalwire.com/mcp) is connected, use its tools to search and read the docs, pick a product for a goal, start from a verified SWML or cXML scaffold, and map an error to its likely causes. search runs over a recent snapshot of the docs, so for an exact parameter name or default, read the page itself with reference or as described in Read the Live Docs. The plugin bundles the server; in other hosts, the user adds it: https://signalwire.com/docs/platform/mcp-server
The server's documentation tools read public docs only and need no token. Its account tools (listing numbers and logs, sending messages, buying numbers, changing routing) appear when the user connects the server with an API token for one project.
account_overview and tell the user which Space and project you're about to act on.confirm: true. Show the user the preview and get their yes before confirming.What you can do with the skill depends on whether you can run commands and write files.
swaig-test and swsh yourself, and verify before reporting.| Technology | Use When | Format/Protocol |
|---|---|---|
| REST APIs | Trigger actions from backend, query state | HTTP + JSON |
| SWML | Define call flows, IVR, AI interactions | YAML/JSON documents |
| Relay SDK | Real-time WebSocket control | JavaScript/Python |
| AI Agents SDK | Build voice AI agents | Python decorators |
| Call Fabric | Route between subscribers/resources | WebSocket framework |
| SWAIG | AI agent calls server-side functions | HTTP POST to your endpoint |
This skill combines technical API documentation with practical implementation guidance from real-world SignalWire deployments. Each workflow file includes:
These insights come from analysis of 89 SignalWire training videos, LiveWire sessions, and production deployments.
Getting Started:
Voice Calls:
AI Voice Agents: Start with Voice AI overview
Other:
SWML Method Reference: All SWML methods - complete method catalog including queuing, conferencing, AMD, fax, transcription, streaming, taps, payment, control flow, Messaging SWML (reply to SMS, MMS, and RCS), and variable syntax
Authentication: HTTP Basic Auth with Project ID (username) + API Token (password)
Space URL: All API requests go to https://{space-name}.signalwire.com
SWML Variables: %{call.from}, %{call.to}, %{params.custom_field}, %{vars.my_variable} (%{args.x} is SWAIG-only, inside ai function contexts)
Webhooks: HTTP POST with JSON (call_id, call_state, from, to, direction)
Errors: A failed REST call returns an HTTP status and an errors array. Iterate every item. Most /api/* routes use {type, code, message, attribute, url}, and code is the error name. Most /api/relay/rest routes use {detail, status, title, code}, and code repeats the HTTP status as a string, such as "422". Read detail for the cause. Campaign Registry uses the first shape. A bad credential or a token missing the required scope gets 401 with a plain-text Unauthorized body, not JSON. The Compatibility API (/api/laml/2010-04-01) returns one object, {code, message, more_info, status}. SWML logs to Dashboard.
Call States: queued → initiated → created → ringing → answered → ending → ended (may skip some, such as answered). ended is the final status of every placed call; end_reason on that callback says why (busy, noAnswer). failed, canceled, and completed mean the call was never placed and send no callback.
SWML Sections: main (required entry point) | execute (call + return) | transfer (goto)
Resources: Subscribers, AI Agents, SWML Scripts, Video Rooms, SIP Gateways, Relay Apps (created via Dashboard or REST API)
SWML menu loops (prompt + retry) can trap callers. Use goto with its built-in max jump limit. max is also bounded by a per-call limit of 32 combined transfer and goto jumps (8 in a row without caller interaction). Past that the call is hung up, not fallen through.
- label: menu
- prompt:
play: "say:Press 1 for sales, 2 for support"
- switch:
variable: prompt_value
case:
"1":
- transfer: { dest: sales }
"2":
- transfer: { dest: support }
default:
- goto: { label: menu, max: 3 } # retry cap prevents infinite loop
- play:
url: "say:We didn't receive valid input. Goodbye."
- hangup: {}
For complete patterns, see Inbound Call Handling.
IMPORTANT: For AI agent tasks, start with Voice AI - it covers 90% of use cases with examples and best practices.
Only load reference docs for: Complete API parameters, advanced features (Contexts/Steps, Prefabs), platform-specific deployment (Lambda/GCF/Azure), or debugging production issues.
See Voice AI workflow "When to Pull Additional Documentation" section for detailed guidance on when to use each reference document.
New to SignalWire? → Authentication & Setup
Changing something on an account (numbers, SIP, projects)? → SWSH CLI — usually a one-liner
Building AI voice agent? → Voice AI
Answer needs a slow reasoning model? → Slow reasoning behind a tool
Agent interrupts callers, or leaves dead air? → Turn Taking
Coaching a live human agent with AI? → AI Sidecar
Making/receiving calls? → Outbound Calling or Inbound Handling
Debugging webhooks/callbacks? → Webhooks & Events
Voice AI agent billing or metering question? → Voice AI "AI Billing & Metering"
Need real-time control? → Fabric & Relay
https://{your-space-name}.signalwire.comreference/deployment/environment-variables.md (opens in a new tab)reference/deployment/serverless.md (opens in a new tab)reference/deployment/signalwire-integration.md (opens in a new tab)reference/examples/datamap-agent.py (opens in a new tab)reference/examples/faq-bot.py (opens in a new tab)reference/examples/multi-agent-server.py (opens in a new tab)reference/examples/serverless-agent.py (opens in a new tab)reference/examples/simple-agent.py (opens in a new tab)reference/examples/webrtc-enabled-agent.py (opens in a new tab)reference/sdk/agent-base.md (opens in a new tab)reference/sdk/agent-server.md (opens in a new tab)reference/sdk/bedrock-agent.md (opens in a new tab)reference/sdk/contexts-steps.md (opens in a new tab)reference/sdk/datamap-advanced.md (opens in a new tab)reference/sdk/dynamic-configuration.md (opens in a new tab)reference/sdk/function-result.md (opens in a new tab)reference/sdk/prefabs.md (opens in a new tab)reference/sdk/sip-routing.md (opens in a new tab)reference/sdk/skills-complete.md (opens in a new tab)reference/sdk/swaig-functions.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub signalwire/signalwire-claude --plugin signalwireOther plugins' skills for the same job