Merged
Size
M
Change Breakdown
Feature35%
Bug Fix35%
Maintenance20%
Dependencies10%
#28418:rocket: Release 2.17.0

AI Gateway powers agent workflows in n8n 2.17.0

AI Gateway powers agent workflows in n8n 2.17.0
N8
n8n-assistant
·Apr 13, 2026

The release adds AI Gateway routing for AI nodes, expression-based role mapping with a drag-to-reorder UI editor, N8n Agent admin controls, and new Alibaba Cloud Model Studio and Moonshot Kimi nodes alongside 50 other fixes.

The n8n 2.17.0 release centers on AI Gateway, a unified routing layer for AI operations that now handles AI node requests and introduces a top-up billing flow for usage management. Expression-based role mapping arrives with a dedicated UI editor—administrators can define rules using drag-to-reorder interfaces, assign fallback roles, and provision access through dropdowns rather than manual assignments.

Sub-agents receive better context handling through structured briefings and debriefings, reducing misalignment between agent tasks. N8n Agent gains an admin settings page with an enable toggle and permissions controls, plus an opt-in enrollment flow.

The MCP Client tool node now prefixes tool names with their server name, preventing conflicts when multiple MCP servers expose tools with identical names. Connection lifecycle management is improved, closing MCP connections when node execution ends.

Security hardening addresses several vectors: MCP connection leaks are prevented by draining webhook close functions, tool access to the gateway settings directory is prohibited, and computer use connections are limited to cloud instances only.

Instance owners gain environment variable support for initial setup, reducing manual configuration overhead. The public API expands with project-scoped credential creation, projectId support when creating workflows, and a new insights summary endpoint.

Infrastructure improvements include SQLite advisory lock parity via in-process mutex, optimized audit queries to avoid PostgreSQL bind parameter limits, and a new missing-paired-item lint rule for community nodes.

Two new AI nodes join the ecosystem: Alibaba Cloud Model Studio and Moonshot Kimi Chat Model. Built-in node icons receive custom SVG updates.

Over 50 bug fixes resolve issues including Google Drive infinite pagination loops, HTTP Request Node multipart file uploads with binary streams, Box trigger pagination, GitLab binary data handling across storage modes, Microsoft Outlook polling after API errors, and Oracle Node stack overflows on large datasets.

View Original GitHub DescriptionFact Check

2.17.0 (2026-04-13)

