/cognigy:voice-gateway-setupfrom cognigy
Guides setting up a voice agent with WebRTC, including speech-to-speech (S2S) and cascaded TTS/STT, choosing voice providers, and configuring call behavior like greeting and barge-in.
Ships in cognigy. 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.
None: SKILL.md is the whole skill.
Deploy an AI Agent as a voice-enabled endpoint with WebRTC support. Users can talk to the agent directly in their browser.
Where check_capabilities reports aiAgents: "available", follow AI Agents below. The rest of this guide is for legacy AI Agents (built with create_ai_agent) and other flows.
An AI Agent's speech and call behaviour live on the agent itself, in its voice_settings (manage_agent_components { component: "voice_settings" }). Nothing to set there means the defaults: the call takes its speech from the endpoint, then the project's default speech credential, then NiCE-provided speech.
check_capabilities → niceSpeech: "available" means the organisation has NiCE-provided speech: no Connection and no customer key needed. s2s says whether speech-to-speech (S2S, GPT Live) is on, and s2sProviders which LLM providers can run it.s2s is unavailable: skip this step and never mention speech-to-speech.gpt-live-1 model (modelGroup: "voiceToVoice"): nothing to do, manage_agent create binds it for a voice agent.manage_agent create, or set it afterwards with manage_agent { operation: "update", voiceLargeLanguageModelReferenceId }. On no, carry on with speech.voiceLargeLanguageModelReferenceId: "" on create, and don't offer speech-to-speech._hints.hint then carries one line offering speech-to-speech: make it the last paragraph of the build summary, once, word for word, with no label or bullet. That line is the only mention: don't explain why the agent isn't speech-to-speech ("the project has no speech-to-speech model, so…"), and don't use the line when you already asked about a copy.manage_agent { operation: "create", agentType: "voice", ... } (agent-creation skill), or an existing one from list_resources { resourceType: "agent", projectId }. With a voice model, read the s2s-demo skill for the voice and the voice prompt.manage_agent create sets NiCE-provided speech in the project's language when the organisation has it, and returns it as speech. With several NiCE-provided vendors, TTS is Deepgram and STT is NiCE; when Deepgram has no voice for the language, the next one with a voice. Mention the speech in the build summary, and only change it when the user asks. To change it: list_resources { resourceType: "speech_provider", projectId }, then prefer, in this order:
niceProvided: true row, Deepgram for TTS and NiCE for STT, when the user has no preference;niceProvided: false, status: "ok");tts: true and STT only with stt: true (the nice vendor is STT only).{
"operation": "update",
"component": "voice_settings",
"projectId": "<24-char hex>",
"agentId": "<24-char hex>",
"config": {
"ttsCredentialReferenceId": "<speech_provider referenceId>",
"ttsLanguage": "en-US",
"sttCredentialReferenceId": "<speech_provider referenceId>",
"sttLanguage": "en-US"
}
}
The credential also fills ttsVendor/ttsLabel (or sttVendor/sttLabel). Without ttsVoice the result lists voices for that language: pick one (ask the user when it matters) and update ttsVoice. Each block counts only when complete: TTS needs vendor, voice and language; STT needs vendor and language. An incomplete block is ignored on calls, and the result warns about it.config:
| Key | Meaning (default) |
|---|---|
greetingMode, greetingText | who speaks first: agent (default), static speaks greetingText, none waits |
bargeInOnSpeech, minWordsToInterrupt | caller can interrupt (on); words needed (1; 2-3 stops "uh-huh" from cutting in) |
promptOnSilence, silenceTimeoutSeconds, silenceRetries | re-prompt a silent caller (on, 8 s, 2 times) |
thinkingSound, backgroundSound | typing_loop while thinking (default), none; background none or hold_music |
maxUtteranceChars | longest spoken reply (240) |
get shows every key and its value; delete resets the agent to the defaults. |
manage_settings { operation: "set_voice_preview", projectId, provider: "microsoft", isNiceProvided: true } with a vendor that has a niceProvided row, else the provider's Connection (settings skill).manage_voice_gateway { projectId, agentId, name, webrtcWidgetConfig } → show webrtcDemoUrl. Don't try to set speech on the endpoint for an AI Agent: the agent's voice_settings are the place.manage_agent_components { operation: "create", component: "tool", projectId, agentId, config: { builtinSlug: "voice-hangup", ... } }; add voice-transfer when calls get handed to a person.talk_to_agent { agentId, projectId } tests the answers as text only. The voice itself is tested by calling webrtcDemoUrl; say so to the user.list_resources { resourceType: "project" } to find one, or let create_ai_agent create one automatically.list_resources { resourceType: "flow", projectId } to find existing flows.setup_llm if not configured.{
"projectId": "<24-char hex>",
"flowId": "<flow referenceId>",
"name": "My Voice Agent"
}
This automatically:
voiceGateway2 endpointwebrtcDemoUrl the user can open in a browser{
"projectId": "<24-char hex>",
"flowId": "<flow referenceId>",
"name": "My Voice Agent",
"webrtcWidgetConfig": {
"label": "Support Agent",
"theme": "AI_PURPLE",
"transcription": { "enabled": true },
"tagline": "How can I help you today?",
"avatarLogoUrl": "https://example.com/avatar.png"
}
}
{
"endpointId": "<24-char hex>",
"webrtcWidgetConfig": {
"theme": "CLEAN_WHITE"
}
}
Create vs update:
endpointId → a new voiceGateway2 endpoint is always created (projectId + flowId required). The tool never auto-detects an existing endpoint.endpointId → that endpoint is updated and the settings you pass are merged into its existing configuration; everything else is preserved. Find it first with list_resources { resourceType: "endpoint", projectId }.| Theme | Description |
|---|---|
DARK_MODE | Dark background (default) |
CLEAN_WHITE | Light/white background |
AI_PURPLE | Purple accent theme |
| Field | Purpose |
|---|---|
webrtcDemoUrl | Open in browser to talk to the agent — always show this to users |
_integration.wsEndpointUrl | WebSocket URL for programmatic/embedded use |
_integration.embeddingSnippet | HTML code to embed the voice widget on a website |
Present webrtcDemoUrl as a clickable link after every successful create or update — do not send the user to the Cognigy UI to find it. Mention the _integration fields only when the user asks about embedding or deploying to a website.
Copy the embeddingSnippet from the response into your HTML page. It loads the Cognigy WebRTC widget and connects to the voice endpoint automatically.
create_ai_agent → get flowId and projectIdsetup_llm → configure LLM for the projectmanage_voice_gateway { projectId, flowId } → get webrtcDemoUrlWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
voice-agent, webrtc, speech-to-speech, tts, stt, voice-gateway
18 skills in this plugin
/a2a-setupUse when the user explicitly asks for A2A (Agent2Agent), wants an agent to call an external / third-party A2A agent or one in another project or tenant, or wants to expose a Cognigy agent to outside A2A callers. Covers the manage_a2a_server endpoint and the create_tool { toolType: 'a2a' } tool type. NOT for connecting agents that live in the same project — those use the native Handover to AI Agent tool./agent-creationUse when the user wants to build, create, or set up a new Cognigy AI Agent from scratch, or change an agent's settings, skills, tools, knowledge or system prompt, or make it answer faster — covers checking what the environment supports, listing projects, ensuring an LLM exists, creating the agent, testing it, and refining it./agent-red-teamUse when the user wants to red-team, adversarially test, jailbreak-test, or probe the guardrails of a Cognigy AI Agent — covers scoping consent, deriving the agent's policy surface from its config, generating targeted probes, scoring verdicts, and producing a standardised findings report./docs-lookupUse when the user asks how a Cognigy.AI feature, node, endpoint, setting, or concept works, asks for Cognigy documentation, best practices, or release/version behavior, or when you are unsure of platform behavior or valid configuration values and need to consult the official docs before answering or building./environmentsUse when Cognigy tools ask for an "environment", when the user works with several Cognigy environments or tenants (trial, a customer tenant), wants to compare or copy something between environments, or asks how to add another Cognigy environment./flow-nodesUse when adding, editing or debugging custom logic inside a Cognigy tool branch with manage_flow_nodes (code, HTTP Request, if/else and other nodes), or when rendering/visualizing a flow as a diagram — supported node types, config schemas, placement rules, the tool-first workflow, and the render operation.npx claudepluginhub cognigy/cognigy-plugin --plugin cognigyOther plugins' skills for the same job