Skip to main content

Command Palette

Search for a command to run...

How to Start a WhatsApp Sequence From a ZazzyAgent AI Agent

Updated
View as Markdown

AI Agents are useful for understanding conversations.

Sequences are useful for continuing the customer journey over time.

Combining the two lets an AI Agent decide when a customer should enter or leave a follow-up sequence.

For example:

Customer is interested but not ready to purchase.

Start a Sales Follow-up sequence.

Or:

Customer has purchased.

Remove them from the pre-purchase sequence.

Start a sequence

The action format is:

##assign_sequence## : 8

Type:

##

in the System Prompt editor and select the sequence from the autocomplete menu.

Example: Start sales follow-up

When the customer has shown genuine interest in purchasing
but is not ready to buy immediately,
start the Sales Follow-up sequence.

##assign_sequence## : 8

Use the actual sequence selected from your account.

Don't start a sequence just because a customer asks a question

This:

What's your price?

doesn't necessarily mean the customer should enter a sales sequence.

A better condition might be:

Start the sequence only when the customer has received the relevant information and clearly indicates that they are interested in continuing the purchase process.

Remove a sequence

The removal action is:

##remove_sequence## : 8

Example:

When the customer completes their purchase,
remove them from the Sales Follow-up sequence.

##remove_sequence## : 8

This prevents customers from continuing to receive pre-purchase messages after they have already bought.

Use sequences as lifecycle automation

A simple lifecycle might look like:

New Lead

Sales Follow-up

High Intent

Purchase

Remove Sales Follow-up

Post-Purchase sequence

This combines AI decisions with scheduled automation.

Example: Demo follow-up

Customer says:

I'd like a demo.

Your AI Agent could:

  1. Save the interest.

  2. Add a Demo Requested label.

  3. Start a Demo Follow-up sequence.

  4. Assign the lead to sales.

The action could be:

##assign_sequence## : 15

Don't create duplicate sequences

Your prompt should tell the agent not to repeatedly start the same sequence.

Example:

If the customer is already enrolled in the Sales Follow-up sequence,
do not enroll them again.

Where the necessary sequence status is available to the agent/workflow, use it to prevent duplication.

Start a sequence after qualification

Suppose your agent asks:

What is your approximate budget?

Customer:

Around ₹75,000.

Then:

Are you planning to purchase this month?

Customer:

Yes.

Now the agent has stronger evidence of buying intent.

You can instruct:

When the customer has completed lead qualification
and confirms that they intend to purchase,
start the Qualified Lead Follow-up sequence.

##assign_sequence## : 8

Combine sequence actions with labels

Example:

When the customer confirms strong buying intent:

Add the High Intent label.

##add_label## : 12

Start the Qualified Lead Follow-up sequence.

##assign_sequence## : 8

This lets you use:

Label = customer state

Sequence = what happens next

When should a sequence be removed?

Typical situations include:

  • Customer purchased

  • Customer opted out

  • Customer no longer qualifies

  • Customer completed the intended journey

  • Another sequence should replace it

Example:

When the customer purchases,
remove the Sales Follow-up sequence.

##remove_sequence## : 8

Then add the Post-Purchase sequence.

##assign_sequence## : 15

WhatsApp rules still apply

A sequence does not bypass WhatsApp messaging rules.

Messages sent later in the customer journey may require approved templates depending on the customer's conversation status and applicable WhatsApp rules.

Plan those templates before building a long-running sequence.

Example: Lead nurturing

Customer asks about product
        ↓
AI answers questions
        ↓
Customer shows interest
        ↓
Add Interested label
        ↓
Start Sales Follow-up
        ↓
Customer purchases
        ↓
Remove Sales Follow-up
        ↓
Start Post-Purchase

This is one of the strongest use cases for combining conversational AI with scheduled automation.

Common problems

Sequence never starts

Check:

  • Condition was met.

  • Sequence was selected correctly.

  • Action is present in the System Prompt.

  • Agent is active.

  • Sequence is configured and active.

Customer gets duplicate follow-ups

Add an explicit rule that the AI should not assign the sequence again when the customer is already enrolled.

Customer keeps getting sales messages after purchasing

Make sure the purchase event or AI workflow removes the sales sequence where appropriate.

Best practice

Don't use sequences as a substitute for an AI conversation.

Let the AI handle the immediate conversation.

Use the sequence when the business needs continued communication after the current interaction.

zazzyagent.com

AI & Conversational Automation

Part 9 of 16

Learn how to create and train ZazzyAgent AI Agents, connect business knowledge, write effective system prompts, use AI actions, detect customer intent, automate tasks, and hand conversations to humans.

Up next

How to Trigger a Bot Flow From a ZazzyAgent AI Agent

AI is excellent at understanding natural-language conversations. Flow Builder is excellent when you need a structured process. You don't have to choose between them. An AI Agent in ZazzyAgent can unde