Skip to main content
Promptivo logoPromptivo

Claude prompt to build an n8n workflow

An n8n prompt: the trigger node (webhook, schedule or app event), the nodes in order, IF and Switch branches, expressions for data mapping, credentials, retry settings and an error workflow, for n8n cloud or self-hosted.

Tuned for Claude · structured role / context / task / output

Open in the builder →

Ready-to-use prompt

# Role
You are an experienced workflow-automation architect who designs reliable, maintainable automations on the platform in use: a precise trigger, exact connector and action names, explicit conditions, error handling, and a test plan.

# Context
Build an n8n workflow that receives support emails through IMAP, summarizes each one with an AI node, and posts a daily digest to Slack.


# Task
Design the automation described in the context above for the stated platform: the trigger, each action in order with exact connector or action names, the conditions and approvals, error handling and retries, and how to test it before it goes live.

# How to approach this
You reason carefully on your own. Work the problem through internally and return a clear, well-structured answer — there's no need to spell out scratch work in <thinking> tags. Use that internal reasoning to catch edge cases before you commit, and scale the depth of thought to the difficulty of the task.

- Lay the automation out in order: trigger, each action, the conditions and branches, error handling, then a test plan.

Before you finalize, verify that the trigger fires on exactly the intended event and nothing else; every action names the real connector, action, or command for the stated platform; the first failure has a handling path: retry, notify, or stop; the test plan covers the main path and that first failure.

# Constraints
- Do not invent connector, action, or command names. If unsure one exists, say so and use the closest real alternative.
- Use clear markdown sections and headings. Favor well-structured, thorough output over terse output.
- If a critical detail is missing or genuinely ambiguous, ask a brief clarifying question before continuing; otherwise state your interpretation in one line and proceed.
- Do not open with "I'd be happy to help" or any variant. Just start.
- Do not add "Note:", "It's worth mentioning", or "I should point out" framing — put facts in the deliverable, not in disclaimers around it.
- Treat clearly benign tasks as safe and complete them directly.
- Deliver the result directly — no apologies or meta-commentary about the prompt itself.

# Output format
Return only the requested output. If multiple distinct variants would clearly help, label them (e.g., "Option A", "Option B").

# Done when
- the output fully answers the goal in the Context section with no missing parts

Customize this prompt

Answer a few quick questions and Promptivo re-tunes the prompt above to your exact situation.

Start the interview →

Why this prompt works

n8n workflows are node graphs, so the prompt asks for each node by name and the expression that maps data between them.

Retry on fail and error workflows are set per node and per workflow. The prompt asks for both instead of assuming a failed execution is noticed.

Cloud and self-hosted differ in available nodes and limits. The prompt asks which one the workflow runs on.

Using this prompt in Claude

For n8n workflow, Claude is a strong choice — it's especially good at careful step-by-step reasoning and cleanly structured long-form writing. Promptivo formats this prompt the way Claude works best: explicit step-by-step thinking and clearly delimited output sections.

Paste it into claude.ai or the Claude desktop app, then replace any bracketed details with your own. Claude sometimes opens with caveats, so this prompt tells it to lead with the answer and keep each section clearly delimited.

Tuned for Claude: how it differs

ModelWhat Promptivo changes
ChatGPTConcise instructions, strict format adherence, no preamble.
ClaudeExplicit step-by-step thinking and clearly delimited output sections.
GeminiPrecise phrasing with brief reasoning cues where they improve accuracy.
CopilotOffice-ready output that pastes cleanly into Word, Outlook, and Excel, with tables and numbered steps.

Questions, answered

What should an n8n prompt include?
The trigger node, each node in order with its app and operation, IF or Switch conditions, the expressions used for mapping, the credentials each node needs, retry settings, and whether it runs on cloud or self-hosted.
How do I handle errors in n8n?
Set an Error Workflow in the workflow settings, enable Retry On Fail on nodes that call external services, and use the Error Trigger node to notify. The prompt asks for these.
Can n8n run code?
Yes. The Code node runs JavaScript (and Python on some setups) inside the workflow, which is useful when a mapping is too complex for expressions.
Is Claude good for n8n workflow?
Yes. Claude handles n8n workflow well thanks to its careful step-by-step reasoning and cleanly structured long-form writing, and Promptivo tunes the prompt to match — explicit step-by-step thinking and clearly delimited output sections. Paste it into claude.ai or the Claude desktop app.

Related prompts