Skip to content

Mission 3: Send Custom data to Autonomous AI Agent

🚨 Important Lab Dependency

This mission requires configuration created in the following missions:

  1. AI Agent Track ⮕ Autonomous AI Agent: Mission 1 - Create AI Autonomous Agent
  2. 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

  1. Switch to the Flow Designer tab with your AutonomousAIFlow_2000_Your_Attendee_ID, make sure Edit toggle is ON.

    Profiles

  2. 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.

     {"customer_name": "dear customer"}
    

    Note

    You are free to replace "dear customer" with your name. Ex. {"customer_name": "John Connor"}

    Profiles

  3. Validate and Publish the flow using the Latest tag.

    Profiles


Task 2. Configure AI Agent with the custom data from the Voice Flow

  1. Switch to Webex AI Agent, locate and open your Your_Attendee_ID_2000_AutoAI_Lab.

    Profiles

  2. 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?

    Profiles

  3. Click on Save changes and then click on Publish the AI Agent.

    Profiles

  4. 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.

  5. Confirm the expected behavior by reviewing the Session transcripts.

    Profiles

Congratulations, you have officially completed this mission! 🎉🎉