The Groups feature allows you to link visitors into specific agent groups, so their chats go to the correct group of agents on your website. All Olark plans now support Groups.

This guide has three parts:

Creating a group

  1. First, navigate to your Groups page. On this page, you can create and manage your groups.

  2. Click on the Create a Group button to create your first group. If you already have groups, click + New group

    New group

  3. Now you’re ready to set up your new group! First, click on the group name and start typing to name your group.

    Renaming a group

  4. Use the dropdown menu on the right-hand side to add agents to your group. If you need to create a new agent, you can add them on the Agents page, and then add them to the group.

    Adding agents to a group

  5. Once you have the Agents selected that you’d like to add to this group, click the Add button, and you’ll see your Agents appear in the Group agent list.

    Agents in a group

  6. If you need the embed code, click the blue Show embed code link underneath the group name. You’ll find more about how to use that in Option 2 below.

  7. From there, click on Save and close. Now, you’re ready to start chatting with Groups!

Routing visitors to an agent group

We offer two options for automatically routing your visitors to Agent Groups. You can use either the Targeted Chat option or the JavaScript API option using the embed code. Both options are explained below. You only need to use one option per page, though. Using both could result in some conflicting Groups behavior.

Option 1: Using Targeted Chat

Create a Targeted Chat rule to assign a visitor to the agent group based on certain conditions.

Targeted chat - Group routing

You can also lock a visitor to a group based on the number of pages they have viewed or their location. There are lots of options - have a play!

Option 2: Using the JavaScript API

When you create an agent group, you are provided with a snippet of Javascript code that's unique to that group. You can get the code snippet by clicking Show embed code near the top left of the group editing view.

Targeted chat - Group routing

Paste this snippet below the existing Olark code on each page you want routed to that particular group.

/* custom configuration goes here (www.olark.com/documentation) */
olark.configure("system.group", "2fjsdvbn3345g"); /* Routes to sales */

Troubleshooting

  • My chat box shows offline If a visitor is locked to an agent group, the chat box will only show as online if agents in that group are available.

    Even if agents are available in another group, the chat box would still show as offline.

  • The visitor wasn't assigned to a group Using olark.configure('system.group','xxx'); will only work when your page loads, as the Olark chat box initiates.

    If you want to assign the visitor to a group after the page has loaded, use api.chat.setOperatorGroup instead.

  • I want to re-assign a visitor to a group Visitors can only be assigned to a chat before an agent has responded. Once a visitor responds, they are locked to that agent group for that chat session unless manually transferred by the agent.

  • If an agent is in multiple groups, how are chats assigned? Olark does not look at the status of chats delivered by other groups when assigning new chats to agents. Should you be using the Round Robin chat routing configuration, Olark does not take into consideration any other chat delivered by other groups.