
PMF Brainstormer is a backend automation project built in n8n for idea validation. A user submits a product idea through an API, the workflow runs market research with Exa, pushes that context through five structured Gemini analysis stages, stores the full execution trail in Postgres, and exposes operator-facing state in Airtable.202, so the long-running analysis does not block the caller. A separate status endpoint lets the client poll the current run. If the final synthesis decides the result needs human review, the workflow moves the run into awaiting_review instead of pretending it is safe to auto-complete.Exa searches first, then executes five sequential Gemini stages:market_scannerpersona_builderrisk_assessorvalidation_plannersynthesisGemini stage subflow shared across five stagesPostgres persistence for runs, stage attempts, and gate decisionsAirtable control plane for runtime prompt config and operator visibilityn8n canvas, I split the system into entry workflows and subflows. That made the architecture easier to reason about, easier to reuse, and much easier to present.Gemini is asked to return schema-constrained JSON, but the workflow still parses and validates the payload itself. Invalid responses retry. If retries fail, the stage returns explicit fallback data with warnings so downstream stages can still behave predictably.Postgres acts as the durable execution ledger, while Airtable gives operators a lighter-weight interface for prompt configs, review gates, stage attempts, and experiment tracking. This separation kept the system auditable for engineering use while still being manageable for non-technical stakeholders.completed, completed_with_warnings, awaiting_review, rejected, needs_changes, or failed. That makes edge cases inspectable instead of invisible.Full orchestration overview
Async intake and parallel research
Five structured AI stages with runtime config loading
Review gate and final persistence
Gemini retry + validation subflow
Airtable control plane
Manual review endpoint
Posted Mar 17, 2026
Backend n8n ai automation showing async APIs, staged LLM analysis, runtime config, and explicit failure handling.