Automation rules

Automate your inbox workflows with Rules

Rules allow you to automate inbox workflows so your team can spend less time manually adding classifications and closing irrelevant interactions and more time engaging with your customers. Rules can be setup to:

  • Classify messages based on key words, source types, and authors
  • Close messages that do not require engagement
  • Assign messages to available team mates based on capacity and groups

Rules are setup on your Queues, so let's take a look at creating a Queue for your team.

How to create a Queue

Queues capture your inbound Posts, Comments, and Messages from one or more Saved Dives. Once you've created a Queue and started populating it with content, you can create Rules for automation. To create a Queue, navigate to Manage > Settings > Queues and click 'New Queue'.

1321
Lexer tip!
Messages can only belong to one Queue, so try to avoid sourcing different Queues with Saved Dives that overlap. This may explain why your Rules are not actioning a subset of your inbox.

How to create a Rule

With a Queue you can start adding Rules to automatically classify, close, and assign messages. Rules are run against all new inbound messages and apply their outcomes immediately when matched. Rules are run in order of priority (top to bottom) and can be rearranged in your list by drag and drop. Open your Queue, go to the Rules tab, and click 'Add New Rule'.

Conditions for a Rule are specified in the 'When' section at the top, where you can use either the Matching Terms, Source Types, or Authors filters. A new message must match all criteria specified in these fields for the outcomes to be applied. Outcomes for a Rule are chosen in the 'Then' section below, where you can choose to add classifications, update workflow state, or directly assign the message to a team member.

Rules can be created but set to a 'disabled' state to prevent them from running, which can be useful for setting up your Queue without making any changes to messages. Simply click the toggle in the top left corner of each Rule to set its state, and commit those changes by clicking 'Save Rules' at the bottom when you're done.

1320

How to enable Auto-Assignment

Queues allow you to enable auto-assignment for incoming interactions to team mates who are online and have capacity. Navigate to your Queue, go to the Rules tab, and scroll to the bottom of the list. Here you can enable inbox auto-assignment, specify the Group of users that are eligible for assignment, and their max capacity.

Capacity is defined as the total number of interactions currently sitting in your Mine tab of the inbox. For example, if your rule capacity is set to 3, and a team mate has 2 assigned interactions, the Queue will consider them eligible for assignment and give them the oldest waiting message.

771

Customer replies for an open case will be treated slightly differently, in that they are not limited by capacity if the case agent is online. We've created a flow diagram to help explain the logic for auto-assignment:

6187
  • Messages will sit in the assignment queue until agents are online.
  • Agents must belong to Groups specified in auto-assignment Rule.
  • Auto-assignment is only applied to messages from time it is enabled.
  • Capacity can be exceeded by auto-assignment for customer replies to an open case.

FAQ

What permissions are required to create Queues and Rules?

Users need to have the 'Edit Team' permission that typically belongs to Admin or Manager groups.

When do Rules start applying changes to messages in my Queue?

Rules will start actioning messages in your Queue from the moment you create and enable those Rules. In some cases, when the Queue has just been created, the Rules may run over a small set of historic messages. Rules are run at the moment we process a new message.

Can we see who has updated our Queues or Rules?

Yes, the audit log in Measure > Activity > Security will capture creates, updates, and deletes.

How do I test my Rules?

We suggest testing your searches in Listen so you can see which messages match the filters you've built. Run the Saved Dive that is powering your Queue, turn on Closed Messages, and open the date range to last 30 days. Now you can see which historic messages would have matched your new Rule.

How do I create a filter for Name Tag Comments?

Add "word_count:<3" to your Matching Terms filter and specify Source Types of Facebook Comment and Instagram Comment. Here you will find all comments that have fewer than 3 words, including emoji comments, in your Rule.

How do I create a filter for Retweets?

Add "RT" to your Matching Terms filter and specify Source Type of Tweet. Here you will find all Tweets that contain the phrase "RT", which is the prefix of all Retweets in Lexer.

What happens if I release an auto-assigned message?

It will go back into the New queue and will not be auto-assigned again. Someone in your team will need to manually claim ownership of this message.

Do scheduled replies count towards my capacity?

No, messages in the 'assigned', 'in progress', and 'awaiting approval' states will count towards your capacity.

How does this work with the Reroute Replies feature?

Enabling auto-assignments for your Queue will supersede the need for message rerouting, as customer replies will be assigned to case agents if they are online. We suggest disabling the reroute feature in Manage > Settings > Workflow.

Can someone help me setup our Rules?

Yes! Get in touch with Lexer Support and we'll walk you through it.

