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 or Chat link.

  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 Assign new channels to assign the new script to an existing channel.

    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.

  1. Click [ add ] next to Chat.
  2. Choose CVB Online and enter a name.
  3. Click [ add ] again.
  4. Choose Forward to Queue and enter a name.
  5. Select a queue name from the Add window and click OK. Forward to Queue appears in the next line.

  1. Click [ add ] next to CVB online.
  2. Choose Online button from the list and enter a name.
  3. Select a window such as 8x8 online custom and click OK.
  4. Click [ add ] next to CVB online.
  5. Select Chat window from the list and enter a name
  6. Click Save.

    The following image shows an example of chat script:

    Note: As long as you have all the objects in the code, the chat elements are automatically placed in the right order.

  1. In the Code tab, select the chat channel from the list.
  2. Click Generate Code. The code appears in the window.

  1. Copy and paste the code to a page where you want to insert a chat button on your website.

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: 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.

For more details, refer to Embedded Chat API documentation.

  1. Click the Chat button you just created. The Chat window opens.

The following table summarizes the objects available for a chat script.

Chat Script Object Description


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.


Concept Link IconSee Also