Smileline
Automations

Flows

Create a flow from a template, choose what starts it and who it is for, and build its messages, waits and tasks step by step.

A flow is what a lead gets from one moment: the welcome when they enquire, a text after an unanswered call, a long-term keep-in-touch once they go quiet. Settings → Automations → Flows lists your flows — what starts each one, the treatments it covers, whether it's on, and how many leads are in it now — with the ones that are on first. Click a flow to open it in the builder.

To change several at once, tick them and choose Turn on, Turn off or Archive. A flow that can't be changed — say, turning it on would clash with another flow on the same trigger — stays as it was, and the message names it with the reason.

How flows decide who hears what — the three lead phases, one flow at a time, never the same flow twice, your team first — is explained on Automations.

Create a flow

Go to Settings → Automations, open Flows and click Create flow.

Pick a template — New enquiry, Couldn't reach them, After the last try, Long-term nurture and the others — or Blank to start from nothing. Each card shows how many messages it sends and over how long.

Tick the channels to send on — SMS, WhatsApp, Email — and confirm. The flow is created switched off, with its messages ready, and opens in the builder.

Check the trigger and the messages, then switch the flow On.

The template's messages are added to Settings → Templates. A template with the same name and channel that you already have is reused instead, so your own wording — and a WhatsApp template Meta already approved — carry over.

The builder

The builder shows the flow top to bottom: the trigger card first, then each step in order, and End. Click the trigger or a step to edit it in the panel on the left; click + between two steps to add one there. Your changes save as you make them.

What starts a flow

TriggerStarts when
New enquiryA lead lands in New — a new enquiry, or one moved back there. Tick Only enquiries from paid ads for a flow that runs instead for leads whose first touch is a paid ad (a lead form on Meta, Google or TikTok, or someone who came from one of your ads).
Couldn't reach themA call on Leads ends unanswered. Pick First try, a specific try (Try 2 to Try 10), or Any later try. A flow for an exact try wins over Any later try. Tries count since you last spoke to the lead: after a conversation, or a message or call from them, the next unanswered call is the first again, and runs Any later try (First try is the lead's very first call), then Try 2, and so on.
After the last tryThe lead is closed as Unable to contact — automatically on the last unanswered try your call-back schedule allows, or when someone gives up on it by hand.
Goes quietNobody has been in touch for the number of days you set (14 by default): no reply, call or message from the lead, no message from your team, and no flow running. Covers open leads that haven't booked a consultation since they enquired and aren't going ahead, plus closed leads whose reason you tick under Closed leads — tick reasons like Too expensive or Timing not right, not ones like Unsuitable for treatment. A lead with a call-back open on Leads, even an overdue one, waits until it's done; a lead whose chat showed they're not interested right now, or who asked you to put it on hold, waits until they message or call you. A consultation counts as booked whether they attended it or missed it; only a cancelled one doesn't.

Moments after the lead has answered — a conversation, a booking, the visit, going ahead, not proceeding — don't start flows: your team handles them, and booking messages cover the visit.

The fast reply for ad leads (UK)

New UK practices get an Ad lead fast response flow, switched off: a New enquiry flow for paid-ad enquiries only — a text and an email straight away, then one more text three hours later, during opening hours. While it's on, ad leads get it instead of your New enquiry flow, so they get one welcome, not two. When a UK practice builds an ad campaign with Text new enquiries within a minute on, Smileline switches it on in the same save, creating it from the template if you deleted it. Building the campaign needs permission to edit automations. Practices in the US don't get the fast reply: there, an automated text to a new enquiry needs the person's explicit consent.

Who a flow is for

Under Treatments, choose All treatments or tick the ones it's for — one flow can cover several. For the same trigger, the most specific flow wins: a flow for implants runs for implant leads, and a flow for All treatments runs for everyone else. Two flows that are switched on can't claim the same trigger and treatment; the builder names the flow that already does, so you can change one of them.

