Prerequisites
- Configure a contact center platform that you can integrate with a handover provider. For example, for Live Agent, you need to have an Inbox with the Project ID and the Webhook URL set up and, if necessary, the Enable Agent Copilot Workspace option activated.
- Add a compatible LLM for the LLM Prompt and Copilot: Sentiment Tile nodes and configure it in Manage > AI & Voice Providers > Language Models. For more information, see Large language models (LLMs).
Setup process
The setup process includes the following steps:- Create a handover provider. The handover provider connects the agent and Agent Copilot to your contact center.
- Create a handover flow. The handover flow controls the interaction with the agent and the handover to a human agent.
- Create an Agent Copilot flow. The Agent Copilot flow controls the Agent Copilot workspace and the individual widgets in it.
- 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
- In Design > Flows, create a flow and give it a clear name, for example,
Handover. - In the flow editor, add a Say node and set its Text parameter to
Hi, let's hand you over to the human agents.. - Add a Handover to Human Agent node and configure the following:
- Handover provider — set to the previously created handover provider, and configure it accordingly. For example, if you use Live Agent, you need to set Inbox ID in the Live Agent settings section.
- Handover acceptance message — enter
Transferring to human agents....
3
Create an Agent Copilot flow
- In Design > Flows, create a flow and give it a clear name, for example,
Agent Copilot. - Add a Copilot: Set Grid node and configure the grid as follows:
- 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:
- In the Storage & Streaming Options section, configure the following:
- How to handle the result — set to Store in Input.
- Input Key to store Result — set to
input.promptResult.
- Add the following Agent Copilot nodes after the LLM Prompt node and configure them as follows:
- Copilot: Next Action Tile node:
- Tile ID —
next-best-action - Text:
This expression dynamically retrieves the LLM-generated suggestion for the tile.- (Optional) In the Settings section, set Label to
Next Best Action.
- Tile ID —
- Copilot: Sentiment Tile node:
- Tile ID —
sentiment. - (Optional) In the Settings section, set Label to
Customer Sentiment.
- Tile ID —
- Copilot: Next Action Tile node:
4
Test Agent Copilot
To test Agent Copilot, create a Webchat v3 Endpoint:
- In Deploy > Endpoints, click + New endpoint, select Webchat v3, and click Create endpoint. For more information, see Webchat v3: endpoint configuration.
- In the Endpoint settings, configure the following:
- On the Setup tab, set Target type to Flow and select the previously created handover flow, for example,
Handover. - On the Advanced tab, in the Copilot section, set Copilot type to Workspace and Copilot Flow to the previously created Agent Copilot flow, for example,
Agent Copilot.
- On the Setup tab, set Target type to Flow and select the previously created handover flow, for example,
- Make sure Activate endpoint is activated and click Save.
- In the live preview section of the Webchat v3 Endpoint settings you created, click the Open demo in new tab icon. Demo Webchat opens.
- Click Start conversation and send the 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 Human Agent node.At the start of a conversation, theInitial message for AI Copilotreply may appear in the human agent’s chat as if it were sent by the end user. This reply is added automatically to trigger Agent Copilot and is visible only to the human agent. - 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.