Mission 5: Configure Transfer Action for a Specific Queue
🚨 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
- AI Agent Track ⮕ Autonomous AI Agent: Mission 3 - Send Custom data to Autonomous AI Agent
- AI Agent Track ⮕ Autonomous AI Agent: Mission 4 - Configure Fulfillment Action and create an order
If these missions were not completed, some steps in current mission will not function correctly.
Good to Know: What is a Transfer Action?
Transfer Action is a task that an AI agent performs by understanding user intents and transferring the interaction back to the WxCC flow with custom data for further processing.
Mission overview
Your mission is to:
-
Configure the Transfer action to transfer the call to WxCC Voice with custom settings for further processing if the caller wants to talk to the HR or Billing departments.
Build
Task 1. Create Transfer to flow action in AI Agent Studio portal
-
Switch to Control Hub, go to Contact Center > Overview and open up the Webex AI Agent Studio portal.

-
Open your AI agent with name Your_Attendee_ID_2000_AutoAI_Lab and then click on Actions.

-
Select New action option. Then click on Create new and choose Transfer action.

-
Configure new action as follows:
- Action name: Transfer_to_different_department
- Transfer condition: When the customer wants to transfer the call to HR or Billing department use this Action.
- Action name: Transfer_to_different_department
-
Click on add New input entity. Configure it with the following:
Entity name: department
Entity description: Collect if the customer wants to transfer the call to HR or Billing Department
Entity example: HR
Entity example: Billing -
Publish the AI Agent. Provide any version name in popped up window (e.g. "1.2").

Task 2. Configure voice flow to transfer customers to the HR or Billing queue
-
Switch to Webex Control Hub, open your voice flow with the name AutonomousAIFlow_2000_Your_Attendee_ID
.
-
[Read Only]. In the previous task, we created an action with the department entity. The information about the value of the entity can be retrieved from the Activity Output Variable, specifically from VirtualAgentV2XXXMetaData. In the next steps, we will add the Set Variable node to see the MetaData in JSON format, and then we will add the Parse and Case nodes to handle the logic and distribute the call to the appropriate queue.

-
Create new flow variable
Name: MetaData_AI
Variable type: string
Click Save -
Add a Set Variable node from the activity library on the left with following configuration:
-
Remove connection from Escalated output of the VirtualAgentV2 node to the QueueCOntact node
-
Connect Escalated output of the VirtualAgentV2 node to the Set Variable node
-
-
Click on Set Variable node,
-
Navigate to the Variable Settings section.
-
Click on the Variable drop-down list and select MetaData_AI.
-
For Set Value first click on VirtualAgentV2 node and copy the name of the MetaData Activity Output Variable. Then paste this value inside of the {{ }} to the Variable Value field. See the GIF below for details.
-
-
Connect Set Variable node to the Queue node for now. Validate and Publish the Flow.

-
Place test call to the number that is related to your channel Your_Attendee_ID_Channel. During the conversation with AI Agent ask to transfer you to the HR department. The call should go to the only Queue that is currently configured in the flow.
-
After the call is completed, switch to Flow Designer and click on Debug. Review the metadata in the Set Variable node.

-
[Read Only] From MetaData we can see the value of the department entity is "HR".

-
[Read Only]. To parse the value in the flow, we need to determine the JSON path to retrieve the value. By using an open-source tool (e.g. JSONPath Online Evaluator), you can ensure you are using the correct JSON path to extract the value you need. In our case, the JSON path is $.actions.Transfer_to_different_department[0].input.department to retrieve the value for the department entity.

-
Switch from the Debug to Design tab and click on Edit the flow.
-
Click on empty canvas space then click on Add Flow Variable
Name: department
Variable Type: string
Click Save
-
Remove connection between Set Variable and Queue Contact nodes.
-
Add Parse node to the flow and connect Set Variable node to the Parse node.

-
Configure the Parse node with the following settings:
Input Variable: MetaData_AI
Content Type: JSON
Output Variable: department
Path Expression: $.actions.Transfer_to_different_department[0].input.department

-
Add Case node to the flow and connect the Parse node to the Case node.

-
Configure the Case node with the following settings:
Variable: department
LINK Description: HR
LINK Description: Billing -
Connect the HR, Billing and Default cases to the Queue Contact node, which should still be present among the flow nodes.
Note
You will use your queue Your_Attendee_ID_Queue during testing and verify the selected case using the Debug tool.
-
Dial the support number assigned to your Your_Attendee_ID_Channel channel. During the conversation with AI Agent ask to transfer you to the HR department. The call should park to your queue. After the call is completed. Go to Debug, find the call to make sure it went to your queue via HR case.

Congratulations, you have officially completed this mission! 🎉🎉










