aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorNaman Bansal <[email protected]>2025-10-13 12:48:24 +0800
committerNaman Bansal <[email protected]>2025-10-13 12:48:24 +0800
commitca3c13b94694ee1e0c542d77304be583c386293b (patch)
treeed223436b04a2c6994c793aed920c14ba5648098 /apps
parentcreate memory adding option in vercel sdk (#484) (diff)
downloadsupermemory-ca3c13b94694ee1e0c542d77304be583c386293b.tar.xz
supermemory-ca3c13b94694ee1e0c542d77304be583c386293b.zip
feat: n8n integration page
Diffstat (limited to 'apps')
-rw-r--r--apps/docs/docs.json6
-rw-r--r--apps/docs/images/bearer-auth-add-n8n.pngbin0 -> 232975 bytes
-rw-r--r--apps/docs/images/core-http-req.pngbin0 -> 101351 bytes
-rw-r--r--apps/docs/images/gmail-content.pngbin0 -> 222364 bytes
-rw-r--r--apps/docs/images/gmail-trigger.pngbin0 -> 280553 bytes
-rw-r--r--apps/docs/n8n.mdx93
6 files changed, 99 insertions, 0 deletions
diff --git a/apps/docs/docs.json b/apps/docs/docs.json
index 219be1ca..207f2224 100644
--- a/apps/docs/docs.json
+++ b/apps/docs/docs.json
@@ -157,6 +157,12 @@
]
},
{
+ "group": "Integrations with no-code tools",
+ "pages": [
+ "n8n"
+ ]
+ },
+ {
"group": "Migration Guides",
"pages": ["migration/from-mem0"]
},
diff --git a/apps/docs/images/bearer-auth-add-n8n.png b/apps/docs/images/bearer-auth-add-n8n.png
new file mode 100644
index 00000000..32fa8a26
--- /dev/null
+++ b/apps/docs/images/bearer-auth-add-n8n.png
Binary files differ
diff --git a/apps/docs/images/core-http-req.png b/apps/docs/images/core-http-req.png
new file mode 100644
index 00000000..5ae65c17
--- /dev/null
+++ b/apps/docs/images/core-http-req.png
Binary files differ
diff --git a/apps/docs/images/gmail-content.png b/apps/docs/images/gmail-content.png
new file mode 100644
index 00000000..babbf170
--- /dev/null
+++ b/apps/docs/images/gmail-content.png
Binary files differ
diff --git a/apps/docs/images/gmail-trigger.png b/apps/docs/images/gmail-trigger.png
new file mode 100644
index 00000000..5b14af94
--- /dev/null
+++ b/apps/docs/images/gmail-trigger.png
Binary files differ
diff --git a/apps/docs/n8n.mdx b/apps/docs/n8n.mdx
new file mode 100644
index 00000000..352a088c
--- /dev/null
+++ b/apps/docs/n8n.mdx
@@ -0,0 +1,93 @@
+---
+title: "n8n Integration"
+description: "Automate knowledge management with Supermemory in n8n workflows"
+icon: "workflow"
+sidebarTitle: "n8n"
+---
+
+Connect Supermemory to your n8n workflows to build intelligent automation workflows and agents that leverage your full knowledge base.
+
+## Quick Start
+
+### Prerequisites
+
+- n8n instance (self-hosted or cloud)
+- Supermemory API key ([get one here](https://console.supermemory.com/settings))
+- Basic understanding of n8n workflows
+
+### Setting Up the HTTP Request Node
+
+The Supermemory integration in n8n uses the HTTP Request node to interact with the Supermemory API. Here's how to configure it:
+
+1. Add an **HTTP Request** node to your workflow (Core > HTTP Request)
+![](/images/core-http-req.png)
+2. Set the **Method** to `POST`
+3. Set the **URL** to the appropriate Supermemory API endpoint:
+ - Add memory: `https://api.supermemory.ai/v3/documents`
+ - Search memories: `https://api.supermemory.ai/v4/search`
+4. For authentication, select **Generic Credential Type** and then **Bearer Auth**
+5. Click on **Create New Credential** and paste the Supermemory API Key in the Bearer Token field.
+![](/images/bearer-auth-add-n8n.png)
+6. Check **Send Body** and select **JSON** as the Body Content Type. The fields depend on what API endpoint you're sending the request to. You can find detailed step-by-step examples below.
+
+## Step-by-Step Tutorial
+
+In this tutorial, we'll create a workflow that automatically adds every email from Gmail to your Supermemory knowledge base. We'll use the HTTP Request node to send email data to Supermemory's API, creating a searchable archive of all your communications.
+
+### Adding Gmail Emails to Supermemory
+
+Follow these steps to build a workflow that captures and stores your Gmail messages:
+
+#### Step 1: Set Up Gmail Trigger
+
+![](/images/gmail-trigger.png)
+
+1. **Add a Gmail Trigger node** to your workflow
+2. Configure your Gmail credentials (OAuth2 recommended)
+3. Set the trigger to **Message Received**
+4. Optional: Add labels or filters to process specific emails only
+
+#### Step 2: Configure HTTP Request Node
+
+1. **Add an HTTP Request node** after the Gmail Trigger
+2. **Method**: `POST`
+3. **URL**: [`https://api.supermemory.ai/v3/documents`](/api-reference/manage-documents/add-document)
+4. Select your auth credentials you created with the Supermemory API Key.
+
+#### Step 3: Format Email Data for Supermemory
+
+In the HTTP Request node's **Body**, select **JSON** and **Using Fields Below**
+
+And create 2 fields:
+
+1. name: `content`, value: `{{ $json.snippet }}`
+2. name: `containerTag`, value: gmail
+
+
+![](/images/gmail-content.png)
+
+#### Step 4: Handle Attachments (Optional)
+
+If you want to process attachments:
+
+1. **Add a Loop node** after the Gmail Trigger
+2. Loop through `{{$json.attachments}}`
+3. **Add a Gmail node** to download each attachment
+4. **Add another HTTP Request node** to store attachment metadata
+
+
+#### Step 5: Add Error Handling
+
+1. **Add an Error Trigger node** connected to your workflow
+2. Configure it to catch errors from the HTTP Request node
+3. **Add a notification node** (Email, Slack, etc.) to alert you of failures
+4. Optional: Add a **Wait node** with retry logic
+
+#### Step 6: Test Your Workflow
+
+1. **Activate the workflow** in test mode
+2. Send a test email to your Gmail account
+3. Check the execution to ensure the email was captured
+4. Verify in Supermemory that the email appears in search results
+
+Refer to the [API reference](/api-reference/manage-documents/add-document) to learn more about other supermemory API endpoints. \ No newline at end of file