Skip to main content
Workspace

Setup a custom rule

Build a rule that pauses the AI or sends a template when a specific customer or order condition is met.

Written By ScaleFlows Team

Last updated 3 months ago

💡 Tip: Use this to take absolute control over complex scenarios in your business.

Video Guide

Text Guide

From your Dashboard:

Step 1. Go to Escalations.

Step 2. Under AI Safety Rules, click on Create custom rule.

Create custom rule

Step 3. Configure the details of your custom rule.

💡 Tip: Combine multiple conditions to make rules more precise and match specific business scenarios. For example: customer message contains chargeback AND order value is greater than $100. This example avoids false positives from customers who mention the word casually.

Give your rule a clear, descriptive name (for example, "Disable AI on chargeback threats") so your team can easily identify its purpose.

Decide exactly what the AI should do when the rule's conditions are met. You have two main choices:

  • Disable AI: This mutes the AI for the conversation. The AI stops replying, allowing a human agent to take over the thread manually.
  • Send Template: Instead of the AI generating its own reply, it will draft a specific saved template (which you can create in your Templates settings). This draft will still flow through your standard approval queue.

Define the exact criteria that will cause this rule to fire. You can add one or multiple conditions to be as broad or specific as you need.

  • Customer language
  • Customer message (e.g., if the message contains specific words like "chargeback", "dispute", or "lawyer")
  • Customer mood
  • Order value
  • Customer email
  • Order status
  • Number of products
  • Product name
  • Customer country
  • Payment method
  • Question type