By Mario G
Published: 2026-05-21
URL: https://realaivalue.substack.com/p/automate-anything-part-2-how-to-design

In Part 1 of this series, I laid out the basic components of an AI automation workflow: the worker, the body, the workspace, the materials, the tools, the process, and the awareness the worker needs to operate reliably.
What you’ll find in this Part 2 article :
- A short version of the step-by-step design process if you want to skip the full article.
- A detailed step-by-step design process using a simple but realistic automation: a weekly sales recap.
- A downloadable skill that will help you think through your design and create a design document. You can ask your AI to implement this design and help you set it up.
As a quick reminder of Part 1, the components we laid out where:
- Worker: the AI agent doing the work.
- Body: the harness or environment where the agent operates.
- Workspace: the place where files, state, logs, and outputs live.
- Materials: the inputs, work-in-progress outputs, final outputs, and state the workflow uses.
- Tools: the capabilities the worker uses to act on the world.
- Process: the sequence of work the automation needs to execute.
- Awareness: the context and memory the worker needs to avoid mistakes.
Knowing the components is useful because it gives us a framework for thinking about the pieces needed for a basic automation workflow. But understanding the components of a workflow is not the same as being able to design one.
This is where many people get stuck. They understand that AI can read files, use tools, update spreadsheets, write reports, and move information between systems. But when they try to build the actual automation, everything becomes blurry again. Should they start with the model? The MCP? The prompt? The folder structure? The database? The schedule?
My answer is: start with the process.
The process tells you what work needs to happen. Once the process is clear, you can identify the materials flowing through it, the tools needed at each step, the awareness the worker needs, the workspace where everything should live, and finally the body and brain that can execute it.
One important warning: The objective of this article is pedagogical, and it is aimed at knowledge workers. This means the step-by-step guide is designed to force you to think through the details in a structured way and train your workflow design muscle. Once you start mastering this process and have implemented a few automations yourself, you will be able to jump directly into creating high-quality skills or agents that take over your workflow.
A Step-by-Step Guide: The Short Version
The key to designing an AI workflow is to start with the work itself and identify the specific actions needed to complete it. Once the process is clear, the rest of the automation becomes easier to design: the materials, tools, awareness gaps, workspace, and final agent instructions.
- Describe the workflow and additional requirements in plain language: Start with a simple description of what the workflow does, when it runs, what it produces, and who consumes the output. Also define any additional requirements: anything not already described in the workflow that you want to make sure happens during the automation process.
- Map the process as a sequence of actions: Break the workflow into the actions needed to produce the final output. In the weekly sales recap example, the process includes extracting data, preparing it, analyzing it, crafting the report, verifying the results, and delivering the final materials.
- Identify the materials flowing through the process: For each step, list the inputs and outputs. These can include raw files, cleaned data, analysis results, draft summaries, final reports, logs, and any other state the workflow needs to use or update.
- Identify the capabilities needed to execute each action: Do not start by naming specific tools. Start by listing what the worker needs to be able to do: search files, read spreadsheets, write outputs, run code, draft text, update logs, or send messages. Once the capabilities are clear, you can map them to specific harness tools later.
- Find the awareness gaps: Ask what the worker needs to know before it acts. Some awareness comes naturally from the process actions, but some context must be intentionally added. A common gap is knowing whether the process has already run.
- Turn awareness gaps into process actions: Every awareness gap should become a concrete read, check, validation, memory update, or stop condition. For example, before extracting new data, the workflow should read the report log and stop if that week’s report already exists.
- Design the workspace: Organize where the materials and context will live. The workspace should make it obvious where to find raw inputs, where to store work-in-progress files, where final reports go, and where logs or business context should live. One or more workspaces is OK, but aim for simplicity if possible.
- Map the capabilities to harness tools and choose your harness: Map the capabilities you need to the harness tools you need, and choose a harness that simplifies the workflow. This might include a Skill, Drive access, Sheets access, code execution, chat output, and scheduling.
- Create the Skill or Agent instructions: Turn the process into concrete instructions for the worker. The instructions should say what to read, what tools to use, what to verify, where to write outputs, when to stop, and what state to update.
- Ask your AI to help you set it up: Give your process and needed tools to Claude or ChatGPT, ask it to help you transform your instructions into a skill or agent and to guide you step by step on how to set up the tools you need to run it.
- Dry run and Iterate: Test the workflow manually before calling it said and done. Check the report, verify the numbers, inspect the summary, confirm the log updated correctly, and run it against different examples. If something goes wrong, diagnose why it went wrong (AI can help) and iterate.
The goal is to move from a vague idea of “automating a workflow” to a concrete design that tells the AI worker what to do, what to use, what to know, where to work, and how to avoid preventable mistakes.
Step-by-Step Guide: A Weekly Sales Report
To help explain the different steps and their purpose, we will use a simple example: a weekly sales analysis and report.
The workflow is straightforward. Every Monday morning, a Sales Ops Analyst needs to summarize last week’s sales performance against quota. The analysis pulls from sales transactions and quota data, creates a structured report, and drafts a short Slack update the analyst can paste into the team channel.
This is a good example because it is recurring, structured, and requires LLM reasoning to execute. The format should be consistent every week, but the story changes every week.

