Skip to main content
Integrate Memvid with n8n using HTTP Request nodes and a reusable production workflow.
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

  1. Create a new HTTP Header Auth credential in n8n.
  2. Set:
    • Header Name: Authorization
    • Header Value: Bearer mv2_YOUR_API_KEY
  3. Reuse this credential across all Memvid HTTP Request nodes.
You can also use X-API-Key: mv2_YOUR_API_KEY if preferred.

Golden Path Workflow

  1. Create memory (once)
  2. Add documents
  3. Find context
  4. Ask with RAG

Importable n8n Workflow JSON

Import the following JSON in n8n (Workflows -> Import from Clipboard). It creates a simple manual pipeline for create -> 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):
Store 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 429 and 5xx failures with Wait + loop nodes.
  • Use one memory per tenant/project for cleaner access boundaries.
  • Prefer memory-scoped keys for least-privilege workflows.
  • Start with find for retrieval-only steps, then use ask when synthesis is needed.

Smoke Test

After importing, run the workflow manually and verify:
  • Create Memory returns an id
  • Find returns at least one hit
  • Ask returns answer text and sources