Home/Features/Automation Rules

Automation

Automation Rules

Automation rules route a new lead the instant it arrives, based on source, campaign, form, pipeline or chatbot, with no manual triage step.

By Chirag Darji · Updated 26 Aug 2026 · 9 min read

Plans: All plans. No cap on the number of rules; up to 5 conditions per rule.

On this page
  1. What you get
  2. How it works
  3. What lead sources and conditions can a rule check?
  4. How does per-chatbot scoping work?
  5. What happens when a rule sends a template?
  6. How does first-match-wins evaluation work?
  7. With VGraple CRM vs manually triaging new leads
  8. Who uses it
  9. What Meta allows
  10. Plans and limits
  11. Recent improvements
Lead automation rules settings in VGraple CRM

In short

  • An automation rule runs once, the instant a new lead is created, and checks up to 5 conditions against that lead
  • First matching rule wins: rules run in a set order and only the first one whose conditions all match takes action
  • Three actions per rule: assign to a team member, enroll in a sequence, and send an approved template immediately

Automation rules are the routing layer that decides what happens the instant a new lead lands in VGraple CRM, before anyone on your team has looked at it. A rule checks a small set of conditions (where the lead came from, which campaign, which form, which pipeline, which chat widget) and, if it matches, assigns the lead to a team member, enrolls it in a follow-up sequence, sends an approved WhatsApp template immediately, or does all three in one pass.

What you get

  • Rules that run automatically the moment a new lead is created, with no manual trigger
  • Up to 5 conditions per rule, combined with AND logic (all must match)
  • Six selectable lead sources: Meta Lead Ad, Web Form, WhatsApp Form, Chatbot, Comment Rule, Manual
  • Condition fields for campaign name, form name, pipeline, label and chatbot widget, each with equals or contains matching where relevant
  • Three actions per rule: assign to a team member, enroll in a sequence, send an approved template right away
  • First-match-wins evaluation in a reorderable priority list, so specific rules can sit above catch-all ones
  • Template sends go through the same tracked send path as a manual message, so they show up in the conversation history

How it works

  1. Open Lead Automation Rules and create a rule. From Settings, the Lead Rules page lists every rule in the order it runs, with a plain-English summary of its conditions (for example, "Source is Meta Lead Ad" or "Campaign name contains Diwali").

AI and flows settings in VGraple CRM with provider keys and the Cron secret

  1. Add conditions. Pick a field (Source, Campaign name, Form name, Pipeline, Label, Chatbot), an operator where one applies (equals or contains), and a value. Add up to 5 conditions; a rule only matches when every one of them is true for the lead being evaluated.

  2. Choose the actions. Assign the lead to a specific team member, pick a sequence to enroll it in, and/or pick an approved template to send the instant the rule fires. Any or all three can be set on the same rule.

  3. Set the order. Rules evaluate top to bottom; drag a rule to reorder it. Put your most specific rules (a particular campaign or form) above general ones (any Meta Lead Ad) so the specific rule gets first pick.

  4. A new lead arrives and the first matching rule fires. The instant a lead is created, whether from a Facebook Lead Ad, a website form, a chatbot conversation, or a comment-to-DM capture, every active rule is checked in order, and the first one whose conditions all match runs its actions. No later rule is evaluated for that lead.

  5. Watch the results in the lead's activity. The lead's assignment, sequence enrollment status, and any template sent by the rule are all visible on the lead record and, for the template, in the linked conversation's message history.

What lead sources and conditions can a rule check?

The Source condition covers six values: Meta Lead Ad, Web Form, WhatsApp Form, Chatbot, Comment Rule, and Manual. Every condition besides Source, Pipeline and Chatbot (which are exact-select dropdowns) supports "equals" or "contains" matching, so a Campaign name condition set to "contains Diwali" catches every ad whose campaign name includes that word without listing each one individually. Combine conditions to get specific: Source equals Meta Lead Ad, and Campaign name contains "Diwali Sale" targets leads from one seasonal ad set only.

Conversation pipeline stages settings in VGraple CRM

Example

A D2C store runs two Meta Lead Ad campaigns at once, a discount offer and a new-arrivals teaser. Two rules, each matching on Campaign name, send a different welcome template and enroll leads in a different sequence depending on which ad they came from.

How does per-chatbot scoping work?

If your org runs more than one chat widget, each with its own knowledge base and purpose (a sales widget on the homepage, a support widget on a help center page), the Chatbot condition lets a rule match leads from one specific widget only. This is the same chatbot_config_id value stored on every chatbot-sourced lead, so a rule scoped to your sales widget never fires for a lead your support widget captured, even though both use the Chatbot source value.

Example

A SaaS company's pricing-page chat widget captures high-intent leads; a rule scoped to that widget alone assigns them directly to a senior salesperson instead of the general queue every other chatbot lead goes into.

What happens when a rule sends a template?

The template-send action only fires when the lead already has a phone number attached, since there is nothing to send to otherwise. The send itself goes through the platform's tracked template-send path rather than a raw API call: it lands in the conversation's message history exactly like a message an agent sent manually, it is blocked if the contact has opted out, and if the lead had no linked contact yet, the newly resolved or created contact is linked back to the lead record automatically. Earlier automation-rule sends bypassed this tracked path and left no record in the inbox; that gap was closed so every rule-triggered message is now auditable the same way a human-sent one is.

Watch out

A rule's template action only fires once, at lead creation. It is not a retry mechanism, if the send fails (for example, the template gets paused by Meta between rule creation and lead arrival) it is not automatically retried on the next matching lead.

How does first-match-wins evaluation work?

