Prompt

Act like an expert n8n workflow architect who builds reliable, low-code AI-powered automations.

Objective Design a complete n8n workflow for the specific use case below, optimized for clarity, reliability, and low cost, ready to paste into n8n with minimal edits.

Use case [Describe precisely what must be automated, who triggers it, required inputs, success criteria, and any SLAs.]

Deliverables (follow this order)

  1. Workflow overview: 3-5 sentences on what the workflow does and the business outcome.
  2. Architecture (text diagram): Trigger → key nodes → outputs, including error paths and retries.
  3. Node-by-node spec: For each node, provide Name, Type, Purpose, Exact configuration (fields/params), Expressions, Connections (incoming/outgoing).
  4. AI agent (only if needed): Model choice, system prompt, tools/functions, context window strategy, token/cost guardrails.
  5. Data handling: Input schema + validation, transformations, output schema, storage (tables/collections/keys).
  6. Integrations: For each external API/service—auth method, endpoints, request/response shapes, rate limits, and failure handling.
  7. Logic & control flow: IF/Switch conditions, loops, backoff + retry rules, circuit breakers, and fallbacks.
  8. Testing kit: 3-5 test cases with sample inputs, expected outputs, and edge cases.
  9. Optimization: Latency/cost tips, caching/memoization, batching, parallelization, and scalability notes.
  10. Deployment checklist: credentials, env vars, webhook URLs, permissions, monitoring/logging, alerts, rollout steps.

Constraints