- AI Agent Flow — configures the AI Agent to receive calls, recognize the caller’s language, and hand them over to human agents.
- Agent Copilot Flow — configures the Agent Copilot workspace and the real-time translation widget.
Prerequisites
- Access to Voice Gateway.
- Configure a speech provider in Cognigy.AI.
- Configure settings in the Voice Gateway Self-Service Portal:
- The phone number you use in your contact center.
- An Voice Gateway Application.
- A speech provider.
- Create a Voice Gateway Endpoint.
- Create a handover provider that integrates with your contact center platform.
- Configure an LLM that supports LLM Prompt Nodes.
Configure Real-Time Translation for Agent Copilot
Configure the AI Agent Flow
1
Create a Flow and Add a Say Node for Greeting
- In Build > Flows, create a Flow and give it a name, for example,
Real-Time Translation Agent Flow. - Add a Say Node and configure the following settings:
- Text — enter a greeting message, for example,
Hello! Welcome to our customer service line!. Save the Node.
- Text — enter a greeting message, for example,
2
Add a Question Node for Language Recognition
- Below the Say Node, add a Question Node and configure the following settings:
- Question Type — select Text.
- Click
and select Voice Gateway from the list.
- Text — enter
What is your preferred language?. - Activate Set Activity Parameters.
- In the Recognizer (STT) section, select your speech provider from the STT Vendor list.
- STT Language — select the Flow language, for example, English (United States).
- Activate Recognize Language and select the languages you want to recognize, for example,
German (Germany),Portuguese (Brazil), from the Alternative Language 1 and Alternative Language 2 lists. Save the Node.
3
Add a Lookup Node for Language-Specific Voice Output
- Below the Question Node, add a Lookup Node and configure the following settings:
- Type — select CognigyScript.
- Operator — enter the following:
This value verifies the language code for language recognition. Save the Node. - Set the Case Nodes as follows:
- Case Node 1:
- Value — enter
de-DE. For language recognition, use the full BCP-47 format.
- Value — enter
- Case Node 2:
- Value — enter
pt-PT. For language recognition, use the full BCP-47 format.
- Value — enter
- Case Node 1:
- Below each Case Node, add a Set Translation Node and configure as follows:
- Set Translation Node for German:
- User Input Language — enter
de. For translation, use the ISO 639-1 language code. - Flow Language — enter
en. - (Optional) In the Settings section, enter a name to distinguish the Node in the Label field, for example,
EN/DE. Save the Node.
- User Input Language — enter
- Set Translation Node for Portuguese:
- User Input Language — enter
pt. For translation, use the ISO 639-1 language code. - Flow Language — enter
en. - (Optional) In the Settings section, enter a name to distinguish the Node in the Label field, for example,
EN/PTBR. Save the Node.
- User Input Language — enter
- Set Translation Node for German:
- Below each Set Translation Node, add a Set Session Config Node and configure the Synthesizer (TTS) settings as follows:
- Set Session Config Node for German:
- TTS Vendor — select your speech provider.
- TTS Language — select German.
- TTS Voice — select a voice for your AI Agent to use when speaking in German.
- Set Session Config Node for Portuguese:
- TTS Vendor — select your speech provider.
- TTS Language — select Portuguese from the TTS Language list.
- TTS Voice — select a voice for your AI Agent to use when speaking in Portuguese.
- Set Session Config Node for German:
4
(Optional) Add an LLM Prompt Node for a Human-Like Handover Message
- Below the Lookup Node, add an LLM Prompt Node and configure the System Prompt field as:
5
Configure Handover
Below the Lookup or the LLM Prompt Node, add a Handover to Agent Node and configure the following:
- Handover Settings section, select your handover provider from the Handover Provider list. Depending on the handover provider, you need to configure additional settings.
Configure the Agent Copilot Flow
1
Configure the Agent Copilot Grid
- In Build > Flows, create a Flow and give it a clear name, for example,
Real-Time Translation Copilot Flow. - Add a Copilot: Set Grid Node and set the Copilot Grid Configuration as follows:
Agent Copilot Grid JSON
Agent Copilot Grid JSON
-
Below the Copilot: Set Grid Node, add an LLM Prompt Node and configure it to generate the next best response for the agent based on the user’s latest input and to store the result in the Input object:
- System Prompt — enter the following:
- In the Storage & Streaming section, configure the following:
- How to handle the result — set to Store in Input.
- Input Key to store Result — set to
input.promptResult.
- System Prompt — enter the following:
-
Add a Copilot: Next Action Tile Node after the LLM Prompt Node and configure the Node as follows:
- Tile ID:
next-action - Text:
- Tile ID:
-
Add a Copilot: Transcript Tile Node and set Tile ID to
transcript.
2
Create a Voice Copilot Endpoint
- In Deploy > Endpoints, click + New Endpoint and select Voice Copilot.
- In the New Endpoint section, configure the following:
- Name — enter a unique name, for example,
Real-Time Translation Copilot Endpoint. - Flow — select the Agent Copilot Flow you created from the list.
- Name — enter a unique name, for example,