Objective
This guide will cover how to configure your AI chatbot in the Cognigy platform using the 8x8 chat widget.
Before starting this guide, you will need to make sure you have completed Configuring the 8x8 Extension for ICA.
Applies To
- 8x8 Contact Center
- Intelligent Customer Assistant (ICA)
- Cognigy
Configure the 8x8 Endpoint
- You will need to obtain a Chat Gateway API Key. You can follow this guide for steps on obtaining the API key. Create an App with a name similar to ICAChatGatewayAPI.
- Make a note of this key as it will be used in Cognigy.
- Log into your Cognigy account.
- Click on the agent you need to handover to 8x8.
- Expand the Deploy tab and select Endpoints.
- Create a new endpoint.
- Enter a name for the Endpoint
- Select a Flow.
- Select 8x8.
- Click Save.
- Expand the 8x8 Setup section.
- Enter https://api.8x8.com as the Base API URL.
- Copy and paste the API Key you acquired in step 1 into the API access token field.
- Enter your tenant name into the 8x8-Tenant field.
- Scroll down to the Handover Settings section.
- Select 8x8 as the Handover Platform.
- Enter the same information that you just entered.
- Click Save.
- Copy the Endpoint URL.
Create a Channel for the Cognigy Bot
- Open your 8x8 Configuration Manager.
- Go to the Channels tab and click on Chat.
- Create a new chat channel for your chatbot.
- Make sure the channel is enabled.
- Click Save.
Note: Do not create a channel of type ChatAPI.
Create a Webhook in 8x8 to Point to the Cognigy Endpoint
- Go to the Integration tab and click on Webhooks, then add a new webhook.
- Enter the Webhook name and the Endpoint URL you copied earlier.
- In the Chat API Version field, select Chat Gateway v1.0.
- Click Test Connection to ensure it has been entered correctly and is working.
- Click Save.
- Edit the Webhook again and assign it to the channel you created earlier.
- Click Save.
Create a Chat Queue for the Cognigy Bot
- Go to the Queues/Skills tab and create a new chat queue.
Note: Do not add any agents to this queue. A separate queue will be used to handover chats to agents. This queue is to hold chats that Cognigy bot/agent is answering before, or instead of, passing them to a human agent.
Create a Chat Window
In order to use an 8x8 chat widget with Cognigy you will need to create the design of your chat widget.
- To do so, go to the Chat Design tab and follow this chat design guide.
- Once you have created your chat design, click on the Window section and edit the chat Window you are using.
- Make sure the option for Allow customers to keep session alive is ticked.
- Set the Duration value to 60 minutes.
Create a Chat Script
Now that we have our chat design, we need to create a chat script to piece it all together.
- Go to the Scripts tab and use this chat script guide to see how to build a chat script, as well as what each script object does.
- Now that you have created your chat script how you require, add in a Forward to Queue object.
- Set your Forward to Queue object to point to the chatbot queue you created earlier.
This completes the steps on how to integrate your AI chatbot on the Cognigy platform using the 8x8 chat widget. Here are the steps on Configuring the Agent Handover from Cognigy to 8x8.