Step 0: Describe the Workflow and Additional Requirements in Plain Language
Before designing anything, describe the workflow in two to four sentences.
For the weekly sales recap, it might look like this:
- Workflow: Every Monday morning, the analyst runs a workflow that reviews last week’s sales transactions and compares them against quota. The workflow produces a six-tab Google Sheet report and a short Slack-ready summary. The report is consumed by the sales leadership team, while the Slack message is used to quickly communicate the story of the week.
- Additional requirements: The report must not be written twice during the same week because Monday reports are shared with leadership, and an accidental overwrite could cause confusion.
This sounds simple, but it is an important anchor. The workflow defines the trigger, the definition of done, and the consumer of the output. The additional requirements define anything else the automation needs to enforce during execution, even if it is not part of the core workflow description.
If you cannot describe the workflow clearly, then you are not ready to automate it yet.
Step 1: Map the Process
Now we can start with the process. It is important to remember that a process is a set of actions that are related to each other. Some actions might be independent, but all of them must contribute to the final output.
Another important point is that actions can often be awareness actions, like reading instructions, loading memory into context, or checking whether a report has already been completed.
For the weekly sales recap, the process might look like this:
- Extract: Find the source sheets and pull last week’s sales transactions and quota data.
- Prepare: Clean the data, join transactions to quota, and create the base metrics.
- Analyze: Calculate performance by region, product, client, and total business.
- Craft: Turn the analysis into a structured report and a short narrative summary.
- Verify: Check that the numbers are complete and that the report follows the expected structure.
- Deliver: Create the report sheet, draft the Slack message, and log that the run happened.
Notice that this is still not a full plan. It is simply the set of actions that need to happen to achieve the desired output. In this example, we are using a simple linear process, but nothing prevents us from mapping more complex, non-linear processes.
Steps 2 to 4: Map the Process to Materials, Tools, and Awareness
Once the process is mapped, the next step is to map the actions to the materials, tools, and awareness gaps needed to execute that process. In this example, because we are using a linear process, we can do this easily with a table format:
The materials column forces you to identify what flows through the workflow. In this example, the raw inputs are the sales transaction sheet and the quota sheet. The work-in-progress materials are cleaned tables, joined data, aggregations, and draft narratives. The finished outputs are the six-tab report and the Slack-ready summary. The state material is the report log, which tells the worker what has already been processed.
An important detail when thinking through the materials is that the information flow must stay aligned across the workflow. Each input should contain the information needed to execute its step and produce the right output. Material design is not just about naming files or tables; it is about making sure information moves cleanly across your system.
The capabilities column forces you to ask what the worker needs to be able to do. It needs to find files, read sheets, write sheets, run code, and produce a message in chat.
The important thing to notice when listing capabilities is that I am not listing actual harness tools like MCP names, connectors, Skills, plugins, or anything like that. You should do that if you are already familiar with the tools you need, but the objective here is to get a clear picture of the capabilities required to take a given action. Later, we can map this capabilities to the required harness tools.
The awareness gaps column is trickier. In practice, some awareness can be implicit. For example, if the model needs to be aware of a particular set of data, the action of extracting the data will create the needed awareness. This is implicit awareness. The objective of this step is to force yourself to think about what the model is aware of and what are the gaps at every step, because you will need to fill those gaps intentionally.
In this example, extracting the data cannot tell the model whether the sheet or Slack message has already been completed. For the sales analysis, avoiding duplicate reports is an additional requirement. Because we defined this as something the automation must enforce, and because it is not implicitly handled by the actions we have mapped so far, an awareness gap exists.
That last detail matters. Posting to Slack is an external side effect. In this version, we avoid that risk by having the worker draft the message and letting the analyst decide whether to post it.
Step 5: Identify Where Awareness Gaps Exist and Include Them in the Process
Awareness gaps are solved by adding concrete actions that help the worker perceive, retrieve, or validate the missing context before it acts.
In our weekly sales recap example, the gap appears in the Extract stage:
Which week is being analyzed? Has this week already been processed?
That gap should become a specific verification action in the process. So instead of starting with:
- Extract: Find the source sheets and pull last week’s sales transactions and quota data.
We revise it to:
- Verify run status: Identify the target reporting week, read the
report\_log, and check whether a report already exists for that week. If it exists, return the existing report link and stop. If it does not exist, continue.
- Extract: Find the source sheets and pull last week’s sales transactions and quota data.
- ...
This is a small change, but it changes the reliability of the workflow. This is how awareness becomes operational. Every awareness gap should become either a read action, a verification action, a memory update, or a stop condition.
Step 6: Design the Workspace
The workspace is the place where we organize materials and store relevant context and instructions.
In this example, the workspace is the file system inside Google Drive and Google Sheets. The goal is to organize it so the worker can move through the workflow without guessing where things are, where to write outputs, or where to find the context it needs.
A clean version might look like this:
/source/contains the raw input files the workflow needs to read.
/work-in-progress/contains the materials created between steps.
/reports/contains the final weekly recap reports.
/context/contains thereport\_logand any relevant business context the worker needs to interpret the data.
This is the role of the workspace: it gives every material a place to live and gives every important piece of context a place where the worker can read it, update it, and use it in the process.
Step 7: Pick the Body and Map the Programmatic Tools
Only now should we pick the body and map the harness tools.
The table from Steps 2 to 4 already tells us the capabilities the harness needs to provide. For this workflow, we need:
- A way to codify the process into reusable instructions, such as a Skill.
- A way to search and organize files in Google Drive.
- A way to read from and write to Google Sheets.
- A way to run Python for deterministic calculations.
- A way to return a final message in chat.
- Optional: a way to schedule the workflow if we want it to run every Monday.
For the weekly sales recap, the mapping might look like this:
Based on this mapping, Claude Cowork is an easy choice because it can trigger the workflow manually or through a scheduled task, execute the process through Skills, connect to MCP servers with a simple toggle, and run code for the deterministic parts of the work without you having to install anything.
Finally, you need to choose the model you want to use. The rule of thumb is to choose the least amount of intelligence you need to execute your workflow. If Haiku or Gemma can do the job, use those. If not, move up until you find the right fit. For an analysis task like this, you will typically be looking at Opus 4.7 or GPT-5.5.
Step 8: Create the Skill or Agent instructions
This is the step that turns the design into an actual automation.
Take the stages from Step 5 and rewrite them as specific instructions. The instructions should tell the worker which tools to use, what inputs to read, what to verify, what state to update, and what not to do.
For the weekly sales recap, the Skill should reflect the revised process from Step 5. It should say things like:
- Start by identifying the target reporting week.
- Read
/context/report\_log.mdbefore extracting new data.
- Check whether a report already exists for the target week.
- If a report already exists, return the existing report link and stop the workflow.
- If no report exists, continue to the Extract step.
- Use the Sheets MCP to find the raw sales transaction and quota source files.
- Treat the raw source files as read-only inputs.
- Create the
sales\transactionsandsales\quotasworking sheets inside the workspace.
- Use Python to join both datasets and clean the data, then create
prepared\_datausing the required format.
- Use Python for the analysis using the defined criteria. Output
analysis\results.mdand deleteprepared\data.mdonce done.
- Create a report with exactly six tabs: Summary, By Region, By Product, By Client, Hypotheses & Anomalies, and Raw Data Snapshot.
- Draft a Slack-ready message under 150 words, but do not post it.
- Append one row to
report\_logwith the week, timestamp, report link, and status.
This is the real automation artifact. The Skill or Agent is basically the instruction that goes into the AI worker’s brain, giving it the knowledge needed to execute this particular task.
A key principle to keep in mind is that LLMs are not deterministic by nature, which means you will typically prefer to instruct them to use code for any calculation or complex analysis.
Step 9: Dry Run and Iterate
Always, always test. Check the generated report. Compare the totals to the source data. Read the Slack summary. Confirm that the log updated correctly. Make sure the final output and intermediate artifacts are created in the right place.
Run it again for the same week to test that it stop and doesn’t duplicate worry it against several past weeks of sales data and analyze the reports, are they consistent? are the insight what you would expect / find valuable? is this process reflecting how I would do it?
If something goes wrong or if it’s not up to understand, diagnose, iterate and test again. Once you are done, try the workflow for a few weeks in the actual work setting , this will most certainly raise situations you weren’t expecting that reduce the quality or create errors. Keep iterating and maintaining your skill as they come up. Eventually you will reach a place where maintenance will be minimal.