Mission 5: Deliver fulfillment results to the caller
🚨 Important Lab Dependency
This mission requires configuration created in the following missions:
- AI Agent Track ⮕ Scripted Agent: Mission 1 - Configure Scripted Agent to answer basic questions
- AI Agent Track ⮕ Scripted Agent: Mission 2 - Integrate Scripted Agent with Voice Flow
- AI Agent Track ⮕ Scripted Agent: Mission 3 - Configure flow to track an order
- AI Agent Track ⮕ Scripted Agent: Mission 4 - Configure the fulfillment
If these missions were not completed, some steps in current mission will not function correctly.
Mission Details
- In the previous Mission 4, you configured a fulfillment flow that executes an API call in the WxCC Voice flow based on the order number and parses the order status. In this mission, you will configure the flow to return this status to Webex AI Agent Studio so that the Scripted AI agent can deliver the result back to the caller.
Build
Task 1. Add VirtualAgentV2 node to bring data back to AI Studio
Note
To deliver the call back to AI Studio, you need to add additional VirtualAgentV2 node to the flow.
-
Open Autonomous_Scripted_Flow_2000_Your_Attendee_ID. Click on Edit the flow.

-
Delete the Disconnect Contact node and add VirtualAgentV2 node. Connect HttpRequest node to VirtualAgentV2 node.

-
Click on VirtualAgentV2. In the Contact Center AI Config, search for scripted and select Webex AI Agent (Scripted). Under the Virtual Agent option, search for the Scripted AI Agent with name Your_Attendee_ID_Scripted_AI_Agent.

-
Connect Escalated output from the VirtualAgentV2 node to the Queue node.

-
Add Disconnect Contact node and connect Handled output to the Disconnect Contact node.

Task 2. Configure State Event in the VirtualAgentV2 node
Note
We need to configure the VirtualAgentV2 node to send the order status to AI Studio, which will be retrieved in the specific response. For this, we will utilize the State Event.
-
Select the VirtualAgentV2 node that you have added in the previous Task and click on State Event.

-
Configure the State Event with the following:
Event Name: order_status
Event Data:
Task 3. Review the order_status Response configuration
-
Switch to Webex AI Agent Studio and open your Scripted Agent. If you followed all the steps the name of the Scripted Agent should be Your_Attendee_ID_Scripted_AI_Agent.

-
Go to Script ⮕ Responses and search for the Response with the name order_status. This response is preconfigured in this lab for you. Go to Voice channel and review the configurations.

Task 4. Test Scripted AI agent order status flow
-
During IVR, press 2 to and say "I want to track my order". Provide the order details that you created earlier, or use the order with number 22 for the example.
Congratulations, you have officially completed this mission! 🎉🎉



