- Agent flow — configures the 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.
- Configure a speech provider in Cognigy.
- Configure settings:
- The phone number you use in your contact center.
- A Voice Application.
- A speech provider.
- Create a Voice endpoint.
- Create a handover provider that integrates with your contact center platform.
- Configure an LLM in Manage > AI & Voice Providers > Language Models that supports the LLM Prompt node.
Configure real-time translation for Agent Copilot
Configure the agent flow
1
Create a flow and add a say node for a greeting
- In Design > 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 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 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 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 the handover
Below the Lookup or the LLM Prompt node, add a Handover to Human Agent node and configure the following:
- Handover provider — select your handover provider from the list. Depending on the handover provider, you need to configure additional settings.
Configure the Agent Copilot flow
1
Configure the Agent Copilot grid
- In Design > 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 Options 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, select Voice Copilot, and click Create endpoint.
- On the Setup tab, configure the following:
- Endpoint name — enter a unique name, for example,
Real-Time Translation Copilot Endpoint. - Target type — select Flow.
- Flow — select the Agent Copilot flow you created from the list.
- Endpoint name — enter a unique name, for example,