Voice Gateway Setup logo

Voice Gateway Setup

Organization
Cognigy
voice-gateway-setup

Use when the user wants to set up a voice agent (cascaded or speech-to-speech, S2S, also called voice-to-voice or V2V), choose its voice or speech provider (TTS/STT, NiCE-provided speech), change its call behaviour (greeting, barge-in, silence), or create a Voice Gateway endpoint with WebRTC for browser-based voice interaction.

Overview

PublisherCognigy
Repositorycognigy-plugin
Skill namevoice-gateway-setup
Stars
20
Forks
14
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Cognigy on GitHub. Read the source before you install it.

Installation

Install the Voice Gateway Setup AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/voice-gateway-setup
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Cognigy/cognigy-plugin.git /tmp/cognigy-plugin
mkdir -p .claude/skills
cp -r /tmp/cognigy-plugin/plugin/skills/voice-gateway-setup .claude/skills/voice-gateway-setup
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Voice Gateway Setup in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Voice Gateway Setup on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Voice Gateway Setup is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Voice Gateway Setup Guide

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.

AI Agents

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.

  1. Check the environment. 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.
  2. Speech-to-speech first. Speech-to-speech (S2S) is the product's name; users may say voice-to-voice or V2V for the same thing. Always call it speech-to-speech yourself, also when the user said V2V or voice-to-voice, and never echo their term. It responds faster and sounds more natural, so a new voice agent gets it whenever possible. Never present speech recognition and synthesis as a fallback or a downgrade. The platform ships no speech-to-speech model: it needs one the user brought.
    • s2s is unavailable: skip this step and never mention speech-to-speech.
    • The project has a gpt-live-1 model (modelGroup: "voiceToVoice"): nothing to do, manage_agent create binds it for a voice agent.
    • Another project has one: you see it in the agent-creation skill's LLM scan (shared step 4), which also runs for a voice agent whose project has no such model. Ask once: "Project X has a speech-to-speech (S2S) model. Copy it here?" The copy carries that model's API key into this project, which may belong to another team. On yes, copy it with packages (shared step 5, the LLM alone; its Connection comes with it) before manage_agent create, or set it afterwards with manage_agent { operation: "update", voiceLargeLanguageModelReferenceId }. On no, carry on with speech.
    • The user named a speech setup (e.g. "use Deepgram"): pass voiceLargeLanguageModelReferenceId: "" on create, and don't offer speech-to-speech.
    • Otherwise the agent uses speech recognition and synthesis (steps 4-6). The create result's _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.
  3. The agent. 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.
  4. Pick the speech. A new voice agent without a voice model already has it: 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:
    • a niceProvided: true row, Deepgram for TTS and NiCE for STT, when the user has no preference;
    • the project's own credential (niceProvided: false, status: "ok");
    • otherwise ask the user. Never invent a credential, vendor or voice id. A row serves TTS only with tts: true and STT only with stt: true (the nice vendor is STT only).
  5. Set the agent's speech.
    json
    {
      "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.
  6. Call behaviour (optional), same config:
    KeyMeaning (default)
    greetingMode, greetingTextwho speaks first: agent (default), static speaks greetingText, none waits
    bargeInOnSpeech, minWordsToInterruptcaller can interrupt (on); words needed (1; 2-3 stops "uh-huh" from cutting in)
    promptOnSilence, silenceTimeoutSeconds, silenceRetriesre-prompt a silent caller (on, 8 s, 2 times)
    thinkingSound, backgroundSoundtyping_loop while thinking (default), none; background none or hold_music
    maxUtteranceCharslongest spoken reply (240)
    get shows every key and its value; delete resets the agent to the defaults.
  7. Voice preview for the click-to-call page. The WebRTC client needs the project's voice preview provider, for AI Agents too: 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).
  8. The endpoint. 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.
  9. Voice tools. Let the agent end calls: manage_agent_components { operation: "create", component: "tool", projectId, agentId, config: { builtinSlug: "voice-hangup", ... } }; add voice-transfer when calls get handed to a person.
  10. Test. talk_to_agent { agentId, projectId } tests the answers as text only. The voice itself is tested by calling webrtcDemoUrl; say so to the user.

Legacy AI Agents and flows

Prerequisites

  1. A Project — use list_resources { resourceType: "project" } to find one, or let create_ai_agent create one automatically.
  2. A Flow — the conversation logic the voice endpoint connects to. Use list_resources { resourceType: "flow", projectId } to find existing flows.
  3. An LLM — the agent needs an LLM to generate responses. Use setup_llm if not configured.

Quick Start

1. Create a Voice Gateway endpoint
json
{
  "projectId": "<24-char hex>",
  "flowId": "<flow referenceId>",
  "name": "My Voice Agent"
}

This automatically:

  • Creates a voiceGateway2 endpoint
  • Provisions a WebRTC client
  • Returns a webrtcDemoUrl the user can open in a browser
2. Customize the WebRTC widget (optional)
json
{
  "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"
  }
}
3. Update an existing endpoint
json
{
  "endpointId": "<24-char hex>",
  "webrtcWidgetConfig": {
    "theme": "CLEAN_WHITE"
  }
}

Create vs update:

  • Omit endpointId → a new voiceGateway2 endpoint is always created (projectId + flowId required). The tool never auto-detects an existing endpoint.
  • Pass 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 }.

WebRTC Widget Themes

ThemeDescription
DARK_MODEDark background (default)
CLEAN_WHITELight/white background
AI_PURPLEPurple accent theme

URLs in the Response

FieldPurpose
webrtcDemoUrlOpen in browser to talk to the agent — always show this to users
_integration.wsEndpointUrlWebSocket URL for programmatic/embedded use
_integration.embeddingSnippetHTML 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.

Embedding on 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.

Typical Full Workflow (legacy)

  1. create_ai_agent → get flowId and projectId
  2. setup_llm → configure LLM for the project
  3. manage_voice_gateway { projectId, flowId } → get webrtcDemoUrl
  4. Share the URL with the user

Frequently asked questions

What does the Voice Gateway Setup AI skill do?

Use when the user wants to set up a voice agent (cascaded or speech-to-speech, S2S, also called voice-to-voice or V2V), choose its voice or speech provider (TTS/STT, NiCE-provided speech), change its call behaviour (greeting, barge-in, silence), or create a Voice Gateway endpoint with WebRTC for browser-based voice interaction.

Why use Voice Gateway Setup on TypingMind?

Because you install it once and use it with any model. Voice Gateway Setup is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Voice Gateway Setup in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/voice-gateway-setup. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Voice Gateway Setup?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Voice Gateway Setup?

As many as you like. As long as a model supports skills, you can use Voice Gateway Setup with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Voice Gateway Setup AI skill free?

Yes. It is published on GitHub by Cognigy under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