Updated:
September 23, 2022
Did this page help you?
Thank you! Your feedback has been received!
Oops! Something went wrong while submitting the form, for assistance please contact support@lexer.io
Welcome to Lexer!
Fundamentals
Getting started
Our glossary
Fundamentals
Getting started
Integrations
Fundamentals
Setup
My account
Fundamentals
Setup
Manage team
Fundamentals
Setup
Group permissions
Fundamentals
Setup
Classifications
Fundamentals
Setup
Out of the box segments
Fundamentals
Setup
Browser guide
Fundamentals
Security
Corporate networks
Fundamentals
Security
Emergency contact
Fundamentals
Security
Multi-factor authentication
Fundamentals
Security
Single sign-on
Fundamentals
Security
Trust and compliance
Fundamentals
Security
Lexer's Identity Resolution
Fundamentals
Identity Resolution
Troubleshooting tech issues
Fundamentals
Troubleshooting
Error code: 503 Service Unavailable
Fundamentals
Troubleshooting
Error code: 401 Unauthorized
Fundamentals
Troubleshooting
Error code: 403 Forbidden
Fundamentals
Troubleshooting
Troubleshooting Activate
Fundamentals
Troubleshooting
Troubleshooting Respond
Fundamentals
Troubleshooting
Help! My data is missing from the Hub
Fundamentals
Troubleshooting
Understanding APIs at Lexer
Data
Data Onboarding
Providing JSON data to Lexer
Data
Data Onboarding
Providing CSV data to Lexer
Data
Data Onboarding
Upload using SFTP
Data
Data Onboarding
Upload using S3
Data
Data Onboarding
Lexer data specification
Data
Lexer Data Specification
Customer data specification
Data
Lexer Data Specification
Commerce data specification
Data
Lexer Data Specification
Marketing data specification
Data
Lexer Data Specification
Compliance data specification
Data
Lexer Data Specification
Data Formatting and Validation
Data
Getting Started with APIs
Authentication and API token creation
Data
Getting Started with APIs
Rate Limits
Data
Getting Started with APIs
Response codes and common errors
Data
Getting Started with APIs
Product imagery
Data
Getting Started with APIs
Currency conversion
Data
Getting Started with APIs
Lexer’s APIs overview
Data
Lexer’s APIs
Dataset management in the Hub
Data
Dataset management
Chatbox user API
Data
Lexer’s APIs
Activity API
Data
Lexer’s APIs
Visualize API
Hidden from nav
Profile Read API
Data
Lexer’s APIs
Lexer Javascript Tag basics
Data
Lexer Javascript Tag
Lexer Javascript Tag technical guide
Data
Lexer Javascript Tag
Lexer Javascript Tag use cases
Data
Lexer Javascript Tag
dataLayer configuration: Shopify
Data
Lexer Javascript Tag
Customer segment CSV export
Data
Data off-boarding
Export to CSV
Data
Data off-boarding
Data in Lexer's CDXP
Understand
Customer Data
Lexer's attributes
Understand
Customer Data
Attribute value types
Understand
Customer Data
Data source - CRM
Understand
Customer Data
Data source - Transactions
Understand
Customer Data
Data source - Email
Understand
Customer Data
Partner data - Experian
Understand
Customer Data
Partner data - Mastercard
Understand
Customer Data
Partner data - Roy Morgan
Understand
Customer Data
GDPR and CCPA requests
Understand
Customer Data
Upload data files
Understand
Customer Data
File upload API
Understand
Customer Data
Data provision and schemas
Understand
Customer Data
Segment overview
Understand
Segment
Creating segments
Understand
Segment
Smart Search
Understand
Segment
Export attribute results
Understand
Segment
Contact a customer
Understand
Segment
Fixing a disabled segment
Understand
Segment
Profile tab
Understand
Segment
Compare segments
Understand
Compare
Compare attributes
Understand
Compare
Activate overview
Engage
Activate
Ongoing activations
Engage
Activate
Audience splits
Engage
Activate
A/B splits
Engage
Activate
Control group splits
Engage
Activate
Inbox filtering
Engage
Respond
Ignored Senders
Engage
Respond
Forms for service
Engage
Respond
Workflow states
Engage
Respond
Bulk changes
Engage
Respond
Scheduled replies
Engage
Respond
Message templates
Engage
Respond
Customer profiles
Engage
Respond
Grouped messages
Engage
Respond
Automation rules
Engage
Respond
Redact messages
Engage
Respond
Track overview
Measure
Track
Activity overview
Measure
Activity
Team report
Measure
Activity
Cases report
Measure
Activity
Listen overview
Measure
Listen
Searching in Listen
Measure
Listen
Tier filters
Measure
Listen
Boolean search
Measure
Listen
Saved dives
Measure
Listen
Email notifications
Measure
Listen
Twitter data
Measure
Listen
Facebook data
Measure
Listen
Instagram data
Measure
Listen
Visualize overview
Measure
Visualize
Curate feed
Measure
Visualize
Report overview
Measure
Report