PTENES
TRACK 3

📐 Solution Design

The process is mapped. Now you become architect: translates the to-be diagram into an executable blueprint, chooses tools and models based on sound criteria, and designs the logic and prompts that help the AI make confident decisions. Good design here is what separates automation that holds up in production from automation that breaks at the first unexpected case.

3
Modules
18
Topics
~3h
Duration
Intermediate.
Level
Blueprint of the to-be to the components trigger collection AI + decision action log output reliable illustrative — the blueprint that becomes an executable flow

Learning path map

Detailed content

3.1 ~60 min

📋 From process to blueprint

How to turn the T2 to-be diagram into an automation blueprint: components, workflow anatomy, data, failure points, and success metrics.

What it is:

A blueprint is the technical specification for the automation — a document that describes each component, the data going in and out, and how the pieces connect, before you touch any tools.

Why learn:

Building without a blueprint means improvising in the editor: you get lost, rework things, and discover failures late. The blueprint makes the problem visible and inexpensive to fix on paper.

Key concepts:

Specification ≠ implementation · think before you build · a blueprint that’s easy to read for someone who won’t be building it.

What it is:

Take each box in the to-be diagram and classify it as a component type: what triggers (trigger), what moves/transforms data (steps), what reasons (AI), and what produces an effect in the world (actions).

Why learn:

Without this translation, the diagram is just a pretty picture. Classifying it into components reveals exactly how many integrations, prompts, and nodes you’ll need.

Key concepts:

1 box = 1 or more components · separate deterministic logic from AI · name each component.

What it is:

The backbone of almost every AI automation follows six stages: something triggers it, data is collected, AI interprets it, a decision is made, an action is executed, and everything is logged.

Why learn:

Knowing the standard anatomy gives you a reusable template: fit any new case into these six stages instead of inventing the structure from scratch.

Key concepts:

6 canonical stages · the log is never optional · decision is separate from action.

What it is:

For each component, explicitly define what goes in and what comes out, and in what format (text, JSON, file, number). This is the contract that connects one piece to the next.

Why learn:

Most workflow failures happen at the handoff: one component delivers a format the next one can’t understand. Defining formats in the blueprint prevents this before it happens.

Key concepts:

Data contract · JSON as a lingua franca · required vs. optional fields.

What it is:

For each component, map what could go wrong (API outage, missing data, uncertain AI output) and define the fallback behavior: retry, skip, alert a human, or stop.

Why learn:

Automation without a plan B is fragile: the first exception brings everything down. Anticipating failures in the blueprint is what turns a prototype into something truly reliable.

Key concepts:

Retry vs. fallback · human-in-the-loop · fail loudly, never silently.

What it is:

Define, before building, what counts as success: time saved, accuracy rate, % of cases that require human intervention, cost per run.

Why learn:

Without a success metric defined up front, you never know whether the automation is good enough to deliver—or whether it’s actually creating more work.

Key concepts:

Metric before building · manual baseline · cost per run matters.

View Full
3.2 ~60 min

🧰 Choosing tools and models

n8n, Make, or code? Which LLM? When do RAG, MCP, APIs, and databases come in? Decision criteria and trade-offs for assembling the right stack for the blueprint.

What it is:

Three ways to orchestrate automation: n8n (low-code, self-hosted, flexible), Make (visual, SaaS, quick to get started), and pure code (maximum control, maximum maintenance).

Why learn:

Choosing the wrong foundation costs you later: you run into licensing limits, a missing connector, or complexity that low-code can't support. Choosing carefully avoids a future migration.

Key concepts:

Low-code vs. code · self-hosted vs. SaaS · maintenance cost is part of the cost.

What it is:

Decide whether the task really needs an LLM (vs. a rule/regex) and, if so, which model: a small, inexpensive one for classification, or a large, expensive one for complex reasoning.

Why learn:

Using the most expensive model for everything burns through your budget; using the cheapest for a difficult task undermines reliability. Matching the task to the model keeps cost and quality under control.

Key concepts:

An LLM isn't the answer to everything · use a small model for a simple task · cost per token × volume.

What it is:

