Suede AI Agent StudioDocsStart buildingOpen workspace
Navigation menu

Agents & workflows3 min readUpdated

Add waits and if/else branches to your workflows

Quick answer

Agent Studio workflows pause with a Wait step and split with a Branch step. Wait holds a branch for a set time or until a date, such as a day before an appointment. Branch reads a field from the step before it and sends the run down true or false, which is how you build if/else follow-ups that stop once a lead books.

What you'll have

  • Follow-ups timed in minutes, hours, days or weeks
  • Reminders that fire relative to each appointment
  • If/else paths that stop chasing leads once they book
On this page
  1. How does the Wait step work?
  2. How does the Branch step make an if/else decision?
  3. How do I build a follow-up that stops when the lead books?
  4. Can a Branch act on an AI decision?
  5. Questions

How does the Wait step work?#

Wait pauses the branch it sits on, then carries on. It has two modes, and test runs skip the wait so you see the whole path in seconds.

Wait step settings
SettingWhat to enterExample
Wait: For a set timeAmount and Unit (minutes, hours, days, weeks)2 days after a quote goes out
Wait: Until a date and timeUntil, an ISO date and time or a field{{in.appointment.startAt}}

How does the Branch step make an if/else decision?#

Branch reads one Field from the value the step before it passed along and fires its true or false output. Fill Equals (optional) to compare against a value, such as hot, or leave it blank and tick Require truthy to go true whenever the field has a value.

Common Branch setups
GoalFieldEquals
Stop follow-ups once they bookbookedtrue
Call hot leads firstlabel"hot"
Route by channelchannel"sms"

How do I build a follow-up that stops when the lead books?#

Build a stop-on-booking follow-up

0 of 6 done

  1. Step 1: Start from a trigger

    Open Automations and create a workflow on a CRM Trigger such as a new form submission.
    Open Automations
  2. Step 2: Send the first touch

    Add Send Text or Send Email with your booking link.
  3. Step 3: Wait

    Add Wait, choose For a set time, and set 1 day.
  4. Step 4: Check whether they booked

    Add Appointment with Action set to Check whether they booked. It returns booked as true or false.
  5. Step 5: Branch on the answer

    Add Branch with Field booked and Equals true. Leave the true path empty and put your second follow-up on the false path.
  6. Step 6: Dry-run it

    Run the workflow as a test. The wait is skipped and you see which path each step took.
    Read about testing

Can a Branch act on an AI decision?#

Yes. Put an AI step that labels a lead hot, warm or cold ahead of the Branch, then branch on label equals hot. Agent Studio's lead-scoring starter does exactly this: it tags the contact with its label and opens a call-within-the-hour task for hot leads.

Your numbers

What one repeating task costs you

Pick a task you do every week: follow-ups, reports, data entry. Replace the sample numbers with yours.

Hours back each month

10.8

Worth each year

$6,500

That is 130 hours a year on one task. Describe it once and an agent runs it on schedule from then on.

Questions buyers ask#

Can I wait until a set time before an appointment?

Yes. Choose Until a date and time and set Until to the appointment's start, or to a time you calculate in an earlier step, so a reminder lands right when you want it.

Do test runs make me sit through the wait?

No. Test runs skip every Wait step so you see the whole workflow, every branch and every message, in seconds. Dry runs cost nothing.

How do I build more than two paths?

Chain Branch steps: put a second Branch on the false output of the first. Each one checks a new condition, so three or four paths read top to bottom like an if, else if, else.

What can a Branch compare against?

Any JSON value in Equals: text, numbers, true or false. Leave it blank and tick Require truthy to go true whenever the field has any value at all.

Was this page helpful?

Good work starts with a clear flow.

Give an agent a job. Connect the steps. See how the work becomes a service someone else can call.

Input
Reason
Output

A workflow you can inspect

Make the steps visible.

Start with a template or describe the job. Connect inputs, reasoning, and output on the canvas.

Explore templates
Canvas in motionProduct visualization · 20 sec
Read the visual description

A stylized organization chart opens into a workflow canvas. Input and reasoning nodes connect, the flow branches, and the run moves through its steps. The film ends with Suede AI Agent Studio. Music only; no spoken narration.