Skip to main content
In this guide, you will learn how to configure your first embedded Agent Copilot workspace for the chat AI Agent. This configuration provides an Agent Copilot workspace that includes two widgets that suggest next actions to the human agent.

Prerequisites

Setup Process

The setup process includes the following steps:
  1. Create a handover provider. The handover provider connects the AI Agent and Agent Copilot to your contact center.
  2. Create a Handover Flow. The Handover Flow controls the interaction with the AI Agent and the handover to a human agent.
  3. Create an Agent Copilot Flow. The Agent Copilot Flow controls the Agent Copilot workspace and the individual widgets in it.
  4. Test the Agent Copilot workspace through a Webchat v3 Endpoint.

Set Up Agent Copilot for Chat

1

Create a Handover Provider

In Deploy > Handover Providers, create a Handover Provider according to your contact center platform.
2

Create a Handover Flow

  1. In Build > Flows, create a Flow and give it a clear name, for example, Handover.
  2. In the Flow editor, add a Say Node and set its Text parameter to Hi, let's hand you over to the human agents..
  3. Add a Handover to Agent Node and configure as follows:
3

Create an Agent Copilot Flow

  1. In Build > Flows, create a Flow and give it a clear name, for example, Agent Copilot.
  2. Add a Copilot: Set Grid Node and configure the grid as follows:
{
  "grid": {
    "columns": 2,
    "rows": 2,
    "gap": 5
  },
  "tiles": {
    "next-best-action": {
      "x": 1,
      "y": 1,
      "rows": 1,
      "columns": 1
    },
    "sentiment": {
      "x": 2,
      "y": 1,
      "rows": 1,
      "columns": 1
    }
  }
}
  1. After the Copilot: Set Grid Node, add an LLM Prompt Node. Configure it to generate the next best response for the agent based on the user’s latest input and to store the result in the Input object:
  • System Prompt — enter the following:
Based on the user's last message, suggest the most helpful next response for a human agent.
  • In the Storage & Streaming section, configure the following:
    • How to handle the result — set to Store in Input.
    • Input Key to store Result — set to input.promptResult.
  1. Add the following Agent Copilot Nodes after the LLM Prompt Node and configure them as follows:
    • Copilot: Next Action Tile Node:
      • Tile IDnext-best-action
      • Text:
      {{input.promptResult.detailedResult.choices[0].message.content}}
      
      This expression dynamically retrieves the LLM-generated suggestion for the tile.
      • (Optional) In the Settings section, set Label to Next Best Action.
    • Copilot: Sentiment Tile Node:
      • Tile IDsentiment.
      • (Optional) In the Settings section, set Label to Customer Sentiment.
4

Test Agent Copilot

To test Agent Copilot, create a Webchat v3 Endpoint:
  1. In Deploy > Endpoints, create a Webchat v3 Endpoint
  2. In the Endpoint settings, configure the following:
    • Set Flow to the previously created Handover Flow, for example, Handover.
    • In the Copilot section, set Copilot Flow to the previously created Agent Copilot Flow, for example, Agent Copilot.
  3. Click Save to activate the Open Demo Webchat button.
Then, to simulate a user interaction and test Agent Copilot, follow these steps:
  1. In the Webchat v3 Endpoint settings you created, click Open Demo Webchat in the upper-right corner. Demo Webchat opens.
  2. Click Start conversation and send the AI Agent a message, for example, Hello, I need help with my order. You should receive a message with the text you set in the Say Node followed by the text from the Handover to Agent Node.
  3. Go to your contact center platform and search for the session with the message you sent. The Agent Copilot workspace displays two widgets that suggest next actions.

More Information