n8n-nodes-cloudflare-autorag
v0.1.2
Published
n8n node for Cloudflare AutoRAG - Query your knowledge bases with AI-powered search
Readme
n8n-nodes-cloudflare-autorag
This is an n8n community node that lets you use Cloudflare AutoRAG in your n8n workflows.
Cloudflare AutoRAG is a managed service for creating Retrieval-Augmented Generation (RAG) applications. It allows you to query your knowledge bases with AI-powered search, retrieving relevant information from your indexed data and generating context-aware responses.
n8n is a fair-code licensed workflow automation platform.
Installation
Community Node (Recommended)
- Go to Settings > Community Nodes in your n8n instance
- Select Install
- Enter
n8n-nodes-cloudflare-autoragin the npm Package Name field - Click Install
Manual Installation
npm install n8n-nodes-cloudflare-autoragOperations
This node supports two operations:
- AI Search: Search your knowledge base and generate an AI response with retrieved context
- Search: Perform semantic search to retrieve raw document chunks without AI generation
Authentication
You'll need to create credentials in n8n using:
- Account ID: Your Cloudflare Account ID (found in dashboard URL or sidebar)
- API Token: A Cloudflare API token with AutoRAG Read and Edit permissions
Creating an API Token
- Log in to the Cloudflare dashboard
- Navigate to AI > AutoRAG
- Select your AutoRAG instance
- Click Use AutoRAG > API
- Select Create an API Token
- Copy and save the token securely
Node Reference
Input Fields
- Operation: Choose between AI Search or Search
- AutoRAG Name: The unique name of your AutoRAG instance
- Query: The question or search query for your knowledge base
Additional Options
- Model (AI Search only): Override the default text generation model
- Rewrite Query: Optimize the query for better semantic search
- Result Limit: Maximum number of document chunks (1-50)
- Minimum Score: Minimum similarity score for results (0.0-1.0)
AI Agent Tool Usage
This node is AI Agent compatible (usableAsTool: true). You can connect it to AI Agent nodes in n8n, allowing the AI to autonomously query your knowledge bases when needed to answer user questions.
Example AI Agent Setup
- Add an AI Agent node to your workflow
- Connect the Cloudflare AutoRAG node to the Agent's tool input
- The AI will automatically use your knowledge base when relevant
Example Usage
Simple Query Workflow
{
"nodes": [
{
"name": "Cloudflare AutoRAG",
"type": "n8n-nodes-cloudflare-autorag.cloudflareAutoRag",
"parameters": {
"operation": "aiSearch",
"autoRagName": "my-knowledge-base",
"query": "How do I configure authentication?",
"additionalOptions": {
"limit": 5,
"rewriteQuery": true
}
}
}
]
}Output Structure
The node returns:
{
"answer": "The generated AI response...",
"sources": [
{
"id": "doc-chunk-id",
"score": 0.89,
"text": "The relevant text content...",
"metadata": {
"source": "r2://bucket/document.pdf"
}
}
],
"query": "Your original query",
"rewritten_query": "The optimized query (if enabled)"
}Resources
License
Support
For issues and feature requests, please use the GitHub issues page.
Author
Jeremy Dawes - Jezweb
