Install the ReyGrid community node in n8n to chat with your RAG agents, run connected AI tools automatically, and cancel tool calls.
The ReyGrid N8N node is published on npm as the package n8n-nodes-reygrid. It is a community node for n8n. It adds a single ReyGrid node to your workflows that calls the ReyGrid REST API.
https://reygrid.com/api/v1 (fixed, not configurable)
Authentication
ReyGrid API key sent as a Bearer token
What it does
Chat → Send Message
Sends a message to an agent (POST /agents/{agentId}/chat). AI tools connected to the node are executed automatically until the agent returns its final answer.
Tool Call → Cancel
Cancels a tool call in a conversation.
Install
1
Open Community nodes
In n8n, go to Settings → Community nodes and click Install a community node.
Settings → Community nodes
2
Enter the package name
In npm Package Name, enter:
n8n-nodes-reygrid
Tick I understand the risks of installing unverified code from a public source, then click Install.
Install community nodes dialog
3
Find the node
When the installation finishes, open a workflow, click +, and search for ReyGrid.
Community nodes are installed by an n8n instance owner or admin. If you don’t see Community nodes in Settings, ask the person who manages your n8n instance.
Install from the command line instead
On a self-hosted instance you can install the package into n8n’s custom nodes folder and restart n8n:
cd ~/.n8n/nodesnpm install n8n-nodes-reygrid
The folder location can differ depending on how you run n8n (for example in Docker).
Set up credentials
Create a ReyGrid API credential the first time you add the node.
Field
Description
API Key
Your ReyGrid API key. Sent as Authorization: Bearer <API Key>.
n8n tests the credential with GET /validate. See Authentication for how keys work.
Use it in a workflow
The example below receives a request on a Webhook node and sends it to a ReyGrid agent. A Calculator tool is connected to the node’s Tools input, so the agent can use it.
ReyGrid node with a Calculator tool connected to its Tools input
Node reference
Chat → Send Message
Parameter
Required
Description
Agent ID
yes
The ID of the agent.
Message
yes
The message to send. It can’t be empty.
User ID
no
Stable user identifier used as a persistent conversation. When set, Conversation ID is ignored.
Conversation ID
no
An existing conversation. Ignored when User ID is set. Leave both empty to start a new conversation.
Both identifiers behave as described in Persistent conversations. If you use only Conversation ID, the node follows the conversation ID returned by the API for the remaining rounds of the same run.Options
Option
Default
Description
Include Tool Calls in Output
off
Adds a toolCalls array (name, arguments, output) describing every tool executed during the run.
Max Tool Iterations
10
Maximum number of tool-execution rounds. When exceeded, pending tool calls are cancelled and the node fails.
On Tool Error
Send Error to Agent
Send Error to Agent returns the error text as the tool result so the agent can recover. Cancel Tool Calls and Stop cancels the pending tool calls through the API and returns the last response.
Automatic tool loop
Tools connected to the Tools input are sent to the agent as function tools. The node then repeats the following until the agent has no more tool calls:
Send the message (or the previous tool results) to the agent.
If the response contains tool calls, run the matching connected tools.
Send the tool outputs back as results and continue.
Tool calls are read from output.tool_calls, output.reply.tool_calls, or tool_calls in the response. If the agent asks for a tool that isn’t connected, or a tool fails, the behavior follows On Tool Error. Connected tool names must be unique.
The OpenAPI specification doesn’t describe where a chat response carries tool calls. This page documents what the node does, not a guaranteed API contract. See Tool calling.
usage.credits is the sum over every request made during the tool loop.
toolCalls is added when Include Tool Calls in Output is on.
canceledToolCalls (IDs the API confirmed as cancelled) is added when On Tool Error is Cancel Tool Calls and Stop and a tool failed.
Tool Call → Cancel
Cancels a tool call. Calls POST /agents/{agentId}/conversations/{ref}/tool/cancel/{toolCallId}.
Parameter
Required
Description
Agent ID
yes
The ID of the agent.
Conversation ID or User ID
yes
The conversationRef: a conversation ID or a persistent user ID.
Tool Call ID
yes
The ID of the tool call to cancel.
The output is the API response, { "success": true, "canceled": true }.
Errors
API failures are shown as n8n node errors. The message comes from the API error body (code: message for most errors, or the error text for 401). Turn on Continue On Fail in the node settings to receive { "error": "…" } for a failed item instead of stopping the workflow.See Errors for the status codes.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ReyGrid Docs","description":"Explore the ReyGrid platform, get started with an agent, and build with the REST API and SDKs.","colors":{"primary":"#ff326f","light":"#ff326f","dark":"#e91e5b"},"logo":{"light":"https://mintcdn.com/reygrid/iujN-VFq8EfeQvLD/images/logo.png?fit=max\u0026auto=format\u0026n=iujN-VFq8EfeQvLD\u0026q=85\u0026s=9856b684f77612983651cbfbc8e760dd","dark":"https://mintcdn.com/reygrid/iujN-VFq8EfeQvLD/images/logo-dark.png?fit=max\u0026auto=format\u0026n=iujN-VFq8EfeQvLD\u0026q=85\u0026s=b22d227416941581a11840cc65119d7d","href":"https://reygrid.com/"},"favicon":"https://mintcdn.com/reygrid/WbX1W-RLa08ZM9ij/images/favicon.ico?fit=max\u0026auto=format\u0026n=WbX1W-RLa08ZM9ij\u0026q=85\u0026s=91a7dfdc8fd72be85e885959d3b0eac3","api":{"openapi":"openapi.yaml","playground":{"display":"interactive"},"examples":{"defaults":"all","languages":["curl","python","javascript"]}},"appearance":{"default":"system","strict":false},"navbar":{"links":[{"href":"https://github.com/reygrid/reygrid-sdk-python","label":"Python SDK"},{"href":"https://github.com/reygrid/reygrid-sdk-typescript","label":"TypeScript SDK"}],"primary":{"type":"button","label":"Start building","href":"/quickstart"}},"footer":{"socials":{"github":"https://github.com/reygrid"}},"seo":{"metatags":{"og:site_name":"ReyGrid Docs","og:type":"website","og:image":"https://docs.reygrid.com/images/social-preview.png","twitter:image":"https://docs.reygrid.com/images/social-preview.png"},"indexing":"navigable"},"styling":{"codeblocks":"system","latex":false},"contextual":{"options":["copy"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"reygrid","hasAudioNarration":false,"actualSubdomain":"reygrid","customDomains":["docs.reygrid.com"],"gitSource":{"type":"github","owner":"0xroony","repo":"rey-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6afee1406d84f03323a285ac","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"REST API","count":31},{"language":"default","tag":"Integrations","count":16},{"language":"default","tag":"Documentation","count":11},{"language":"default","tag":"Python SDK","count":7},{"language":"default","tag":"TypeScript SDK","count":7},{"language":"default","tag":"Knowledge","count":6},{"language":"default","tag":"Build your agent","count":4},{"language":"default","tag":"Guides","count":4},{"language":"default","tag":"Overview","count":3},{"language":"default","tag":"Launch and operate","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--rg-accent: #ff326f;--rg-accent-deep: #e91e5b;--rg-muted: #74747c;--rg-line: #e7e7eb}.rg-eyebrow{display:inline-flex;margin-bottom:0.9rem;color:var(--rg-accent);font-size:0.72rem;font-weight:700;letter-spacing:0.12em;text-transform:uppercase}.rg-hero{position:relative;overflow:hidden;margin:1rem 0 2.5rem;padding:3.25rem 2.5rem 3rem;border:1px solid rgba(128, 128, 128, 0.16);border-radius:1.1rem;background:linear-gradient(125deg, rgba(255, 50, 111, 0.09), rgba(128, 128, 128, 0.035) 62%)}.rg-hero h1{max-width:52rem;margin:0 0 0.85rem;font-size:clamp(2.15rem, 5vw, 3.35rem);line-height:1.08;letter-spacing:-0.045em}.rg-hero p{max-width:46rem;margin:0 0 1.5rem;font-size:1.1rem;line-height:1.7;color:var(--rg-muted)}.rg-hero .rg-actions{margin-top:1.6rem;display:flex;flex-wrap:wrap;gap:0.7rem}.rg-btn{display:inline-flex;min-height:2.7rem;align-items:center;justify-content:center;padding:0.6rem 1rem;border:1px solid transparent;border-radius:0.55rem;font-weight:600;text-decoration:none!important;border-bottom:none!important;transition:background-color 150ms ease, border-color 150ms ease, transform 150ms ease}.rg-btn:hover{transform:translateY(-1px)}.rg-btn-primary{color:#fff!important;background:var(--rg-accent)}.rg-btn-primary:hover{background:var(--rg-accent-deep)}.rg-btn-secondary{border-color:rgba(128, 128, 128, 0.3);color:inherit!important;background:rgba(128, 128, 128, 0.12);box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.025)}.rg-btn-secondary:hover{border-color:rgba(128, 128, 128, 0.5);background:rgba(128, 128, 128, 0.18)}a[href*=\"reygrid.com\"]{min-height:86px!important}a[href*=\"reygrid.com\"] img,img[src*=\"/images/logo\"]{width:auto!important;height:86px!important;min-height:86px!important;max-height:none!important;object-fit:contain}pre,table{max-width:100%}table{display:block;overflow-x:auto}table:has(a[href^=\"/api-reference/\"]){display:table;overflow-x:visible}table a[href^=\"/api-reference/\"]{display:inline-block;max-width:min(42vw, 12rem);overflow-x:auto;white-space:nowrap;vertical-align:bottom;overscroll-behavior-x:contain;scrollbar-width:thin}@media (max-width: 768px){.rg-hero{margin-top:0.5rem;padding:2.1rem 1.2rem}.rg-btn{width:100%}}"}]}
{"page":{"pagePath":"integrations/n8n/n8n-nodes-reygrid","slug":"/integrations/n8n/n8n-nodes-reygrid","pageMetadata":{"title":"N8N Node","sidebarTitle":"N8N Node","description":"Install the ReyGrid community node in n8n to chat with your RAG agents, run connected AI tools automatically, and cancel tool calls.","href":"/integrations/n8n/n8n-nodes-reygrid"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Install the ReyGrid community node in n8n to chat with your RAG agents, run connected AI tools automatically, and cancel tool calls.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,Card,CardGroup,CodeBlock,Frame,Heading,Info,Note,OptimizedImage,Step,Steps,Table}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The ReyGrid N8N node is published on npm as the package `,_jsx(_components.code,{children:`n8n-nodes-reygrid`}),`. It is a community node for `,_jsx(_components.a,{href:`https://n8n.io`,children:`n8n`}),`. It adds a single `,_jsx(_components.strong,{children:`ReyGrid`}),` node to your workflows that calls the `,_jsx(_components.a,{href:`/rest-api/overview`,children:`ReyGrid REST API`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`npm package`}),_jsx(_components.td,{children:_jsx(_components.a,{href:`https://www.npmjs.com/package/n8n-nodes-reygrid`,children:_jsx(_components.code,{children:`n8n-nodes-reygrid`})})})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Version documented`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1.1.0`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`API server`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`https://reygrid.com/api/v1`}),` (fixed, not configurable)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Authentication`}),_jsx(_components.td,{children:`ReyGrid API key sent as a Bearer token`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`what-it-does`,children:`What it does`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Chat → Send Message`,icon:`message`,href:`/api-reference/chat-with-an-agent`,children:_jsxs(_components.p,{children:[`Sends a message to an agent (`,_jsx(_components.code,{children:`POST /agents/{agentId}/chat`}),`). AI tools connected to the node are executed automatically until the agent returns its final answer.`]})}),_jsx(Card,{title:`Tool Call → Cancel`,icon:`ban`,href:`/api-reference/cancel-a-tool-call`,children:_jsx(_components.p,{children:`Cancels a tool call in a conversation.`})})]}),`\n`,_jsx(Heading,{level:`2`,id:`install`,children:`Install`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Open Community nodes`,children:[_jsxs(_components.p,{children:[`In n8n, go to `,_jsx(_components.strong,{children:`Settings → Community nodes`}),` and click `,_jsx(_components.strong,{children:`Install a community node`}),`.`]}),_jsx(Frame,{caption:`Settings → Community nodes`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-community-nodes.png?fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=0a002d82b1a665cd91cb1c7b242cb3ee`,alt:`The n8n Community nodes settings page with the Install a community node button`,\"data-og-width\":`1920`,width:`1920`,\"data-og-height\":`887`,height:`887`,\"data-path\":`images/n8n-community-nodes.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-community-nodes.png?w=280\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=19c5a0da11921a2405c518af63cc6424 280w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-community-nodes.png?w=560\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=9103e96c0ffb7b806061621fecc56cd4 560w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-community-nodes.png?w=840\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=c70fcb14be8bf4b6396b97c5251dee98 840w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-community-nodes.png?w=1100\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=0052cb71f4d4bd73f8081893efe7a063 1100w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-community-nodes.png?w=1650\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=0b1ea41ca4115177dbe0ff4dc5db2ffd 1650w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-community-nodes.png?w=2500\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=8510bf165beda4923db564bafb5330e8 2500w`})})]}),_jsxs(Step,{title:`Enter the package name`,children:[_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`npm Package Name`}),`, enter:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`n8n-nodes-reygrid`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsxs(_components.p,{children:[`Tick `,_jsx(_components.strong,{children:`I understand the risks of installing unverified code from a public source`}),`, then click `,_jsx(_components.strong,{children:`Install`}),`.`]}),_jsx(Frame,{caption:`Install community nodes dialog`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-install-dialog.png?fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=7a965a86fce4d71ab11a5431c7cefff7`,alt:`The Install community nodes dialog with npm Package Name n8n-nodes-reygrid and the risk checkbox ticked`,\"data-og-width\":`1920`,width:`1920`,\"data-og-height\":`889`,height:`889`,\"data-path\":`images/n8n-install-dialog.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-install-dialog.png?w=280\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=cc99eba83ac094061f6bc3d058ed6449 280w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-install-dialog.png?w=560\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=e2b8fc4dfbad3deb65a1bd640128dad0 560w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-install-dialog.png?w=840\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=88dee2bcf2e55fbd37a52fd89da94689 840w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-install-dialog.png?w=1100\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=321b6bed70cc557d74f7801206bc05aa 1100w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-install-dialog.png?w=1650\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=6f5f8c78735e9d930540ed60b95a768f 1650w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-install-dialog.png?w=2500\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=402817c50f508db7916a4652d03bcf7d 2500w`})})]}),_jsx(Step,{title:`Find the node`,children:_jsxs(_components.p,{children:[`When the installation finishes, open a workflow, click `,_jsx(_components.strong,{children:`+`}),`, and search for `,_jsx(_components.strong,{children:`ReyGrid`}),`.`]})})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Community nodes are installed by an n8n instance owner or admin. If you don’t see `,_jsx(_components.strong,{children:`Community nodes`}),` in Settings, ask the person who manages your n8n instance.`]})}),`\n`,_jsxs(Accordion,{title:`Install from the command line instead`,id:`install-from-the-command-line-instead`,children:[_jsx(_components.p,{children:`On a self-hosted instance you can install the package into n8n’s custom nodes folder and restart n8n:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ~/.n8n/nodes`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` n8n-nodes-reygrid`})]}),`\n`]})})}),_jsx(_components.p,{children:`The folder location can differ depending on how you run n8n (for example in Docker).`})]}),`\n`,_jsx(Heading,{level:`2`,id:`set-up-credentials`,children:`Set up credentials`}),`\n`,_jsxs(_components.p,{children:[`Create a `,_jsx(_components.strong,{children:`ReyGrid API`}),` credential the first time you add the node.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`API Key`})}),_jsxs(_components.td,{children:[`Your ReyGrid API key. Sent as `,_jsx(_components.code,{children:`Authorization: Bearer \u003cAPI Key>`}),`.`]})]})})]}),`\n`,_jsxs(_components.p,{children:[`n8n tests the credential with `,_jsx(_components.code,{children:`GET /validate`}),`. See `,_jsx(_components.a,{href:`/rest-api/authentication`,children:`Authentication`}),` for how keys work.`]}),`\n`,_jsx(Heading,{level:`2`,id:`use-it-in-a-workflow`,children:`Use it in a workflow`}),`\n`,_jsxs(_components.p,{children:[`The example below receives a request on a `,_jsx(_components.strong,{children:`Webhook`}),` node and sends it to a ReyGrid agent. A `,_jsx(_components.strong,{children:`Calculator`}),` tool is connected to the node’s `,_jsx(_components.strong,{children:`Tools`}),` input, so the agent can use it.`]}),`\n`,_jsx(Frame,{caption:`ReyGrid node with a Calculator tool connected to its Tools input`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-workflow.png?fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=46908a469fd03d49cda7bd762f1078ab`,alt:`An n8n workflow: a Webhook node feeding a ReyGrid node named Send a message to an agent, with a Calculator tool attached to the Tools input`,\"data-og-width\":`1920`,width:`1920`,\"data-og-height\":`894`,height:`894`,\"data-path\":`images/n8n-workflow.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-workflow.png?w=280\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=44d318b9c35e28973f323e804c9d408f 280w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-workflow.png?w=560\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=329822184ece761a5e2ab804371fbb93 560w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-workflow.png?w=840\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=147d0fe7a8f8d7488aa7cec6b122199c 840w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-workflow.png?w=1100\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=bd319ae375ff3be5e6be03e6c176ebf4 1100w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-workflow.png?w=1650\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=a1445155ecc6e2514bc9808ea0db3dda 1650w, https://mintcdn.com/reygrid/lQuFdx2qoyAhj4-S/images/n8n-workflow.png?w=2500\u0026fit=max\u0026auto=format\u0026n=lQuFdx2qoyAhj4-S\u0026q=85\u0026s=0c5c40cb3519da1738170faa5ba0a87b 2500w`})}),`\n`,_jsx(Heading,{level:`2`,id:`node-reference`,children:`Node reference`}),`\n`,_jsx(Heading,{level:`3`,id:`chat-→-send-message`,children:`Chat → Send Message`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Agent ID`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`The ID of the agent.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Message`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`The message to send. It can’t be empty.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`User ID`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[`Stable user identifier used as a persistent conversation. When set, `,_jsx(_components.strong,{children:`Conversation ID`}),` is ignored.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Conversation ID`})}),_jsx(_components.td,{children:`no`}),_jsxs(_components.td,{children:[`An existing conversation. Ignored when `,_jsx(_components.strong,{children:`User ID`}),` is set. Leave both empty to start a new conversation.`]})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Both identifiers behave as described in `,_jsx(_components.a,{href:`/rest-api/conversations`,children:`Persistent conversations`}),`. If you use only `,_jsx(_components.strong,{children:`Conversation ID`}),`, the node follows the conversation ID returned by the API for the remaining rounds of the same run.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Options`})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Option`}),_jsx(_components.th,{children:`Default`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Include Tool Calls in Output`})}),_jsx(_components.td,{children:`off`}),_jsxs(_components.td,{children:[`Adds a `,_jsx(_components.code,{children:`toolCalls`}),` array (name, arguments, output) describing every tool executed during the run.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Max Tool Iterations`})}),_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`10`})}),_jsx(_components.td,{children:`Maximum number of tool-execution rounds. When exceeded, pending tool calls are cancelled and the node fails.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`On Tool Error`})}),_jsx(_components.td,{children:`Send Error to Agent`}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Send Error to Agent`}),` returns the error text as the tool result so the agent can recover. `,_jsx(_components.strong,{children:`Cancel Tool Calls and Stop`}),` cancels the pending tool calls through the API and returns the last response.`]})]})]})]}),`\n`,_jsx(Heading,{level:`4`,id:`automatic-tool-loop`,children:`Automatic tool loop`}),`\n`,_jsxs(_components.p,{children:[`Tools connected to the `,_jsx(_components.strong,{children:`Tools`}),` input are sent to the agent as function tools. The node then repeats the following until the agent has no more tool calls:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Send the message (or the previous tool results) to the agent.`}),`\n`,_jsx(_components.li,{children:`If the response contains tool calls, run the matching connected tools.`}),`\n`,_jsxs(_components.li,{children:[`Send the tool outputs back as `,_jsx(_components.code,{children:`results`}),` and continue.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Tool calls are read from `,_jsx(_components.code,{children:`output.tool_calls`}),`, `,_jsx(_components.code,{children:`output.reply.tool_calls`}),`, or `,_jsx(_components.code,{children:`tool_calls`}),` in the response. If the agent asks for a tool that isn’t connected, or a tool fails, the behavior follows `,_jsx(_components.strong,{children:`On Tool Error`}),`. Connected tool names must be unique.`]}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`The OpenAPI specification doesn’t describe where a chat response carries tool calls. This page documents what the node does, not a guaranteed API contract. See `,_jsx(_components.a,{href:`/rest-api/tool-calling`,children:`Tool calling`}),`.`]})}),`\n`,_jsx(Heading,{level:`4`,id:`output`,children:`Output`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"conversationId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"userId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"messageId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"output\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"reply\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"content\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"…\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"finish_reason\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"stop\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"usage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"credits\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`usage.credits`}),` is the `,_jsx(_components.strong,{children:`sum`}),` over every request made during the tool loop.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`toolCalls`}),` is added when `,_jsx(_components.strong,{children:`Include Tool Calls in Output`}),` is on.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`canceledToolCalls`}),` (IDs the API confirmed as cancelled) is added when `,_jsx(_components.strong,{children:`On Tool Error`}),` is `,_jsx(_components.strong,{children:`Cancel Tool Calls and Stop`}),` and a tool failed.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`tool-call-→-cancel`,children:`Tool Call → Cancel`}),`\n`,_jsxs(_components.p,{children:[`Cancels a tool call. Calls `,_jsx(_components.code,{children:`POST /agents/{agentId}/conversations/{ref}/tool/cancel/{toolCallId}`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Agent ID`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`The ID of the agent.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Conversation ID or User ID`})}),_jsx(_components.td,{children:`yes`}),_jsxs(_components.td,{children:[`The `,_jsx(_components.code,{children:`conversationRef`}),`: a conversation ID or a persistent user ID.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Tool Call ID`})}),_jsx(_components.td,{children:`yes`}),_jsx(_components.td,{children:`The ID of the tool call to cancel.`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`The output is the API response, `,_jsx(_components.code,{children:`{ \"success\": true, \"canceled\": true }`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(_components.p,{children:[`API failures are shown as n8n node errors. The message comes from the API error body (`,_jsx(_components.code,{children:`code: message`}),` for most errors, or the `,_jsx(_components.code,{children:`error`}),` text for 401). Turn on `,_jsx(_components.strong,{children:`Continue On Fail`}),` in the node settings to receive `,_jsx(_components.code,{children:`{ \"error\": \"…\" }`}),` for a failed item instead of stopping the workflow.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/rest-api/errors`,children:`Errors`}),` for the status codes.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"N8N Node","sidebarTitle":"N8N Node","description":"Install the ReyGrid community node in n8n to chat with your RAG agents, run connected AI tools automatically, and cancel tool calls.","href":"/integrations/n8n/n8n-nodes-reygrid"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What it does","slug":"what-it-does","depth":2,"children":[]},{"title":"Install","slug":"install","depth":2,"children":[]},{"title":"Set up credentials","slug":"set-up-credentials","depth":2,"children":[]},{"title":"Use it in a workflow","slug":"use-it-in-a-workflow","depth":2,"children":[]},{"title":"Node reference","slug":"node-reference","depth":2,"children":[{"title":"Chat → Send Message","slug":"chat-→-send-message","depth":3,"children":[]},{"title":"Automatic tool loop","slug":"automatic-tool-loop","depth":4,"children":[]},{"title":"Output","slug":"output","depth":4,"children":[]},{"title":"Tool Call → Cancel","slug":"tool-call-→-cancel","depth":3,"children":[]}]},{"title":"Errors","slug":"errors","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"reygrid","siteName":"ReyGrid Docs","title":"N8N Node - ReyGrid Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-18T13:58:03.509Z","originalFileLocation":"integrations/n8n/n8n-nodes-reygrid.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Install the ReyGrid community node in n8n to chat with your RAG agents, run connected AI tools automatically, and cancel tool calls.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ReyGrid Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/reygrid/71JhXbTWVS5QWXk1/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/reygrid/71JhXbTWVS5QWXk1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/reygrid/71JhXbTWVS5QWXk1/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/reygrid/71JhXbTWVS5QWXk1/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/reygrid/71JhXbTWVS5QWXk1/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/reygrid/71JhXbTWVS5QWXk1/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/reygrid/71JhXbTWVS5QWXk1/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/reygrid/71JhXbTWVS5QWXk1/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/reygrid/71JhXbTWVS5QWXk1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"N8N Node - ReyGrid Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Install the ReyGrid community node in n8n to chat with your RAG agents, run connected AI tools automatically, and cancel tool calls.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ReyGrid Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.reygrid.com/integrations/n8n/n8n-nodes-reygrid\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://docs.reygrid.com/images/social-preview.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"N8N Node - ReyGrid Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Install the ReyGrid community node in n8n to chat with your RAG agents, run connected AI tools automatically, and cancel tool calls.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://docs.reygrid.com/images/social-preview.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/reygrid/71JhXbTWVS5QWXk1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ReyGrid Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff326f\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.reygrid.com/integrations/n8n/n8n-nodes-reygrid\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/integrations/n8n/n8n-nodes-reygrid.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.reygrid.com/#organization\",\"name\":\"ReyGrid Docs\",\"url\":\"https://docs.reygrid.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/reygrid/iujN-VFq8EfeQvLD/images/logo.png?fit=max\u0026auto=format\u0026n=iujN-VFq8EfeQvLD\u0026q=85\u0026s=9856b684f77612983651cbfbc8e760dd\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.reygrid.com#website\",\"name\":\"ReyGrid Docs\",\"url\":\"https://docs.reygrid.com\",\"publisher\":{\"@id\":\"https://docs.reygrid.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.reygrid.com/integrations/n8n/n8n-nodes-reygrid#webpage\",\"url\":\"https://docs.reygrid.com/integrations/n8n/n8n-nodes-reygrid\",\"name\":\"N8N Node\",\"description\":\"Install the ReyGrid community node in n8n to chat with your RAG agents, run connected AI tools automatically, and cancel tool calls.\",\"dateModified\":\"2026-11-18T13:58:03.509Z\",\"isPartOf\":{\"@id\":\"https://docs.reygrid.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.reygrid.com/integrations/n8n/n8n-nodes-reygrid#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.reygrid.com/integrations/n8n/n8n-nodes-reygrid#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"ReyGrid Docs\",\"item\":\"https://docs.reygrid.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"N8N Node\",\"item\":\"https://docs.reygrid.com/integrations/n8n/n8n-nodes-reygrid\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.reygrid.com/integrations/n8n/n8n-nodes-reygrid#article\",\"headline\":\"N8N Node\",\"name\":\"N8N Node\",\"description\":\"Install the ReyGrid community node in n8n to chat with your RAG agents, run connected AI tools automatically, and cancel tool calls.\",\"url\":\"https://docs.reygrid.com/integrations/n8n/n8n-nodes-reygrid\",\"mainEntityOfPage\":{\"@id\":\"https://docs.reygrid.com/integrations/n8n/n8n-nodes-reygrid#webpage\"},\"image\":\"https://docs.reygrid.com/images/social-preview.png\",\"dateModified\":\"2026-11-18T13:58:03.509Z\",\"publisher\":{\"@id\":\"https://docs.reygrid.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.reygrid.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ReyGrid Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ReyGrid Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/integrations/n8n/n8n-nodes-reygrid.md","siteName":"ReyGrid Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"REST API","pages":[{"title":"REST API","href":"/rest-api/overview"}]},{"tab":"Integrations","groups":[{"group":"Overview","pages":[{"title":"Integrations overview","href":"/integrations/overview"}]},{"group":"Python SDK","icon":"python","pages":[{"title":"Installation","href":"/integrations/python/installation"},{"title":"Quickstart","href":"/integrations/python/quickstart"},{"title":"Configuration","href":"/integrations/python/configuration"},{"title":"Authentication","href":"/integrations/python/authentication"},{"title":"Usage","href":"/integrations/python/usage"},{"title":"Streaming","href":"/integrations/python/streaming"},{"title":"Error handling","href":"/integrations/python/error-handling"}]},{"group":"TypeScript SDK","icon":"js","pages":[{"title":"Installation","href":"/integrations/typescript/installation"},{"title":"Quickstart","href":"/integrations/typescript/quickstart"},{"title":"Configuration","href":"/integrations/typescript/configuration"},{"title":"Authentication","href":"/integrations/typescript/authentication"},{"title":"Usage","href":"/integrations/typescript/usage"},{"title":"Streaming","href":"/integrations/typescript/streaming"},{"title":"Error handling","description":"Error classes thrown by the ReyGrid TypeScript SDK and how to handle them.","href":"/integrations/typescript/error-handling"}]},{"group":"N8N","icon":"diagram-project","pages":[{"title":"N8N Node","sidebarTitle":"N8N Node","href":"/integrations/n8n/n8n-nodes-reygrid"}]}]}]},"basePath":"","title":"N8N Node - ReyGrid Docs","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-NFVxKeb_.js","DynamicMarkdown-DOefW1_8.js","zoom-image-lightbox-DHIkV4p4.js","lightbox-handle-r17bVUz3.js"]}