With more than one board, the New enquiry and Couldn't reach them (First try) triggers also ask which board's stages they watch.

Steps

StepWhat it does
Send email, Send SMS, Send WhatsAppSends a template on that channel. Each card shows the template, the first line of the message and the day it goes out.
WaitWaits a number of minutes, hours or days before the next step. Tick Only during opening hours to hold the next step until the practice is open.
Create a taskCreates a task (assigned to a chosen team member, else the lead's owner — or left unassigned for the desk when that person is a dentist, hygienist or nurse, who sees only clinic tasks), with an optional note for whoever picks it up.
Add a noteAppends an internal note to the patient timeline.
Move to stageMoves the lead on to a later stage. It's always the last step: if that stage starts a flow of its own, the lead continues there. It never moves a lead back to an earlier stage.

Each step has its own pause switch — a paused step is marked Skipped and passed over without stopping the flow.

A step you haven't finished — a message with no template, a stage move with no stage — isn't saved, and nothing else in the flow saves either until you finish or remove it. The builder marks the step and says what it's missing; closing the flow with one unfinished asks first.

Timing

Times count from the moment the flow starts, and each message says when it goes: Immediately, or how long after what started the flow — 1 hour after the enquiry, 1 day after the unanswered call, 35 days after the flow starts — with opening hours when it waits for them. A message that has to wait for quiet hours or opening hours doesn't move the steps after it, but a step never goes out sooner than half its planned gap after the step before it, so two messages never land minutes apart.

SMS and WhatsApp messages only go out inside the practice's send window (default every day, 08:00–20:00, changeable under SEO → Reviews → Settings); one that comes due outside it waits for the next opening. The exception is the first message of a New enquiry flow: someone who just got in touch is awake, so it goes straight away at any hour. Email is exempt.

Only during opening hours can only make a step later, never earlier — a Day 2 step whose second day is a Sunday goes out on Monday morning. A closure on the location — a bank holiday, a training day — counts as closed too. If your practice has no opening hours set, the step goes out at its plain time.

When a flow stops

A lead leaves a flow when:

  • they answer — reply on any channel, call you (even a call you missed), or speak with your team or the AI on the phone (long-term nurture: answer again after it started);
  • someone on the team messages them by hand — from the inbox, or from the WhatsApp, Messenger or Instagram app or the practice mailbox;
  • another flow starts for the same patient;
  • the moment it was for has passed — the lead moved on from the stage, a newer call result was recorded, the lead was reopened;
  • the patient comes back — they enquired again or a booking was made for them, online, in the diary, on Leads, by AI phone or in your practice system (long-term nurture: any consultation booked since they enquired, attended or missed, unless it was cancelled);
  • someone presses Stop on the lead's enrollment chip, or Stop beside Automations in the inbox chat header, or the flow is archived;
  • long-term nurture only: a call-back is open on Leads for the lead, overdue ones included;
  • the AI reads the lead's chat, including the flow's own earlier messages, and it shows a call or visit is already arranged, that they'll get back to you, or that they're not interested right now (or asked you to put it on hold). Not interested right now also keeps long-term nurture from starting again on any of their enquiries until they message or call you.

Each of these is checked just before every message, as well as when it happens. When a rule stops a flow, or keeps one from starting, an internal note in the patient's conversation shows the message it would have sent and why. Opting out of a channel doesn't stop a flow: only that channel's steps are skipped.

Switching a flow off freezes everyone in it where they are; switching it back on resumes the step they stopped at. Changes to a flow that's on apply straight away to leads in it: removed steps are skipped, new steps apply to anyone who hasn't passed them.

Messages

Which sender a message step uses

The Channel picker shows each channel with the connection it will actually send from — Email · Dental By Design, SMS · +44 7700 900123 — read from Settings → Channels. A step stores the channel, not the connection, so flows built before a number is connected start sending the moment one is.

  • Email always sends from the practice's built-in sender, on your verified sending domain when you have one. A connected Gmail or Outlook mailbox is for the inbox only and is never used by an automation.
  • SMS and WhatsApp use the connection assigned to the patient's location when there is one, otherwise the connection set to All locations, otherwise the oldest active number. A practice with one number never has to think about this.

A channel with nothing connected reads SMS · Not connected in the picker, the step shows a SMS not connected badge on its row and on the timeline, and the step is skipped for every lead until a connection exists. The flow keeps running its other steps. The picker links straight to Settings → Channels to fix it.

WhatsApp templates awaiting approval

Outside the 24-hour window after a patient's last message, WhatsApp only delivers templates Meta has approved (see Templates). You can still save a WhatsApp step whose template isn't approved yet: the picker warns you and the row shows a Not approved by WhatsApp badge. Until Meta approves it, the step reaches only patients who messaged you in the last 24 hours; everyone else skips that step — the skip is recorded — and the flow carries on. Once the template is approved, the step sends to everyone without you saving anything again.

Flow messages are service messages, like booking messages, unless you mark them as marketing. They go to every lead whatever marketing consent the lead has given — even when your outbound-marketing policy is explicit consent only — and carry no STOP line or unsubscribe link. An opt-out still counts, one channel at a time: before every send, Smileline checks whether the patient opted out of that channel — replied STOP, unsubscribed, answered No to a lead form's consent question, or was marked opted out by your team or your practice system. If they did, or they have no address for the channel, the step is skipped, the skip and its reason appear on the timeline, and the flow moves on to the next step — a patient who opted out of texts still gets your emails. An opt-out that arrives after a step has already queued its message still stops that message before it leaves; the conversation shows it as not sent. A WhatsApp template Meta files as marketing keeps the marketing rules: it reaches only patients your outbound-marketing policy allows.

Marketing messages

Switch Marketing message on in a message step for messages that promote rather than answer — the long-term keep-in-touch messages, an offer. The step then goes out as marketing: texts end with Practice name: Reply STOP to opt out, emails carry an unsubscribe link, and only patients your outbound-marketing policy allows receive it (an enquiry counts as consent unless your policy is explicit consent only). A patient it can't reach is skipped and the flow moves on. Every message in the default Long-term nurture flow is marked this way. The step row shows a Marketing badge.

Booking date and time in a flow

Booking date ({{appointment.date}}) and Booking time ({{appointment.time}}) from the Fields menu fill with the lead's next booked consultation — from your diary or practice system, or the date typed on Leads when the consultation was booked without a diary. They're written the way your practice's country writes dates (see Merge tags).

If nothing is booked, an email or SMS shows a blank where the field was, and a WhatsApp step outside the 24-hour window is skipped — Meta rejects an empty placeholder — with the skip recorded on the timeline. A consultation imported by your practice system's first sync, from before Smileline was connected, and never linked to the lead also shows blank.

Follow-up date, time and who calls back

The lead's next call-back on Leads can go straight into a message. Pick these from the Fields menu:

  • Follow-up date ({{followUp.date}}) and Follow-up time ({{followUp.time}}) — when the call back is due, written the way your practice's country writes dates, like the booking fields.
  • Follow-up assigned to ({{followUp.assignee}}) — the first name of the team member the follow-up is assigned to, or of whoever recorded the call when it's assigned to no one. It's the first word of their name in Settings → Team, past a title: a name saved as Dr Sarah Patel reads Sarah.

For example, Hi {{patient.firstName}}, {{followUp.assignee}} from {{practice.name}}. I'll give you a ring on {{followUp.date}} at {{followUp.time}} as agreed. sends as Hi Sarah, Devon from Bright Smiles Dental. I'll give you a ring on Friday 17 July at 14:30 as agreed.

The fields use the lead's newest follow-up. If it has already been done or cancelled, or is due before the message sends, they are blank — and a WhatsApp step outside the 24-hour window is skipped, as with the booking fields.

Call times

Call times ({{practice.callWindows}}) from the Fields menu offers the lead two times your team can call, as a choice — so they pick when, not whether. When the step sends, Smileline looks at the opening hours and closures of the automation location in Settings → Practice and names the next two parts of a day you're open for at least an hour: morning, afternoon, or evening when you're open past 6pm. For example, We can give you a quick call {{practice.callWindows}}, which suits you better? sends as We can give you a quick call this afternoon or tomorrow morning, which suits you better?, and late on a Friday as …tomorrow morning or Monday morning…. It's written in your practice's language.

Without opening hours, or with fewer than two times to offer, it reads in the morning or the afternoon, so it's never blank. The times are worked out once for each message, so a retried send says the same thing. Outside flows — a message you send yourself, a booking message, a campaign — the field always reads in the morning or the afternoon.

The lead owner's name

Lead owner first name ({{owner.firstName}}) from the Fields menu fills with the first name of the lead's owner when the step sends — the first word of their name in Settings → Team, past a title, like Follow-up assigned to. Share new leads out under Settings → Assignment and every new lead has an owner before its first message goes, so a welcome email can say I'm Feria, one of the treatment coordinators.

A lead with no owner — or whose owner has left the practice or been suspended — is signed by a stand-in: a telesales team member, else front desk, else a manager, else the practice owner, preferring people who work at the lead's location. The same lead keeps the same stand-in from message to message; only a change in that part of the team can move it to someone else. The field is blank only when the practice has nobody in those roles.

A template you send yourself from the inbox or Leads fills the field with your own first name instead: you're the one sending it. A campaign fills it with the first name of the team member who created the campaign.

When a step keeps failing

If Smileline repeatedly cannot process a flow step because of a technical error, it does not retry forever. After ten failed or interrupted attempts in a row, or once its automatic retries run out, it pauses the flow for that lead instead of stopping it. The lead stays enrolled with no next step scheduled, the patient's activity shows Sequence paused for review with the reason in one sentence, for example Smileline paused this sequence because a step failed with an error several times in a row., and an Automation step item appears under Couldn't be processed in the review queue. Its reason ends with the error the step last hit, for example DatabaseError 55P03: canceling statement due to lock timeout; View details shows it in full. Anything that could identify a patient (an email address, a phone number) is masked.

  • Try again on that item resumes the same enrollment straight away, from the step it paused on (quiet hours still hold an SMS or WhatsApp step). Sequence resumed on the timeline names who pressed it. A message is never sent twice.
  • If the step is still being worked on, Try again says so: press it again in a few minutes.
  • A paused flow still counts as running. The lead can't start the same flow again on that enquiry until this run ends or is stopped, and any of the rules above still stops it. If that happens first, Try again has nothing to resume, so mark the item as handled.
  • Mark as handled leaves the flow paused. To end it, press Stop on the lead's enrollment chip.

Editing templates

Message steps use templates from Settings → Templates, edited through the same dialog as the library — click Edit template on the step.

Saving a template changes every flow message that hasn't started sending, in every flow that uses it. A message already being sent goes out as it was. A WhatsApp step that maps the template's placeholders itself keeps the text it was saved with until you save the flow again.

Email templates open in a visual editor: plain paragraphs read like a personal email, and typing / inserts layout blocks (headings, lists, buttons, dividers, sections, columns) when you want a designed one. Image below the editor adds a picture from your practice's image library. Press Escape once to close the / menu, and again to close the dialog. The canvas is 600px wide — the email standard — and shrinks to fit a narrow screen.

Prefer to write the markup yourself? Switch Visual to HTML above the editor and paste your own HTML, with a preview tab beside it. See Message templates for how the two modes differ.

Merge tags like {{patient.firstName}} and {{location.phone}} are literal text in the template; they resolve when each message sends. Insert them from the chip row under the editor, in either mode.

On this page