> ## Documentation Index
> Fetch the complete documentation index at: https://new.docs.falkordb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# n8n GraphRAG Nodes

> Use FalkorDB GraphRAG from n8n workflows with a pipeline node, an AI Agent tool, and a shared credential.

The [FalkorDB GraphRAG n8n community node](https://github.com/FalkorDB/GraphRAG-n8n) connects n8n workflows to a [FalkorDB GraphRAG-Server](https://github.com/FalkorDB/GraphRAG-Server). It does not talk to FalkorDB directly. Instead, it uses the GraphRAG-Server REST API to ingest content into a knowledge graph and answer questions against that graph.

The package ships two nodes and one shared credential:

* `FalkorDB GraphRAG`: a regular pipeline node for ingest and question-answering steps.
* `FalkorDB GraphRAG Tool`: an AI Agent tool node that can be called autonomously.
* `FalkorDB GraphRAG Server API`: the credential that stores the server URL, API token, and request timeout.

## Typical workflow

```mermaid theme={null}
flowchart LR
  A[n8n workflow] --> B[FalkorDB GraphRAG node]
  B --> C[GraphRAG-Server]
  C --> D[FalkorDB]
```

## Installation

Install `@falkordb/n8n-nodes-graphrag` from the n8n Community Nodes UI, or use npm in a self-hosted n8n instance:

```bash theme={null}
npm install @falkordb/n8n-nodes-graphrag
```

After installation, the two nodes appear under the FalkorDB category in the node picker.

## Setup

Create one credential under **Credentials -> New -> FalkorDB GraphRAG Server API** and reuse it across both nodes.

| Field                         | Required | Description                                                                     |
| ----------------------------- | -------- | ------------------------------------------------------------------------------- |
| **Server URL**                | yes      | Base URL of your GraphRAG-Server instance, for example `http://localhost:8000`. |
| **API Token**                 | no       | Sent as `Authorization: Bearer ...` when the server requires authentication.    |
| **Request Timeout (Seconds)** | yes      | Per-request timeout for GraphRAG-Server calls.                                  |

## How to get an API token

Use these steps in GraphRAG-Server before configuring the n8n credential.

### 1. Open Settings and API Access

Open your graph in GraphRAG-Server, then go to **Settings** and keep the **API Access** tab selected.

<img src="https://mintcdn.com/falkordb-core/4RKo-4HTPunDsB0h/images/n8n/n8n-graphrag-settings-overview.png?fit=max&auto=format&n=4RKo-4HTPunDsB0h&q=85&s=68df9435e86aa0c91010df67b599660d" alt="GraphRAG-Server Settings page with API Access selected" width="1850" height="1081" data-path="images/n8n/n8n-graphrag-settings-overview.png" />

### 2. Add your LLM key

In **Your LLM Keys**, add a provider key if one is not already present. API tokens run on your own LLM key, so this step is required first.

<img src="https://mintcdn.com/falkordb-core/4RKo-4HTPunDsB0h/images/n8n/n8n-graphrag-llm-key.png?fit=max&auto=format&n=4RKo-4HTPunDsB0h&q=85&s=aa3b4670da5dd0f22cc1fdb4854ae11f" alt="LLM key section in GraphRAG-Server Settings" width="1850" height="1081" data-path="images/n8n/n8n-graphrag-llm-key.png" />

### 3. Generate the client API token

In **API Tokens**, enter a token name (for example, `n8n production`), choose expiration, and click **Generate**. Copy the raw token value when shown and paste it into the n8n credential **API Token** field.

<img src="https://mintcdn.com/falkordb-core/4RKo-4HTPunDsB0h/images/n8n/n8n-graphrag-api-token.png?fit=max&auto=format&n=4RKo-4HTPunDsB0h&q=85&s=8ac09bea713eb9f568bb3df951ecc434" alt="API Tokens panel showing token generation controls" width="860" height="279" data-path="images/n8n/n8n-graphrag-api-token.png" />

## Screenshots

### Node picker

<img src="https://mintcdn.com/falkordb-core/4RKo-4HTPunDsB0h/images/n8n/n8n-node-picker.png?fit=max&auto=format&n=4RKo-4HTPunDsB0h&q=85&s=6920a0a9cbaf2e4c5aba1defe1a666d1" alt="Node picker showing FalkorDB GraphRAG and FalkorDB GraphRAG Tool" width="387" height="285" data-path="images/n8n/n8n-node-picker.png" />

### Pipeline node

<img src="https://mintcdn.com/falkordb-core/4RKo-4HTPunDsB0h/images/n8n/n8n-action-config.png?fit=max&auto=format&n=4RKo-4HTPunDsB0h&q=85&s=f77e928b9af96475ceaa513a060165a2" alt="Pipeline node configuration for the main action flow" width="1864" height="1054" data-path="images/n8n/n8n-action-config.png" />

### AI Agent tool

<img src="https://mintcdn.com/falkordb-core/4RKo-4HTPunDsB0h/images/n8n/n8n-tool-config.png?fit=max&auto=format&n=4RKo-4HTPunDsB0h&q=85&s=fa606a256571fcb6022c46deb9ab9093" alt="AI Agent tool configuration" width="1864" height="1054" data-path="images/n8n/n8n-tool-config.png" />

### Credential

<img src="https://mintcdn.com/falkordb-core/4RKo-4HTPunDsB0h/images/n8n/n8n-credential-settings.png?fit=max&auto=format&n=4RKo-4HTPunDsB0h&q=85&s=1f3511cf6420600c54dc15e8766edb25" alt="FalkorDB GraphRAG Server API credential screen" width="1182" height="718" data-path="images/n8n/n8n-credential-settings.png" />

### Retrieve only workflow

<img src="https://mintcdn.com/falkordb-core/4RKo-4HTPunDsB0h/images/n8n/n8n-retrieve-only-workflow.png?fit=max&auto=format&n=4RKo-4HTPunDsB0h&q=85&s=948a52a94f2c966ea55e015a450edf27" alt="Retrieve-only workflow canvas with Manual Trigger, Set Question, and FalkorDB GraphRAG" width="1924" height="1113" data-path="images/n8n/n8n-retrieve-only-workflow.png" />

## When to use it

Use the pipeline node when you want to ingest documents, list documents, or answer questions as part of a workflow. Use the AI Agent tool when you want the agent to decide when to query the knowledge graph and fill the node parameters automatically.
