Post-build credential prompts unified into single flow
Workflows built with AI now route all credential setup through one unified flow instead of showing users two separate prompts in sequence.
After building a workflow with AI, users were previously shown two setup prompts in sequence — first a credential picker, then the full setup panel. The builder sub-agent has been refactored to route all post-build configuration through a single setup-workflow call instead of chaining setup-credentials to apply-workflow-credentials. When users choose to defer setup, the system now respects that decision without retrying with alternative setup tools. This applies to the AI builder in the @n8n/instance-ai package, specifically the workflow loop and builder agent tooling.
View Original GitHub Description
Summary
- Remove credential finalization (
setup-credentials+apply-workflow-credentials) from the builder sub-agent — the builder now only builds and verifies - Update workflow loop guidance to point to
setup-workflowinstead of the oldsetup-credentials→apply-workflow-credentialschain - Add explicit deferral guardrail in system prompt: when
setup-workflowreturnsdeferred: true, do not retry with a different setup tool - Tighten system prompt to clarify
setup-credentialsis only for standalone credential creation outside workflow context
Fixes duplicate setup prompts where users saw first a credential picker (setup-credentials), then the full setup panel (setup-workflow) after building a workflow.
- I have seen this code, I have run this code, and I take responsibility for this code.