Building your first workflow: a lead qualification example

AI WorkflowsUpdated May 7th, 2026

Building your first workflow

The quickest way to learn workflows is to build a small one and try it. Here we build a lead qualification workflow: when someone is weighing whether your product suits them, the AI asks a couple of questions, hands big teams to your sales team, and keeps the email of everyone else.

Step 1: Create it

In the sidebar, click AI workflows, then New workflow. Give it a name at the top, for example Qualify a lead. The name is only for your team.

Tip: Browse library has a ready-made Qualify a sales lead when the Leads add-on is on.

Step 2: Say when it runs

Under When this procedure runs:

  1. When to use this: Someone is interested in the product and wants to know whether it suits their business, before buying. This decides whether the workflow runs, so be specific.
  2. Use it when someone says: one example per line, such as Is this a good fit for my shop? or I am thinking of signing up.
  3. Open Do not use it when someone says only if it starts on the wrong conversations, and add those messages there.

Step 3: Write the steps

Under The procedure, click Add a step for each one:

  1. Instruction: Ask what their business does and how many people answer customers. Click + remember the answer, name it team_size and mark it required.
  2. Condition: If more than ten people answer customers. Inside it, add Hand off to a person: A large team, sales should follow up.
  3. Instruction: Ask for their email so someone can send them answers tailored to them. Remember the answer as email and require it to be an email.
  4. Update the customer: save email as their email.
  5. End: Thank them and say someone will write to them.

Everything the workflow remembers is listed under What it finds out.

Step 4: Save and check

Click Save. If a step is wrong, the message Fix the highlighted steps and try again. appears and the step is marked. The Checks panel says Nothing to fix. when it is ready.

Step 5: Try it in the preview

Once saved, the Preview appears beside the editor (on a phone, the Preview button). Write the first message a customer would send and answer as they would. You see which step the AI is on and what it collects. Try We are 30 people on support and then It is just me.

Step 6: Switch it on

New workflows start switched off. Go back to AI workflows and turn on its switch. From then on, the AI runs it whenever a customer's message matches.

Step 7: Watch real conversations

The workflow's steps appear in each conversation it ran in, so your team can see what happened.

Next