Mission 9: Customize AI Agent Language
🚨 Important Lab Dependency
- AI Agent Track ⮕ Autonomous AI Agent: Mission 1 - Create AI Autonomous Agent
- AI Agent Track ⮕ Autonomous AI Agent: Mission 2 - Integrating the AI Agent with Flow for Voice Calls
If these missions were not completed, some steps in current mission will not function correctly.
Mission overview
- In this mission, you will change the language of your AI agent for the voice channel. This feature allows flexibility for supporting customers in different languages.
Build
Task 1. Configure language related Global Variables in voice flow
-
Go to Flows and open up your voice flow AutonomousAIFlow_2000_Your_Attendee_ID and click Edit Flow.
-
Click anywhere on the grey field area and navigate to the Global Flow Properties panel on the right-hand side.
-
Scroll down and Locate the Predefined Variables section.
-
Click on the Add Global Variables button.
-
Search for Global_Language variable and click on Add button.
-
Click on the Add Global Variables button one more time.
-
Search for Global_VoiceName variable and click on Add button.
Note
Review documentation with available languages and voices.
Supported-languages-and-voices-for-AI-agents -
-
Remove connection between NewPhoneContact and VirtualAgent nodes.
-
Add a Set Variable node from the activity library on the left with following configuration:
-
Navigate to the Variable Settings section.
-
Click on the Variable drop-down list and select Global_Language.
-
Set Value: es-US.
-
Click on the + Add New button under the variable you have just added to add another one.
-
Click on the Variable drop-down list and select Global_VoiceName.
-
Set Value: es-US-Alonso.
-
Connect NewPhoneContact to Set Variable.
-
Connect Set Variable to VirtualAgent.
-
-
Call the number that is related to your channel. You should hear the AI agent play the Welcome message in English with an accent, but afterward, you can continue the conversation in the language that you configured in the flow. You will change the Welcome message in the next Task.
Task 2. Change the Welcome message
The AI Agent Welcome message is currently a static value. If you want to change the Welcome message to a different one, you can update it in the AI Agent Studio portal.
-
Update the Welcome message with the one in different language. For example for Spanish you can update it to: Hola, mi nombre es Blossom, el Agente de IA. ¿Cómo puedo ayudarle?.
-
Click Save changes and Publish the flow. Provide any version name in popped up window (e.g. "1.6").

-
Call the number associated with your channel. You should hear the Welcome message and be able to have a conversation with the AI Agent in a different language. All functionality, such as transferring to the HR department or to another AI agent, will still function in different languages without adjusting any further configurations.
Congratulations, you have officially completed this mission! 🎉🎉



