Blog · 2026-11-25
Your First Automation in 30 Minutes: The Flow Designer, Start to End Node
A lead-intake automation built end to end: Start to End node, an LLM summarizer in the middle, and the mechanics — variables, error policies, debug runs, schedules — that make the canvas production-grade.
Every low-code platform has a "draw boxes, connect arrows" automation feature. What separates a toy from a tool is what happens between the arrows: how data moves from one node to the next, what a failed node does to the rest of the run, and whether you can watch an execution instead of reading a log afterwards. This tutorial builds a real flow in Workcraft's Flow Designer — a lead-intake automation that summarizes an inbound message with an LLM and emails the result — and along the way covers the mechanics that matter when you build your second, messier one.
What you'll build: Start → OpenAI Agent → Email → End. Manual trigger first, then we flip it to a schedule. Time: ~30 minutes. Prereqs: a Workcraft tenant, an app to build in, and an LLM API key stored as an environment variable.

60 seconds of mental model
A flow is a directed graph stored on your app: nodes do work, edges pass output downstream. Three rules cover most of it:
- Every flow starts at a Start node. It's the entry point and also the trigger config — manual/API, or scheduled. A flow ends at an End node, which collects upstream outputs into the flow's result.
- Nodes reference each other with
${nodeId.path}variables. Type${in a config field and you reference a previous node's output — e.g.${start.parameters.message}pulls themessageinput parameter. The expression resolves server-side at execution; a whole-field${...}reference keeps its native type (a number stays a number), while one embedded in text resolves as a string. - Each node has an error policy.
abort(default — one failure stops the run),continue(swallow the error, keep traversing), orretry:<n>(retry up to n times with a short backoff, then fall through to abort/continue). Set this per node, not per flow.
Step 1 — Create the flow
Open your app, go to Automation, and create a new flow — name it lead-intake. The designer is a drag-and-connect canvas: pull nodes from the palette, wire output handles to input handles. The palette is wide — roughly 60 node types, from mongo/postgres/sql/elasticsearch to slack/teams/email, AI providers (openaiagent, geminiainode, anthropicainode, ollamaainode, perplexityainode, …), logic (ifelse, decisionrule, loop), data (datastore, datatable, vectordb, rag, embedding), and SaaS connectors (salesforce, hubspot, jira, stripe, twilio, googlesheets, airtable, notion, …).
Two notes before you drag anything:
- Node availability is plan-gated. Saving a flow scans its node types against your tenant plan's feature set, and the runtime re-checks per node — so an
openaiagentnode on a plan without the AI-nodes feature fails at design time, not as a surprise mid-run. - Flow ≠ Workflow. Flows are automation graphs (this tutorial). Workflows are server-authoritative record lifecycles — stages, transitions, tasks, SLA — a different engine. There's a
workflownode if you need a flow to move a record through its lifecycle.
Step 2 — Configure the Start node
Drop a Start node. Its panel toggles between Trigger and Scheduled modes:
- Trigger = the flow runs when something calls it — the Run/Debug buttons in the designer, an external execute call, or another flow via a
subflownode. - Scheduled = the flow registers itself with the platform's built-in scheduler on execution. The Start node offers "every N" interval options; the schedule config also accepts a cron expression for anything fancier. We'll come back to this in Step 6.
For the manual version, define the input parameters the flow expects — for our intake: name, email, message. These land in the Start node's output as parameters, so downstream nodes reach them as ${start.parameters.message}.
Step 3 — Add the AI summarizer
Drag an OpenAI Agent node onto the canvas and wire Start → Agent. Its config fields:
- Agent Name — display label, e.g.
summarizer. - Model Name — e.g.
gpt-4o-mini(any model your key supports). - API Key Variable — the name of an environment variable holding your key, not the key itself. Keys never sit in the flow definition.
- System Prompt — e.g. "You summarize inbound leads. Return: one-line summary, category (sales/support/other), urgency (low/medium/high)."
- User Question — where variables earn their keep:
New lead — Name: ${start.parameters.name}, Email: ${start.parameters.email}, Message: ${start.parameters.message} - Parameters — Temperature (keep it low, ~0.2, for classification-shaped output), Max Tokens, and Enable Memory if the agent should carry conversation state across runs — leave it off for a stateless summarizer; when you do use memory, there's a clear-memory action per agent.

The node also supports attaching Agent Tools and Subagents — skip both for now; that's a later tutorial's territory.
Step 4 — Send the result
Add an Email node, wire Agent → Email. Fields:
- Email To — your intake address, e.g.
sales@yourcompany.com(a CC field covers copies). - Email Subject — e.g.
Lead: ${start.parameters.name}— variables work in subject lines too. - Email Body — e.g.
From: ${start.parameters.name} <${start.parameters.email}>followed by the agent's output — after a debug run, the variable autocomplete shows the exact output path, so you don't have to guess whether it's${summarizer.result}or something nested. - Template Name — optional; use a stored email template instead of an inline body if you have one.
Finish with an End node after Email. The End node aggregates upstream output into the flow result — it's what callers get back and what a parent subflow node receives.
Step 5 — Debug-run it (this is the good part)
Don't activate yet. The designer has a live debug path: Debug run executes the flow and streams every node's input/output into a debug panel, landing on an execution-details view. You watch each node light up in order — Start emits its parameters, the Agent emits the model's answer, Email emits its send result.

Two things make this better than a log file:
- The debug run feeds autocomplete. After a run,
${suggestions in config fields are populated from the actual node outputs — paths appear with value previews (capped for depth and size). You're never guessing output shapes. - There are breakpoints. The debug controls can pause the graph mid-run, inspect the outputs collected so far, then step or resume. For a four-node flow it's a luxury; for a forty-node one it's how you find the node that ate your payload.
If a node fails: check its error policy first. For a production intake flow, retry:2 on the Email node is cheap insurance against a flaky SMTP call; leave abort on the Agent so a dead API key fails loudly.
Step 6 — Turn it on
A saved flow does nothing until activated — the flow list carries the activate/deactivate toggle. Activate lead-intake and it's live for external and subflow invocations.
For the scheduled variant: flip the Start node to Scheduled, pick "every 15 minutes" (interval) or supply a cron expression, and execute once — that execution registers the schedule with the platform's scheduler and reports the next run time in the Start node's output. Rescheduling goes through the same path, so changing the interval doesn't orphan old triggers.

Where this tutorial stops
Honest edges of the 30-minute version:
- It stays linear.
loop,ifelse, anddecisionrulechange traversal semantics — branches pick edges by condition, loops iterate a subgraph — and earn their own walkthrough. - Triggers are manual and scheduled only. There's an outbound
webhooknode (calls an external URL from the flow), and channel inbound paths exist for Slack/Teams/Twilio and friends, but a generic "POST to this URL to start the flow" inbound trigger isn't a first-class node type today. - Chat-shaped flows are a different beast.
chatinput/chatresponse/messageinputnodes drive conversational flows with streamed replies and conversation variables — different enough to deserve their own post. - Output paths are discovered, not memorized. The debug-run autocomplete is the source of truth for what each node emits; several nodes wrap output differently.
Why the plumbing matters
The details above — ${nodeId.path} with typed resolution, per-node error policy, plan-gated node types, live-streamed debug runs — are the difference between an automation canvas you demo and one you run a business process on. The next post in this series walks the full node taxonomy and when to reach for each category.
Deeper reference: automation flows · flow node reference · environments.
Want to try it? Get a demo workspace or read the docs.