Merged
Size
S
Change Breakdown
Bug Fix65%
Refactor35%
#28273fix(ai-builder): Unify post-build credential setup into single setup-workflow flow

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-workflow instead of the old setup-credentialsapply-workflow-credentials chain
  • Add explicit deferral guardrail in system prompt: when setup-workflow returns deferred: true, do not retry with a different setup tool
  • Tighten system prompt to clarify setup-credentials is 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.
© 2026 · via Gitpulse