PTENES
MODULE 3.1

📋 From process to blueprint

You have the to-be diagram from Track 2. Now it becomes construction plan: each box in the diagram becomes a named component, with input and output data, a plan for when it fails, and a metric that tells you whether it was worth it. This is the document you put together before touching any tool.

6
Topics
~60
Minutes
Intermediate.
Level
Theory
Type
1

🗺️ What is an automation blueprint

One blueprint is the blueprint for your automation: the technical specification that describes each component, what goes in and out of each one, and how everything connects — before before opening n8n or writing a line of code. No one builds a house directly on the land; you draw the blueprint first. It’s the same here: the blueprint is where thinking is cheap and failures are easy to fix.

🧱 What a good blueprint contains

  • •The trigger: what makes the automation start.
  • •The components: each step, named and classified by type.
  • •The data: input, output, and format of each component.
  • •The fallback plans: what happens when something fails.
  • •The success metric: how you’ll know it worked.

💡 Practical tip

Write the blueprint so that a colleague who won't build the automation can understand what it does just by reading it. If it understands, the specification is clear. If you need to explain it verbally, there’s still hidden ambiguity.

Specification

Describes what, not the technical how.

Cheap

Fixing it on paper takes minutes.

Readable

Understandable to someone who doesn’t build it.

Live

Updates as you learn.

2

🧩 Translate the to-be into components

The to-be diagram is a statement of intent. To become a blueprint, each box needs to be classified in a component type: what triggers it (trigger), what moves and transforms data (steps), what reasons (AI), and what produces an effect in the world (actions). One box in the diagram can become one or more components.

To-be box "evaluate the request" ⚡ trigger — new order 📥 step — collect data 🧠 AI — classify risk ✅ action — approve/escalate 1 box in the design → 4 named components

✓ Well-crafted translation

  • ✓Each component has a name and a clear type.
  • ✓Separate fixed rules from what needs AI.
  • ✓List how many external integrations will be needed.

✗ Lazy translation

  • ✗"AI does everything" — it becomes a black box that’s impossible to test.
  • ✗Uses AI where a simple IF would do.
  • ✗Forget about integrations and discover them only when it’s time to build.
Trigger

What triggers the workflow.

Step

Moves or transforms data.

AI

Interprets and decides.

Action

Produces an effect in the world.

3

⛓️ Anatomy of the flow

Most AI automations follow the same backbone of six stages. Knowing this template saves you from inventing the structure from scratch every time — you just fit the new problem into the six stages.

1

⚡ Trigger

Something triggers: an email arrives, a form is submitted, a scheduled time comes, or a webhook is called.

2

📥 Collection

The workflow brings together everything the AI will need: the content that triggered it, plus data from APIs, databases, or files.

3

🧠 AI

The LLM interprets the collected material and returns a structured analysis (classification, summary, extraction).

4

🔀 Decision

Based on the AI’s output, the workflow branches: approve, escalate, archive. The decision is separate from the action.

5

✅ Action

The effect in the world: send a response, create a record, update a spreadsheet, notify someone.

6

📝 Log

Everything is logged: input, AI decision, action taken. Without logs, you can’t debug or trust it.

💡 Practical tip

Keep decision and action separated. If AI decides and acts in the same step, you can't insert human approval between the two when you need it. Decision in one field, action in the next step: flexible and auditable.

6 stages

Reusable template.

Always log

Never optional.

Decision ≠ action

Separate and auditable.

Fit

Don’t reinvent it for every case.

4

📦 Input/output data and formats

Each component has a contract: what goes in, what comes out, and in what format. Most automations break at the connection between two components — one delivers data in a format the next one doesn’t understand. Defining the contracts in the blueprint eliminates this problem before it happens.

🧾 AI component contract (example)

# component: classify_order
input:
requested_text: string  # required
cliente_id:   string  # required
historico:    array  # optional
output (JSON):
category:  "purchase" | "support" | "complaint"
priority: "high" | "medium" | "low"
confidence:  number  # 0 a 1

📐 Why JSON is the lingua franca

  • •Every automation tool reads and writes JSON natively.
  • •Named fields eliminate the ambiguity of "where each piece of information is."
  • •It’s verifiable: you can check types and required fields before using it.
Contract

Input and output for each piece.

JSON

Lingua franca between components.

Required

Mark what must not be missing.

Join

Where the flow usually breaks.

5

🛡️ Failure points and plan B

For each component, ask: what could go wrong? API is down, data is missing, AI is uncertain. For each failure, define what happens: retry, skip, alert a human, or stop. Automation without a backup plan is fragile—the first exception brings everything down.

✓ Resilient

  • ✓Unstable API → retry with increasing wait times, then alert.
  • ✓Low-confidence AI → escalate for human review.
  • ✓Failure recorded and notification sent — never silent.

✗ Fragile

  • ✗An API error brings the entire execution down.
  • ✗AI acts even when uncertain, without a safety net.
  • ✗Silent failure: no one notices it stopped working.

⚠️ Attention

The worst failure is silent: the automation stops or fails without notifying anyone, and you only find out when the client complains. Every failure must be noisy — an alert, a highlighted log, a notification. Failing is acceptable; failing silently is not.

Retry

For temporary failures.

Fallback

Safe alternative path.

Human

Scale when uncertain.

Noisy

Never fail silently.

6

📊 Success criteria and metrics

Before building, define what counts as success: time saved, success rate, percentage of cases that still require a human, cost per execution. Without a metric defined up front, you never know whether the automation is good enough — or whether it’s creating more work than it solves.

🎯 Metrics worth measuring

  • •Time saved: compare it with the manual baseline from Track 2.
  • •Accuracy rate: % of cases resolved correctly without rework.
  • •Human intervention: % of cases that still need someone.
  • •Cost per run: AI tokens + API calls per run.

💡 Practical tip

Use the manual baseline what you measured in the audit as your benchmark. If the process took 10 hours and cost X, the automation is only a success when it delivers the same result in a fraction of the time and at a fraction of the cost — including the cost of tokens.

Before

Metric defined from the start.

Baseline

The manual is the benchmark.

Cost

Tokens count toward the total.

Settle

Quality, not just speed.

🧠 Module Summary

✓
A blueprint is the plan — technical specification before touching any tool.
✓
To-be → components — each box becomes a named trigger, step, AI component, or action.
✓
Anatomy in 6 stages — trigger → collection → AI → decision → action → log.
✓
Data contracts — input, output, and format (JSON) for each component.
✓
Plan B and metric — fail loudly and measure success from the start.

Next Module:

3.2 · Choosing tools and models — which stack builds this blueprint.