Draft & Co LearnCourse home
Lesson 06 · 17 minutes

Workflows and agents

Choose between predictable steps and dynamic decisions, then design approvals, scheduling and recovery before automation.

01

Predefined paths and dynamic decisions

A workflow follows a predefined path: collect a form, draft a summary, wait for approval, then save the approved version. An agent can choose its next action dynamically, deciding which tool to call or when it has enough information. Anthropic’s guidance makes this distinction and recommends starting with the simplest effective building blocks, adding agentic flexibility only when the task needs it. If every step is known, a fixed workflow is usually easier to test and explain. Dynamic decisions may help with open-ended investigation, but they create more possible paths to evaluate. Do not call an ordinary automation intelligent merely because a model writes one of its steps.

02

Tools, approvals and scheduling

A tool is a capability a system can invoke, such as reading a permitted document, searching a calendar or creating a draft. Give each tool only the access required, and define what a successful result looks like. External actions deserve particular care: sending email, changing records or publishing content can affect other people. Put an explicit human approval before consequential or difficult-to-reverse actions, and show the person the exact proposed action. Scheduling adds triggers such as a time, new file or form submission. Record when a run started, which inputs it used and whether it finished. A schedule should not silently repeat a failed external action.

03

Plan for interruption and recovery

Failures include missing files, malformed output, expired access, a tool timeout or an approval that never arrives. Decide which failures should stop the run, which can be retried safely, and which need a person. Use timeouts and limited retries so a temporary problem does not create an endless loop. Keep an operation log without storing unnecessary sensitive content. An idempotent action can be repeated without duplicating its effect; where that is not possible, record a unique action reference before trying again. A useful recovery state says what happened, what did not happen and how to resume. ‘Failed’ is not enough information when a draft may already have been sent.

Words worth knowing

In plain English.

Workflow
A sequence of predefined steps that connects inputs, actions and outputs.
Agent
A system that dynamically chooses actions or tool calls while pursuing a task.
Tool
A defined capability a workflow or agent can invoke, such as reading a file or creating a draft.
Approval checkpoint
A deliberate pause where a person reviews and authorises a proposed action.
Idempotent action
An operation that can be repeated without creating additional unintended effects.
See it in practice

Illustrated workflow: a weekly notes digest

  1. Illustration only: every Friday, a scheduled workflow collects notes from one approved folder; no live agent is running in this course.
  2. It creates a draft digest, checks that every source name is present, and pauses for a person to approve the exact text.
  3. Only after approval does it save the digest to a drafts folder. It never sends email automatically.
  4. If collection fails, it logs the missing input and stops. A resumed run uses a run reference so it does not duplicate a saved draft.

Why this works: The fixed path is sufficient, so dynamic agent decisions would add unnecessary uncertainty. Approval and recovery rules make the illustrated process inspectable.

Your turn

Try it for yourself.

Sketch a workflow for turning submitted event ideas into a draft review list. Identify the trigger, two tools, one approval checkpoint, one likely failure and a safe recovery step. State why you would or would not use an agent.

Saved only in this browser. Clearing browser data or resetting course progress will remove it.
View a sample answer

Sample: When a form is submitted, a workflow stores the entry and uses a text tool to standardise the title and summary. A second tool adds the result to a review queue. Nothing is published. Each Friday I approve the complete queue before it becomes a draft agenda. If the queue tool times out, the run stops and displays the submission reference so I can check whether it was added before retrying. I would use a fixed workflow because the steps and decision points are known.

Check your understanding

Three quick questions.

Answer all three, then check. Nothing is sent anywhere.

Question 1What best distinguishes an agent from a predefined workflow?
Question 2Where should an approval checkpoint go before an external email is sent?
Question 3What is a safer response to a tool timeout during a create action?
Keep going

Finished reading and practising?

Mark the lesson complete when you are ready. The quiz is for learning, not a pass/fail gate.

Read Anthropic’s engineering discussion of workflows, agents and starting with simpler building blocks. Read Building effective agents ↗