Skip to main content
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.

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.
The n8n Community nodes settings page with the Install a community node button

Settings → Community nodes

2

Enter the package name

In npm Package Name, enter:
Tick I understand the risks of installing unverified code from a public source, then click Install.
The Install community nodes dialog with npm Package Name n8n-nodes-reygrid and the risk checkbox ticked

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.
On a self-hosted instance you can install the package into n8n’s custom nodes folder and restart n8n:
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. 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.
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

ReyGrid node with a Calculator tool connected to its Tools input

Node reference

Chat → Send Message

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

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:
  1. Send the message (or the previous tool results) to the agent.
  2. If the response contains tool calls, run the matching connected tools.
  3. 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.

Output

  • 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}. 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.