Module 5 of 6 · Intermediate · 10 min read
Automation and workflows
Connect apps and AI steps into automations that save hours, with the guardrails that keep them safe to run unattended.
- 1Automate repetitive, well-defined steps; keep judgement calls with people.
- 2Make AI steps return structured output so the next step can rely on it.
- 3Add human approval before anything external or irreversible.
- 4Log every run and alert on failures, or automations fail silently.
01Where AI helps
Classic automation moves data between apps. AI adds the steps that used to need a person to read something.
- Classifying and routing incoming email, forms and tickets.
- Extracting data from documents, invoices and messages into spreadsheets or a CRM.
- Drafting replies, summaries and reports for a person to approve.
- Enriching records, tagging content and cleaning data.
- Writing the automation itself: scripts, formulas and workflow configurations.
02The workflow
The design questions are the same as for loops and graphs: clear steps, clear state, clear exits.
- Write down the manual process step by step, including the decisions.
- Mark each step: fully automatic, AI with checks, or human.
- Build the trigger and data steps first, then add AI steps with structured output.
- Test on a batch of real past examples and compare with what a person did.
- Run in 'draft' mode, where a person approves outputs, before going fully automatic.
- Add logging, error alerts and a monthly review.
03Tools to reach for
Start with the simplest tool that connects to the apps you already use.
- No-code and low-code automation platforms with AI steps and hundreds of app connectors.
- Spreadsheet and document tools with built-in AI functions.
- Scripts (for example Python or JavaScript) run on a schedule, for full control.
- Agent platforms for multi-step tasks that need browsing or several tools.
04Prompt: design the automation
Let AI help you find what to automate and how.
05Prompt: an AI step with structured output
Inside an automation, every AI step should return predictable fields.
06Prompt: write the script
For custom steps, have AI write the code, then test it on sample data.
07Pitfalls
Automations are software that runs while you sleep. Give them the same care.
- Automating a broken process: fix the process first, or you automate the mess.
- Silent failures: an expired connection can stop an automation for weeks. Alert on errors and on unusually quiet days.
- Runaway actions: a loop that emails every customer, twice. Rate-limit and require approval for bulk sends.
- Injection through inputs: incoming emails and forms are untrusted. Never let their content trigger actions directly.
- Costs: AI steps on every event add up. Filter before the AI step.
Finished reading?
Mark it complete to track your progress, then test yourself with the Build with AI: Software & Media quiz.