Build a workflow agent: multi-step jobs that run on a trigger
Intermediate · 11 min
Goal: You will assemble a Level 2 agent: a fixed, multi-step job that runs when triggered and reports back.
This is where agents start saving serious time: the same job, run the same way, whenever a trigger fires — a new form entry, a schedule, a new file in a folder. You will chain your Episode 2-4 skills into one supervised pipeline.
Steps
- Draw the pipeline before touching tools: Boxes and arrows: Trigger -> Step 1 (fetch/collect) -> Step 2 (agent processes) -> Step 3 (human check) -> Step 4 (deliver/file). Example: new meeting recording -> transcript (Fireflies/Otter-class) -> your Episode 2 agent extracts actions -> draft summary lands in your inbox -> you approve and forward.
- Choose boring, reliable triggers: Time (every Monday 9am), new file, new form response, new email with a label. Avoid triggers that fire on messy human behaviour ('whenever someone mentions…') — reliability of the trigger decides whether the pipeline survives month two.
- Build step by step, testing each joint: Never assemble the whole chain untested. Build trigger -> step 1, run it on a real example, inspect the exact output format; then add step 2. Format mismatches between steps are where pipelines die — look at the actual data passing through.
- Install the human checkpoint deliberately: Place approval where errors are expensive (anything leaving your accounts) and automation where errors are cheap (drafts, internal summaries). The checkpoint is not a lack of trust; it is the design feature that makes the rest safe to automate.
- Write the run-book: One page: what the pipeline does, where outputs land, what to check weekly, how to pause it, and the three failures you have seen with their fixes. Future you — or a teammate — operates the agent from this page.
Tricks and tips
- Name pipelines like employees with job titles ('Monday Research Pipeline') — you will manage them like staff.
- Alert on silence: a pipeline that should run weekly and did not is a failure too — check the log weekly.
- Keep the agent's step in the middle replaceable; models and tools change, your pipeline design should survive swapping them.
Practice task
Run your pipeline three times on real inputs, fix every joint failure, and finish with a written run-book plus one full run you did not touch after the trigger.
Pro level
- Pros add an eval run: five fixed test inputs with known-good outputs, re-run after any change to instructions, model or tools.
- Idempotency matters: if the pipeline runs twice on the same input, it must not double-send or double-charge — check this explicitly.
Free and cheap ways to do this
- Zapier's free tier handles low-volume pipelines; several automation tools (Make and others) have free tiers too — verify current limits officially.
- Meeting transcription free tiers (Otter.ai, Fireflies.ai) feed pipelines at $0 for light use.
- The run-book is a free document — and the most skipped, most valuable artefact in automation.
Only legitimate free routes are listed here — official free tiers and trials, open-source tools, and student discounts. Cracking, piracy and payment workarounds are not recommended.