Live chat automation

Using the live chat automation rules, you can set up various kinds of actions based on the needed rules.

The automation rules and their corresponding actions are set via Organization -> Organization Settings -> Live Chat -> Automation:

Each rule has those main attributes:

  • Trigger type (Chat created, Chat closed, etc)
  • Condition (Chat is spam, Chat Subject, etc)
  • Actions

Each rule action can be of various types:

  • Set the organization’s global agent status
  • Assign the chat
  • Close the chat
  • Send an email
  • Submit a form via HTTP POST
  • Forward the chat
  • Insert a row into the Google Spreadsheet document
  • Call Integromat webhook
  • Call JSON webhook
  • Mark chat as spam
  • Reopen the chat
  • Call Slack webhook
  • Unmark chat as spam
  • Call Zapier webhook

Rules that run every night

A rule with the Periodic timer (chat) trigger checks all of your organization’s chats once a night, whatever their age, and runs its actions on every chat that matches its condition. A typical use is closing answered chats: for example, close every chat in state Agent responded that is not closed and has not been updated for a week.

  • A chat’s matching rules run in their order in the list, and a rule with Stop processing the other rules ends the run for a chat it matched.

A rule with the Periodic timer (organization) trigger runs once for the organization, not per chat: chat fields in its condition read as a chat without values.

Writing conditions

  • Text is compared exactly, letter case included: =, starts with, ends with, contains (case-sensitive) and in match only the same letters. Use contains (case-insensitive) when case should not matter.
  • Chat updated since takes a duration such as 30m, 2h, 3d or 1w. A value that is not a duration cannot be saved.
  • Time of day takes a time such as 09:00, read in your organization’s time zone, and is compared with =, !=, <, >, <= or >=.
  • The regular expression operators are gone: use starts with, ends with or contains instead.

Related Articles

Edit this page