--- title: "Enhanced Chat Script" slug: "enhanced-chat-script" updated: 2026-07-23T10:07:00Z published: 2026-07-23T10:07:00Z canonical: "help.8x8.com/enhanced-chat-script" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.8x8.com/llms.txt > Use this file to discover all available pages before exploring further. # Enhanced Chat Script The enhanced chat-scripting engine now allows you to design and control the chat flow in a contact center. You can associate a chat script with one or more chat channels. To see the chat workflow diagram, refer to Configuring Embedded Chat Design. **To design a chat script:** 1. Log in to **8x8 Configuration Manager**. 2. Navigate to **Scripts** in the navigation menu. 3. Click ![](https://cdn.us.document360.io/e3a59e39-abd3-4423-964c-0a4008dc5673/Images/Documentation/iconPlus_17x18.png?sv=2026-02-06&spr=https&st=2026-11-03T23%3A11%3A04Z&se=2026-11-04T00%3A11%3A04Z&sr=c&sp=r&sig=P898j%2Bj5OTGw7ieCPmOxfyFYV6dI624jBfBGhGJATP8%3D) or **Chat** link. ![](https://cdn.us.document360.io/e3a59e39-abd3-4423-964c-0a4008dc5673/Images/Documentation/CfgMgrChatScript01.png?sv=2026-02-06&spr=https&st=2026-11-03T23%3A11%3A04Z&se=2026-11-04T00%3A11%3A04Z&sr=c&sp=r&sig=P898j%2Bj5OTGw7ieCPmOxfyFYV6dI624jBfBGhGJATP8%3D) 4. In the **Properties** tab, enter a **Script name**. 5. Select a **Category** from the list. To create a new category, click **Edit Categories**. 6. Choose **Copy script from** if you wish to use an existing script. 7. Enter **Comments**. 8. Select **This script is enabled** if you wish to enable the script. 9. Click ![](https://cdn.us.document360.io/e3a59e39-abd3-4423-964c-0a4008dc5673/Images/Documentation/iconPlus_17x18.png?sv=2026-02-06&spr=https&st=2026-11-03T23%3A11%3A04Z&se=2026-11-04T00%3A11%3A04Z&sr=c&sp=r&sig=P898j%2Bj5OTGw7ieCPmOxfyFYV6dI624jBfBGhGJATP8%3D)**Assign new channels** to assign the new script to an existing channel. > [!NOTE] > Note: > > If you select a channel and click **Assign** the channel's previous script will be permanently replaced by the new script. You can assign one script to multiple channels. But each channel can have only one script. 1. Click **Save**. 2. In the **Script** tab, click **Chat**. The **[ add ]** hyperlink appears. ![](https://cdn.us.document360.io/e3a59e39-abd3-4423-964c-0a4008dc5673/Images/Documentation/CfgMgrChatScript02.png?sv=2026-02-06&spr=https&st=2026-11-03T23%3A11%3A04Z&se=2026-11-04T00%3A11%3A04Z&sr=c&sp=r&sig=P898j%2Bj5OTGw7ieCPmOxfyFYV6dI624jBfBGhGJATP8%3D) 3. Click **[ add ]** next to Chat. 4. Choose **CVB Online** and enter a name. 5. Click **[ add ]** again. 6. Choose **Forward to Queue** and enter a name. 7. Select a queue name from the **Add** window and click **OK**. **Forward to Queue** appears in the next line. ![](https://cdn.us.document360.io/e3a59e39-abd3-4423-964c-0a4008dc5673/Images/Documentation/CfgMgrChatScript03.png?sv=2026-02-06&spr=https&st=2026-11-03T23%3A11%3A04Z&se=2026-11-04T00%3A11%3A04Z&sr=c&sp=r&sig=P898j%2Bj5OTGw7ieCPmOxfyFYV6dI624jBfBGhGJATP8%3D) 8. Click **[ add ]** next to CVB online. 9. Choose **Online button** from the list and enter a name. 10. Select a window such as 8x8 online custom and click **OK**. 11. Click **[ add ]** next to **CVB online**. 12. Select **Chat** window from the list and enter a name 13. Click **Save**. The following image shows an example of chat script: ![](https://cdn.us.document360.io/e3a59e39-abd3-4423-964c-0a4008dc5673/Images/Documentation/CfgMgrChatScript04.png?sv=2026-02-06&spr=https&st=2026-11-03T23%3A11%3A04Z&se=2026-11-04T00%3A11%3A04Z&sr=c&sp=r&sig=P898j%2Bj5OTGw7ieCPmOxfyFYV6dI624jBfBGhGJATP8%3D) > [!NOTE] > Note: > > As long as you have all the objects in the code, the chat elements are automatically placed in the right order. 14. In the **Code** tab, select the **chat channel** from the list. 15. Click **Generate Code**. The code appears in the window. ![](https://cdn.us.document360.io/e3a59e39-abd3-4423-964c-0a4008dc5673/Images/Documentation/CfgMgrChatScript05.png?sv=2026-02-06&spr=https&st=2026-11-03T23%3A11%3A04Z&se=2026-11-04T00%3A11%3A04Z&sr=c&sp=r&sig=P898j%2Bj5OTGw7ieCPmOxfyFYV6dI624jBfBGhGJATP8%3D) 16. Copy and paste the code to a page where you want to insert a chat button on your website. > [!NOTE] > Note: > > This script does not interfere with the button layout. It must be included in the same page and within the body section of the web page, preferably just before the ending tag. > [!NOTE] > Note: > > If you wish to customize the chat elements such as use corporate fonts, you can point to a custom CSS stylesheet in the code snippet. > > ![](https://cdn.us.document360.io/e3a59e39-abd3-4423-964c-0a4008dc5673/Images/Documentation/CfgMgrEmbeddedChatDesign01a.png?sv=2026-02-06&spr=https&st=2026-11-03T23%3A11%3A04Z&se=2026-11-04T00%3A11%3A04Z&sr=c&sp=r&sig=P898j%2Bj5OTGw7ieCPmOxfyFYV6dI624jBfBGhGJATP8%3D) > > For more details, refer to [Embedded Chat API documentation](https://www.8x8.com/support/virtual-contact-center/documentation/virtual-contact-center-embedded-chat). 17. Click the Chat button you just created. The **Chat** window opens. ![](https://cdn.us.document360.io/e3a59e39-abd3-4423-964c-0a4008dc5673/Images/Documentation/CfgMgrChatScript06.png?sv=2026-02-06&spr=https&st=2026-11-03T23%3A11%3A04Z&se=2026-11-04T00%3A11%3A04Z&sr=c&sp=r&sig=P898j%2Bj5OTGw7ieCPmOxfyFYV6dI624jBfBGhGJATP8%3D) The following table summarizes the objects available for a chat script. | Chat Script Object | Description | | --- | --- | | Schedule | Use the object to check if the chat request came in when the business is open, closed, or exception hours. | | Skip Queue | Use this object to give the customer the option to send an email instead of waiting for the chat. | | Forward to Queue | Forwards the chats to a chat queue such as Sales or main queue. | | CVB Online | Chat Visual Block Online refers to a chat design element such as a chat button or chat form which can be used on your website during business hours. | | CVB Offline | Chat Visual Block Offline refers to a chat design element such as a chat button or chat form that activates on your website during closed hours. | | CVB Default | Chat Visual Block Default refers to a chat design element such as a chat button or chat form available by default from **8x8 Contact Center**. | | Greeting Message | Use this object to type a greeting message to invite the chat enthusiasts to the chat session. | | Test Queue | Use the Test Queue object to check the condition of a queue before entering a queue. |