RAG (Retrieval-Augmented Generation) searches for relevant passages in your own knowledge base and injects them into the prompt, making AI respond based on your documents, not just its training.

Why learn:

When automation depends on information that only exists at your company (policies, catalog, history), RAG is what keeps AI from making things up and grounds it in the truth.

Key concepts:

Retrieve before generating · embeddings and semantic search · RAG only when you have proprietary knowledge.

What it is:

MCP (Model Context Protocol) is a standard for connecting AI to external tools—reading files, querying databases, calling APIs—in a consistent way, without glue code for each integration.

Why learn:

When automation requires AI to take action (not just respond), MCP standardizes that access. Understanding when to use it helps you avoid reinventing connectors and keeps your stack scalable.

Key concepts:

Standardized protocol · AI that uses tools · connector reuse.

What it is:

The plumbing of automation: APIs (you request data), webhooks (the system notifies you), and databases (you store and query state), with Supabase as an example of a database + API + auth in one package.

Why learn:

Almost every useful automation needs to fetch, receive, or persist data. Knowing the difference between an API and a webhook, and when you need a database, is what connects the workflow to the real world.

Key concepts:

Pull (API) vs. push (webhook) · state needs a database · Supabase as a shortcut.

What it is:

A set of criteria for comparing options: cost, delivery speed, maintenance, control, scaling limits, and vendor dependency — and the recognition that every choice involves trade-offs.

Why learn:

Stack decisions made out of trend or habit are costly. An explicit trade-off chart forces you to justify each choice and defend it to the client.

Key concepts:

There’s no free choice · explicit criteria · when options are tied, simple wins.

View Full
3.3 ~60 min

🎯 Prompt design and decision logic

The prompt is the heart of AI-powered automation. Reliable structure, validatable JSON output, guardrails, branching based on AI output, and a cycle of testing and iteration.

What it is:

Treat the prompt not as a conversation, but as a piece of a specification: precise, unambiguous instructions that define exactly how the AI is expected to behave within the workflow.

Why learn:

In automation, there’s no human to correct the AI in real time. The prompt needs to be right from the start — it’s code that runs on its own a thousand times.

Key concepts:

Prompt = code in natural language · zero ambiguity · write for the machine, not for conversation.

What it is:

A reusable skeleton: define the AI’s role, provide the necessary context, specify the task, set the output format, and list the rules and constraints.

Why learn:

Ad hoc prompts produce inconsistent results. A fixed structure makes behavior predictable and the prompt easy to review and maintain.

Key concepts:

Role + context + task + format + rules · named sections · reusable template.

What it is:

Ask the AI to respond in JSON with fixed fields, then validate that response before using it—so the next step in the flow always receives the same structure.

Why learn:

Free-form text breaks automation: the next step doesn't know where each piece of information is. Validated JSON is what makes the AI output reliable enough to feed an automated action.

Key concepts:

JSON with a schema · validate before use · reject and retry if invalid.

What it is:

Guardrails are limits in the prompt and validation (what the AI can't do, what to reject); fallback is what happens when the AI isn't sure or breaks the rules: ask for confirmation, escalate, or use a default value.

Why learn:

AI makes mistakes and hallucinates. Guardrails and fallbacks are what keep a mistake from turning into an automatically executed irreversible action.

Key concepts:

Limit what AI can do · confidence field · safe path when uncertain.

What it is:

Use a field from the AI’s JSON output (e.g., category, priority) as the key for an IF/switch decision in the workflow, routing each case to a different action.

Why learn:

This is where AI stops being decoration and becomes the brain of the automation: it classifies, and the workflow branches. Knowing how to build this bridge is what makes automation truly intelligent.

Key concepts:

AI decides, workflow executes · categorical field as key · one branch per case + default branch.

What it is:

Build a set of test cases (including difficult and adversarial cases), run the prompt against all of them, measure the accuracy rate, and adjust the prompt until it stabilizes.

Why learn:

A prompt that works in one example can fail in ten. Only a test cycle with real cases gives you the confidence to let AI make decisions on its own in production.

Key concepts:

Test suite · difficult cases first · iterate until the success rate stabilizes.

View Full
← Track 2 · Audit Track 4 · Build →