Flow templates catalog
The platform ships a catalog of pre-built starter flows — ready-to-clone automations for the use cases customers build most. Each template carries a complete flow graph (trigger, nodes, and edges) that you copy into a new draft, adjust to your brand and timing, and publish. The same catalog backs both surfaces: the dashboard’s template gallery and theGET /api/v1/flows/templates API endpoint.
Templates are starting points, not locked automations. Cloning one gives you an ordinary draft flow — nothing about it stays tied to the template. The full model — clone detachment, provenance, versioning and drift — is in Flow templates model and clone semantics.
Twelve templates ship today. The catalog endpoint returns all of them; the dashboard gallery groups them by category.
The catalog
What each template does:
- Welcome SMS — the smallest useful flow: an incoming-message trigger straight into a welcome text. Good as a skeleton for any single-send automation.
- OTP Verification — webhook trigger, a one-second delay, then the code over SMS. Swap the placeholder
{{otp}}variable for whatever your Verify workflow generates. - Abandoned Cart Reminder — a schedule trigger with a cart-not-empty condition and a WhatsApp nudge. The schedule form keeps batch re-checks out of your webhook plumbing.
- Customer Satisfaction Survey — fires when a support ticket resolves, waits 24 hours, then emails the survey. The delay is what separates a survey people answer from one they delete.
- Lead Nurture Sequence — welcome SMS, wait 3 days, follow-up email, wait 4 more days. A seven-day cadence you extend or trim by editing the delay nodes.
- Support Escalation — after 30 minutes, if the issue is still open, text the on-call team. The condition checks a flat context key, so your ticket system must post
statusin the webhook body. - Password Reset — branch on whether an email is on file: email the reset link, fall back to SMS otherwise. The
yes/nohandles on the condition carry both paths. - Guided Troubleshooting — a two-step self-serve script over WhatsApp (restart, then factory reset) that hands off to a human agent when the scripted steps report back unresolved.
- Lead Qualification (BANT) — an AI agent runs the Budget/Authority/Need/Timeline conversation, a condition reads the resulting
lead_score, and hot leads hand to a sales agent while cold leads drop into an email drip. - Order Status Self-Service — an agent node looks the order up, and only the “not found” branch interrupts a human.
- FAQ Deflection — a knowledge-base-backed agent answers; low-confidence answers hand off.
knowledgeBaseIdson the agent node points at your KB. - Appointment Reminder — negative-amount delays relative to an
appointment_attimestamp fire 24 hours before (confirm/reschedule over WhatsApp) and 1 hour before (final SMS ping).
The dashboard shows one filter chip for each category present in the catalog, plus All. Categories include
auth, sales, support, and ecommerce, so you can filter directly to every template instead of relying on All or search.Clone from the dashboard
- Open Flows → Templates. The gallery shows each template as a card with its category, channels, and a mini node preview.
- Filter by the category chips (All, Welcome, Reminder, Survey, Nurture, Escalation, Auth, Support, Sales, Ecommerce) or search by name, description, or channel — the search matches all three.
- Click Use Template on a card. The builder opens at
/flows/builder?template=<template-id>, loads the template’s graph, and seeds it onto a new draft canvas. - Rename the flow, adjust the nodes (see Customize), then save and publish like any other flow.
/flows/builder?template=tpl_welcome_sms opens the builder with that template pre-loaded, so a runbook or an onboarding checklist can point teammates at a specific starter.
Clone from the API
List the catalog:{ data, meta } envelope — data is the array of templates, each with id, name, description, trigger_type, category, channels, nodeCount, and a full definition holding nodes and edges:
definition into a create call — carried as the body of POST /flows, with your own name and the template’s trigger_type:
position coordinates in the template definitions are optional canvas hints — keep them (the builder lays the graph out the way the gallery preview shows) or drop them (the builder repositions nodes).
Customize a cloned template
Templates are generic by design. Before publishing you always touch the same fields:
Variables are flat keys:
{{phone}}, {{first_name}}, {{appointment_at}}-style placeholders resolve against the merged trigger payload and contact record, and a missing key renders as an empty string. See the Flows overview for the full trigger-payload table.
Worked example: extend Welcome SMS into a two-touch series
The Welcome SMS template is one trigger and one send. Turn it into the classic welcome series by appending a wait and a second touch:- In the builder, with the cloned draft open, add a Delay node — amount
24, unithours. - Add a Send Email node after it —
to: {{email}}, subject “Getting started”, body with your onboarding link. - Re-wire the edges:
trigger-1 → sendSms-1 → delay (new) → sendEmail (new). - Test with the canvas simulator, then publish.
Limits and edge cases
- Templates are read-only. There is no update or delete endpoint for the catalog —
GET /flows/templatesis the only template route. Your clone is a separate flow; edit, version, and archive it without touching the template. - Cloning replaces the canvas you opened it on. The builder’s
?template=path seeds the template graph over the current draft. If you have unsaved work in the builder, save it as a flow (or a version) before opening a template link. - Template ids are stable. The
tpl_*identifiers are fixed strings, safe to deep-link (/flows/builder?template=tpl_faq_deflection) and safe to hard-code in internal tooling that lists the catalog. - Placeholder variables ship in the graph. Bodies reference context keys (
{{phone}},{{otp}},{{reset_link}},{{oncall_phone}}) and agent ids ({{cs_agent_id}},{{lead_qualifier_agent_id}}) that resolve only if your trigger payload, contact record, and provisioned agents supply them. A placeholder with no backing value sends an empty string — run the simulator or Test mode before publishing. - Schedule and webhook templates need wiring. A schedule-cloned flow still needs its
cron_expr, and a webhook-cloned flow is only as good as the system posting to its URL — the template defines the graph, not the integration.
When not to use a template
Templates are deliberately simple — linear paths with at most one branch. Reach past them when:- the flow needs more than one condition chain, or multi-way branching (weighted A/B variants, split/merge parallelism);
- you are building a batch or audience-driven automation — that belongs to a Schedule trigger or campaign enrollment, neither of which a single-send template models;
- the design is fundamentally conversational (per-turn routing inside an AI agent) — that is a conversation flow, not a classic flow.
Next steps
- Build your first automation flow — design, simulate, publish, and debug a flow end to end
- Flows overview — trigger catalog, node taxonomy, and edge semantics
- Flow Builder — the visual palette and every node’s settings
- Flow recipes — copy-ready definitions for the five most-built automations
- Flow Executions — watch and debug runs once your cloned flow is live