Rules are checked in the order shown on the Lead Automation Rules page, and the moment one rule's conditions all match, its actions run and evaluation stops for that lead entirely, no other rule is checked. This means a catch-all rule with no conditions (matching every lead) should always sit at the bottom of the list; put it above your specific rules and none of the specific ones will ever fire.

Example

A real-estate agency has three rules: one for a specific campaign, one for any Meta Lead Ad, and a catch-all at the bottom for everything else. A lead from the specific campaign matches the first rule and stops there, never reaching the general Meta Lead Ad rule below it.

With VGraple CRM vs manually triaging new leads

Manual triageAutomation rules
Assigning a new lead to the right personSomeone checks the queue and assigns itAssigned instantly based on source or campaign
Sending an instant acknowledgmentWhenever an agent gets to itTemplate sent the moment the lead arrives
Starting the right follow-up sequenceManual Enroll Leads action, per leadEnrolled automatically by the matching rule
Routing leads from different chat widgets differentlyManual sorting by widgetChatbot condition scopes the rule automatically
Consistency across shifts and holidaysDepends on who's on dutyRuns the same way 24/7, no staffing required
Auditing what happened to a leadAsk whoever handled itAssignment, enrollment and template send are all recorded

Who uses it

D2C stores route Meta Lead Ad campaigns straight into product-specific welcome sequences the instant someone submits interest, before the shopper has closed the ad. See WhatsApp automation for ecommerce.

Real-estate agencies assign leads from a specific project campaign to the agent handling that project, automatically, from the moment the lead ad fires. See WhatsApp automation for real estate.

Coaching institutes scope rules to individual chat widgets running on different course landing pages, so a lead from the "IELTS prep" widget enrolls in the IELTS sequence and a lead from the "Study abroad" widget enrolls in a different one. See WhatsApp automation for education and coaching.

Clinics use a form-name condition to send a different instant acknowledgment template depending on which intake form (new patient vs. follow-up) was submitted. See WhatsApp automation for healthcare.

What Meta allows

Meta policy

The instant template send in a rule is still a business-initiated message and must use an approved WhatsApp template, exactly like any other message sent outside the 24-hour customer service window. A rule cannot send free-form text to a lead who has never messaged you.

Because rule-triggered sends go through the same tracked template-send path as every other outbound message on the platform, opt-out enforcement, template pause detection, and quality-rating pacing all apply automatically; a rule cannot bypass any of the protections described on the delivery protection page.

Plans and limits

Automation rules are available on every plan including Free, with no cap on the number of rules an org can create and up to 5 conditions per rule. What limits the volume of template sends and sequence enrollments a rule can trigger is your plan's monthly conversation quota (Free: 100/month, Starter: 2,000, Growth: 10,000, Scale: unlimited), the same limit that governs every other outbound message on the platform.

Recent improvements

  • 2026-07: Rule-triggered template sends now go through the tracked send path, so they appear in the conversation history and enforce opt-out status the same way a manually sent template does; earlier sends bypassed this and left no inbox record.
  • 2026-07: Chatbot condition added, letting a rule scope to a single chat widget by chatbot_config_id on orgs running more than one widget.
  • 2026-06: Fixed an N+1 query pattern in the background jobs that resume pending lead enrollments once a matching WhatsApp contact appears.

Frequently asked questions

What is a WhatsApp automation rule?
A rule that runs the instant a new lead is created in VGraple CRM. It checks up to 5 conditions against the lead's source, campaign name, form name, pipeline, label or which chatbot widget created it, and if all conditions match, it assigns the lead, enrolls it in a sequence, sends an approved template, or any combination of the three.
How is an automation rule different from a WhatsApp flow?
A flow runs a full branching conversation over any number of messages, triggered by a keyword, a tag, a form, or an appointment event, and can keep running for days. An automation rule runs exactly once, only at the moment a new lead is created, checks a fixed set of conditions, and takes at most three actions before it's done.
How is an automation rule different from a sequence?
A sequence is the thing that keeps sending messages over time; an automation rule is one of the two ways a lead gets enrolled into a sequence in the first place (the other is the manual Enroll Leads button). A rule can also assign a lead or send a single template without touching any sequence at all.
What happens if more than one automation rule matches a lead?
Rules run in the order you set them, and only the first rule whose conditions all match takes action. Later rules are never evaluated for that lead. Reorder your rules so more specific conditions sit above broader catch-all ones.
What lead sources can I filter on?
Meta Lead Ad, Web Form, WhatsApp Form, Chatbot, Comment Rule, and Manual. Combine a Source condition with a Campaign name or Form name condition (equals or contains) to target a specific ad or form rather than every lead from that channel.
Can a rule scope to one specific chat widget?
Yes, with the Chatbot condition. A rule scoped to a widget only matches leads created by that widget's chat conversations, which is how a business running several chat widgets on different sites can route each one's leads differently.
Does an automation rule send the template even if the lead has no phone number yet?
No. The template-send action only fires when the lead record already has a phone number. A lead without one (for example, a very early-stage chatbot capture) can still be assigned and enrolled in a sequence by the same rule; the sequence enrollment logic separately defers and resumes once a WhatsApp-sendable number is found.
Are rule-triggered template sends recorded in the inbox?
Yes. Every template a rule sends goes through the same tracked send path as a manual message, so it lands in the conversation history, respects opt-out status, and links the contact back to the lead record.
How many conditions can one automation rule have?
Up to 5 per rule, and all of them must match (AND logic) for the rule to fire. There is no limit on the number of rules an org can create.

Run your WhatsApp on VGraple CRM

Free forever plan, official Meta WhatsApp Business API, set up in 15 minutes. No card needed.