Mission 3: Send Custom data to Autonomous AI Agent
🚨 Important Lab Dependency
This mission requires configuration created in the following missions:
- 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.
Passing custom data feature is now available for autonomous AI agents. This feature enhances the end-user experience and provides you with greater control over voice conversations. With this feature, developers can send a JSON payload from the WXCC flow directly to the autonomous AI agent at the start of each session. You can use this payload to customize agent behavior for each customer or to pass information from the flow that the AI agent needs.
The custom data sent to the AI Agent can be accessed in the agent's goals, instructions, welcome message, actions, or slots using the syntax {{variable}} in the Webex AI Agent studio application.
Mission overview
Your mission is to:
- Customize the Welcome message by sending custom data from the Voice flow to AI Agent.
Build
Task 1. Configure Voice Flow to send custom data to AI agent
-
Switch to the Flow Designer tab with your AutonomousAIFlow_2000_Your_Attendee_ID, make sure Edit toggle is ON.
-
Enter the following JSON data to the Event Data field. Make sure you paste the JSON data to the Event Data but not to the Event Name.
Note
You are free to replace "dear customer" with your name. Ex. {"customer_name": "John Connor"}
-
Validate and Publish the flow using the Latest tag.
Task 2. Configure AI Agent with the custom data from the Voice Flow
-
Switch to Webex AI Agent, locate and open your Your_Attendee_ID_2000_AutoAI_Lab.
-
In the Welcome message text replace the word there with {{customer_name}}. In this case we expect that the caller will hear:
Hi dear customer, my name is Blossom, the AI Agent. How can I assist you? -
Click on Save changes and then click on Publish the AI Agent.
-
Place the test call to the number that is associated with your Channel Your_Attendee_ID_Channel, and check if you hear the custom message.
-
Confirm the expected behavior by reviewing the Session transcripts.
Congratulations, you have officially completed this mission! 🎉🎉






