- Unified localStorage key to 'theme-preference' across all components
- Fixed header.tsx using wrong localStorage key ('theme' instead of 'theme-preference')
- Added localStorage hybrid persistence for instant theme changes
- Removed router.refresh() which was causing stale data revert
- Replaced Blue theme with Sepia
- Consolidated auth() calls to prevent race conditions
- Updated UserSettingsData types to include all themes
186 lines
4.5 KiB
JSON
186 lines
4.5 KiB
JSON
{
|
|
"name": "Keep Notes - Create with Classification",
|
|
"nodes": [
|
|
{
|
|
"parameters": {},
|
|
"id": "mcp-trigger-1",
|
|
"name": "MCP Server Trigger",
|
|
"type": "n8n-nodes-langchain.mcptrigger",
|
|
"typeVersion": 1,
|
|
"position": [250, 300],
|
|
"webhookId": "keep-notes-create",
|
|
"description": "MCP trigger to create notes with AI classification"
|
|
},
|
|
{
|
|
"parameters": {
|
|
"resource": "note",
|
|
"operation": "create",
|
|
"title": "={{ $json.title }}",
|
|
"content": "={{ $json.content }}",
|
|
"color": "={{ $json.color || 'default' }}",
|
|
"type": "={{ $json.type || 'text' }}",
|
|
"labels": "={{ $json.labels }}",
|
|
"isPinned": "={{ $json.isPinned || false }}",
|
|
"isArchived": "={{ $json.isArchived || false }}",
|
|
"notebookId": "={{ $json.notebookId }}"
|
|
},
|
|
"id": "keep-notes-1",
|
|
"name": "Keep Notes - Create Note",
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
"typeVersion": 4.2,
|
|
"position": [500, 300],
|
|
"url": "http://localhost:3000/api/notes",
|
|
"method": "POST",
|
|
"sendHeaders": true,
|
|
"headerParameters": {
|
|
"parameters": [
|
|
{
|
|
"name": "Content-Type",
|
|
"value": "application/json"
|
|
}
|
|
]
|
|
},
|
|
"sendBody": true,
|
|
"bodyParameters": {
|
|
"parameters": []
|
|
}
|
|
},
|
|
{
|
|
"parameters": {
|
|
"modelId": "openai/gpt-4",
|
|
"prompt": "Analyze this note and suggest:\n1. A concise title (if not provided)\n2. Appropriate labels from: {{ $json.availableLabels }}\n3. Best notebook ID (if available)\n\nNote content: {{ $json.content }}\n\nReturn JSON format:\n{\n \"title\": \"suggested title\",\n \"labels\": [\"label1\", \"label2\"],\n \"notebookId\": \"notebook-id\",\n \"category\": \"work/personal/idea\"\n}"
|
|
},
|
|
"id": "ai-classifier-1",
|
|
"name": "AI Classifier",
|
|
"type": "n8n-nodes-langchain.agent",
|
|
"typeVersion": 1.1,
|
|
"position": [750, 200],
|
|
"continueOnFail": true
|
|
},
|
|
{
|
|
"parameters": {
|
|
"mode": "combine",
|
|
"combinationMode": "multiplex",
|
|
"options": {}
|
|
},
|
|
"id": "merge-1",
|
|
"name": "Merge Results",
|
|
"type": "n8n-nodes-base.merge",
|
|
"typeVersion": 3,
|
|
"position": [1000, 300]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"assignments": {
|
|
"assignments": [
|
|
{
|
|
"name": "noteId",
|
|
"value": "={{ $json.data.id }}",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "title",
|
|
"value": "={{ $json.data.title }}",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"value": "Note created successfully",
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"options": {}
|
|
},
|
|
"id": "format-1",
|
|
"name": "Format Response",
|
|
"type": "n8n-nodes-base.set",
|
|
"typeVersion": 3.4,
|
|
"position": [1250, 300]
|
|
},
|
|
{
|
|
"parameters": {
|
|
"respondWith": "json",
|
|
"responseBody": "={{ $json }}"
|
|
},
|
|
"id": "mcp-response-1",
|
|
"name": "Respond to Webhook",
|
|
"type": "n8n-nodes-base.respondToWebhook",
|
|
"typeVersion": 1.1,
|
|
"position": [1500, 300]
|
|
}
|
|
],
|
|
"connections": {
|
|
"MCP Server Trigger": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Keep Notes - Create Note",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Keep Notes - Create Note": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "AI Classifier",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"AI Classifier": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Merge Results",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Merge Results": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Format Response",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
},
|
|
"Format Response": {
|
|
"main": [
|
|
[
|
|
{
|
|
"node": "Respond to Webhook",
|
|
"type": "main",
|
|
"index": 0
|
|
}
|
|
]
|
|
]
|
|
}
|
|
},
|
|
"pinData": {},
|
|
"settings": {
|
|
"executionOrder": "v1"
|
|
},
|
|
"staticData": null,
|
|
"tags": [
|
|
{
|
|
"createdAt": "2026-01-18T00:00:00.000Z",
|
|
"id": "keep-notes-mcp",
|
|
"name": "Keep Notes MCP"
|
|
}
|
|
],
|
|
"triggerCount": 1,
|
|
"updatedAt": "2026-01-18T00:00:00.000Z",
|
|
"versionId": "1"
|
|
}
|