
Connect GuidedMind RAG to your n8n workflows with sample templates.
Integrate GuidedMind RAG into your n8n automation workflows. This guide walks through importing and configuring the sample retrieval workflow from our GitHub repository.
All sample workflows are available at: github.com/guidedmind-ai/n8n-guided-mind-rag
The foundational retrieval workflow sends user messages to the GuidedMind RAG engine and returns context-aware answers. This is the "brain" of your AI agent.
The workflow consists of three nodes connected in a linear pipeline:
workflow.json from step-1-retrievalThe workflow uses an HTTP Request node to communicate with GuidedMind. Update these values:
| Field | Location | Value |
|---|---|---|
| Authorization Header | HTTP Request → Headers | Bearer sk_your_api_key (replace sk_your_api_key with your actual key) |
| Project ID | HTTP Request → Body → project_id | Your project ID from the GuidedMind dashboard |
Don't forget Bearer: The Authorization header must include the word Bearer followed by a space before your API key. Format: Bearer sk_...
| Node | Type | Purpose |
|---|---|---|
| When chat message received | Trigger | Captures user input via the n8n hosted chat interface |
| HTTP Request | Action | POSTs the user query to api.guidedmind.ai/v1/chat |
| Edit Fields | Helper | Cleans the JSON response to output only the text answer |
Cause: API key is missing, incorrect, or missing the Bearer prefix.
Fix:
Bearer sk_your_keyCause: Project ID is incorrect or the project doesn't exist.
Fix:
Cause: Project documents haven't finished indexing.
Fix: