Repository navigation
Conversation
New capability guide for ai_sidecar: first-run coaching walkthrough with a Python and TypeScript SWMLService server, plus REST attach/ask/poke/stop, prompt and SWAIG tool guidance, callback handling, options, and troubleshooting. Wires the page into the SWML Guides nav and points the llms.txt AI sidecar entry at the guide. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Contributor
Manny-r31
marked this pull request as draft
October 6, 2026 17:40
Cut the capability matrix, REST attach/ask/poke/stop sections, tool actions, options, diagram, JSON twin, and long troubleshooting list. The guide now covers attaching a sidecar, one tool, reading advice callbacks, and prompt tips, and links to the reference for the rest. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Bring back the template-required product comparison table covering SWML and REST, and add a short REST section for attaching and stopping a sidecar on a call in progress. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Follow the layout and phrasing of the call queues guide (#780): shared comparison table, prepare, how it works, and coaching server sections, then one section per approach. SWML attaches the sidecar when the call starts; REST stops it and attaches a new one by call ID. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…ny/ai-sidecar-guide
Replace the Bayview Taxi booking-lookup example with a generic support call: the sidecar sends the agent one short tip per customer turn, with no tools. The server samples drop the SWAIG tool and /swaig route. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Drop server and troubleshooting asides, add skip to the callback table, link the SWAIG setting inline, and remove the SDK-gap note. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The document is static, so the SWML approach now pastes it into a hosted SWML Script instead of pointing an External URL at the server. The server samples only receive callbacks at /events. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… guide Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Manny-r31
marked this pull request as ready for review
October 7, 2026 15:00
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/docs/swml/guides/ai-sidecar), a basics guide for theai_sidecarSWML method. Its structure and phrasing follow the call queues guide in docs(voice): add call queues guide #780.SWMLServicethat prints sidecar callbacks at/events.swml.ymlis unchanged. Thefern/llms.txtAI sidecar entry now points at the guide.Notes for reviewers
calling.ai_sidecar*commands, so the REST section uses the existingEndpointRequestSnippetexamples. Per author review, the page doesn't call out the gap.registerRoutingCallbackredirects unless the callback returns exactlynull, so the sample returnsnull, neverundefined.mod_openaisidecar implementation,mod_infrastructureschema), the TypeSpec, and the existing reference pages. Internal detail is kept out: engine, transport, Relay topic names, and billing SKUs.ai_sidecaranswers the call itself, so the document has noanswer.calling.ai_sidecar.stop, the call can take a new sidecar.ai_sidecarreference pages disagree with the source in places. The guide avoids these claims, and this PR doesn't fix them; that's a follow-up:live_transcribecan't run on one call. The source allows it.${global_data.x},${local_date},${session_uuid}) that the source mostly doesn't support.params.transcribe_promptbiases speech recognition. It never reaches the speech engine.permissions.swaig_set_global_dataisn't enforced.settings,back_to_back_functions,extensive_data, andset_meta_dataactions do nothing in a sidecar.finalis always the last callback. After atransferorhangupaction, it arrives beforestop.curl_code, and the speech engine vendor.<Language> — <client>format.Verification
yarn fern-md-check: passes (all MDX files valid).yarn fern-check: only the Fern-auth-gated "missing redirects" check fails locally because this machine isn't logged in to Fern. The one warning is the existing accent-color contrast warning.signalwire-sdk==3.4.1:SWMLServicebasic auth andregister_routing_callback. The callback runs on a non-empty POST, after the auth check.@signalwire/sdk@2.0.5:SWMLServicebasic auth andregisterRoutingCallback.slug:frontmatter. Anchors are checked by hand:#callback-types,#answer-a-call-via-swml,#prepare-for-your-first-call, and the in-page anchors.Preview
/docs/swml/guides/ai-sidecar🤖 Generated with Claude Code