Bug Fixes

  • Add credential auth and test for PostHog, NASA, Peekalink, Clearbit, Uptime Robot (#27957) (c1b5c96)
  • ai-builder: Expose credential account context to prevent prompt/credential mismatch (#28100) (c2fbf9d)
  • ai-builder: Improve post-build flow: setup, test, then publish (#28125) (4b3b40e)
  • ai-builder: Paginate list-credentials tool and drop unused fields (#28108) (4a3fc7d)
  • ai-builder: Unify post-build credential setup into single setup-workflow flow (#28273) (8f8b70a)
  • AWS DynamoDB Node: Add option to disable auto-parsing of numeric strings (#28093) (4b06720)
  • AWS ELB Node: Fix spelling typo 'sucess' → 'success' in RemoveListenerCertificates (#27703) (be45c08)
  • Box Node: Fix issue where Box trigger node was not paginating correctly (#27415) (4b05191)
  • core: Add projectId and projectName to log streaming events (#28310) (ebd279f)
  • core: Add streaming keepalive to prevent proxy timeout during long agent executions (#27853) (b0484a1)
  • core: Align VM expression engine error handler with legacy engine (#28166) (569ad49)
  • core: Avoid permanent deactivation on transient isolate errors (#28117) (94b463e)
  • core: Decrease workflow history compaction retention periods (#27763) (ccd4fd0)
  • core: Drain webhook close functions to prevent MCP connection leaks (#28384) (882dd9c)
  • core: Fix retry activation in multi-main bypassing exponential backoff (#28110) (2ed3f9c)
  • core: Improve audit queries to avoid PostgreSQL bind parameter limits (#27985) (9ab974b)
  • core: Improve audit queries to avoid PostgreSQL bind parameter limits (#27985) (dbe3f02)
  • core: Improve performance of the push/pull modal getStatus (#27188) (309a739)
  • core: Increase timing delays in workflow publish history tests (#28301) (b353143)
  • core: MCP tools called after workflow execution failure (#28021) (2e56ba1)
  • core: Omit empty scope from OAuth2 client credentials token request and improve error messaging (#28159) (3db52dc)
  • core: Propagate formidable parse errors in Form Trigger (#28217) (2d22c65)
  • core: Scope deferred tool processors per run (#28068) (a9bc92f)
  • core: Use closure-scoped evaluation contexts in VM expression bridge (#28337) (3d8da49)
  • editor: AI builder setup wizard positioning and popover collision (#27821) (aca249e)
  • editor: Improve popover positioning defaults and animations (#27919) (5a01bb3)
  • editor: Keep Back before Continue in MFA login footer (#27911) (72ebb43)
  • editor: Move save button to credential modal header (#28287) (9a8631d)
  • editor: Remove default for api params (#27914) (5e60272)
  • editor: Removing redundant stop of key propogation (#23464) (33282db)
  • editor: Skip only current step when clicking Later in workflow setup (#27929) (91a1282)
  • Facebook Lead Ads Node: Add missing pages_read_engagement scope (#27379) (290005e)
  • Gitlab Node: Handle binary data in all storage modes (#28363) (72d0f9b)
  • Google Drive Node: Fix infinite pagination loop in v1 API request (#28244) (b964ec9)
  • Handle normalization of JSON for SQLite / postgres (#28242) (8f2da63)
  • HTTP Request Node: Fix multipart/form-data file upload with binary streams (#28233) (5fb777e)
  • Http Request Node: Handle empty JSON responses (#27793) (1899a4e)
  • HubSpot Trigger Node: Add missing tickets scope to OAuth credentials (#27599) (d7d18a0)
  • ICalendar Node: Fix Convert to ICS failing when File Name option is set (#27712) (294868d)
  • If Node: Patches IF node when fields are missing (#28014) (1e22e0a)
  • MCP Client Node: Ensure MCP connections close when MCP Client node execution ends (#25742) (752a4e4)
  • Microsoft Outlook Node: Prevent poll from skipping messages after API errors (#28157) (853a740)
  • Microsoft Teams Node: Block requests from Microsoft Preview Service to prevent accidental approvals for "Send and Wait" (#28085) (4fab655)
  • Oracle Node: Resolve 'Maximum call stack size exceeded' on large datasets (#27037) (bd5a702)
  • Prohibit tool access to gateway settings directory (#28320) (dab714f)
  • Pushover Node: Replace duplicate Pushover Timestamp field with the missing TTL field (#11287) (c0c0f83)
  • Truncate long custom role names and add hover tooltip (#28191) (0d078c7)
  • Update lodash, lodash-es, and xmldom to latest stable versions (#28121) (09c9b11)

Features

  • Add AI Gateway support for AI nodes (#27593) (6e2d356)
  • AI Gateway Top Up Flow (#28113) (2c4b974)
  • ai-builder: Improve sub-agent context passing with structured briefings and debriefings (#28317) (e78f144)
  • ai-builder: Workflow evaluation framework with LLM mock execution (#27818) (2383749)
  • Alibaba Cloud Model Studio Node: Add new node (#27928) (1148d27)
  • API: Add insights summary endpoint to public API (#28099) (13d153e)
  • core: Add 'verify' option to installPackage handler and update … (#28257) (dfdc6d2)
  • core: Add audit logging for expression-based role assignments (#28018) (0ce8146)
  • core: Add in-process mutex for SQLite advisory lock parity (#28135) (4eb99b9)
  • core: Add missing-paired-item lint rule for community nodes (#28118) (e282fcd)
  • core: Add no-forbidden-lifecycle-scripts lint rule for community nodes (#28176) (4f725da)
  • core: Add telemetry events for AI builder journey (#28116) (8cdcab3)
  • core: Add telemetry for data redaction settings and reveal data (#28396) (21c0bf3)
  • core: Add userRole and feature-enabled telemetry for external secrets (#27431) (346d4f1)
  • core: Emit audit events for workflow activation on bootup (#28126) (4ccd727)
  • core: Enable credential creation per project in public API (#28240) (8cd75d2)
  • core: Enable instance owner setup via environment variables (#27859) (1b995cd)
  • core: Make VM expression bridge timeout and memory limit configurable (#27962) (f8c2127)
  • core: Support projectId when creating workflow via public API (#27884) (524166e)
  • Disable manual role management when expression-based mapping is enabled (#28105) (26d578d)
  • editor: Add expression-based role mapping plumbing (#27686) (4e6b4fc)
  • editor: Add instance rules editor with drag-to-reorder (#27688) (a6b051b)
  • editor: Add project rules, fallback role, remove mapping, save flow (#27689) (91fec34)
  • editor: Refactor role provisioning to two-dropdown layout (#28024) (4c3a150)
  • editor: Update built-in node icons to custom SVGs (#28104) (ea5b874)
  • MCP Client Tool Node: Prefix MCP tool names with server name (#28094) (f5402dd)
  • Moonshot Kimi Chat Model Node: Add Moonshot Kimi Chat Model sub-node (#28156) (5cbc973)
  • Moonshot Kimi Node: Add new node (#28189) (e30d2ee)
© 2026 · via Gitpulse