API-based integration. This guide uses
https://api.memvid.com directly (no SDK and no local .mv2 file).Prerequisites
- A Memvid API key (
mv2_...) - n8n instance (cloud or self-hosted)
- Optional: existing memory ID
Set Up Credentials in n8n
- Create a new HTTP Header Auth credential in n8n.
- Set:
- Header Name:
Authorization - Header Value:
Bearer mv2_YOUR_API_KEY
- Header Name:
- Reuse this credential across all Memvid HTTP Request nodes.
X-API-Key: mv2_YOUR_API_KEY if preferred.
Golden Path Workflow
- Create memory (once)
- Add documents
- Find context
- Ask with RAG
Importable n8n Workflow JSON
Import the following JSON in n8n (Workflows -> Import from Clipboard). It creates a simple manual pipeline forcreate -> ingest -> find -> ask.
Node-by-Node Reference
1) Create Memory
Add an HTTP Request node:- Method:
POST - URL:
https://api.memvid.com/v1/memories - Authentication: your Memvid header credential
- Body (JSON):
id from the response as memoryId in your workflow.
2) Add Documents
Add another HTTP Request node:- Method:
POST - URL:
https://api.memvid.com/v1/memories/{{$json.memoryId}}/documents - Body (JSON):
3) Search (find)
- Method:
POST - URL:
https://api.memvid.com/v1/memories/{{$json.memoryId}}/find - Body (JSON):
4) Ask (ask)
- Method:
POST - URL:
https://api.memvid.com/v1/memories/{{$json.memoryId}}/ask - Body (JSON):
Reliability Upgrades
- Add error branches from each HTTP node and alert on non-2xx responses.
- Retry
429and5xxfailures with Wait + loop nodes. - Use one memory per tenant/project for cleaner access boundaries.
- Prefer memory-scoped keys for least-privilege workflows.
- Start with
findfor retrieval-only steps, then useaskwhen synthesis is needed.
Smoke Test
After importing, run the workflow manually and verify:Create Memoryreturns anidFindreturns at least one hitAskreturns answer text and sources