n8n Integration
n8n Integration
Connect Synap to your automation workflows
Overview
Integrate Synap with n8n to:
- ✅ Create notes and tasks from external triggers
- ✅ Search your knowledge base semantically
- ✅ Analyze content with Synap's AI
- ✅ Receive real-time webhooks from Synap events
Status: 📋 Planned (4-week implementation)
Architecture
Quick Start
1. Create API Key
In Synap UI:
:::warning Save Your Key The API key is shown only once. Store it securely (e.g., in n8n credentials). :::
2. Configure n8n Credentials
In n8n:
3. Use in Workflows
HTTP Request Node:
Available Actions
Create Entity
Create notes, tasks, or projects:
Supported Types:
note- Create a notetask- Create a taskproject- Create a project
Search Entities
Semantic search across your knowledge:
AI Analysis
Analyze content with Synap's AI:
Analysis Types:
tags- Extract relevant tagssummary- Generate summarytasks- Extract action itemssentiment- Analyze sentiment
Webhooks
Receive real-time notifications from Synap:
1. Create n8n Webhook
In n8n, create a Webhook trigger node:
2. Subscribe in Synap
3. Validate Webhook Signature
In n8n, validate the HMAC signature:
4. Handle Event
Available Events:
entities.create.validated- New entity createdentities.update.validated- Entity modifieddocuments.create.validated- New document createdconversationMessages.create.validated- New message
Note: Filter by entity type in your webhook handler to get task/note specific events.
Example Workflows
1. Email to Note
Trigger: New email in Gmail
Action: Create Synap note with AI tags
2. Task Completion → Slack
Trigger: Synap webhook task.completed
Action: Post to Slack
3. Daily Knowledge Search
Trigger: Cron (daily 9am)
Action: Search Synap, send digest email
Rate Limits
| Operation | Limit | Window |
|---|---|---|
| Create Entity | 100 requests | /minute |
| Search | 100 requests | /minute |
| AI Analysis | 50 requests | /minute |
:::info Upgrading Limits Contact support for higher limits on enterprise plans. :::
Error Handling
401 Unauthorized
Cause: Invalid or expired API key
Solution:
- Check API key in n8n credentials
- Verify format:
Bearer synap_user_... - Check expiration in Synap UI
403 Forbidden
Cause: Missing required scope
Solution: Create new API key with additional scopes
429 Rate Limit Exceeded
Cause: Too many requests
Solution: Implement retry with exponential backoff
Security Best Practices
- ✅ Use HTTPS - Always for production n8n instances
- ✅ Validate webhooks - Check HMAC signatures
- ✅ Rotate keys - Every 90 days
- ✅ Minimum scopes - Only grant necessary permissions
- ✅ Monitor usage - Track API calls in Synap UI
Roadmap
Phase 1: Core Actions (Week 1-2)
- ✅ Create Entity API
- ✅ Search API
- ✅ AI Analysis API
- ✅ API Key authentication
Phase 2: Webhooks (Week 3)
- ✅ Webhook subscriptions
- ✅ HMAC signature validation
- ✅ Event delivery with retries
Phase 3: Community Nodes (Week 4)
- 🔄 Official n8n node pack
- 🔄 npm package:
n8n-nodes-synap - 🔄 Published to n8n community
Support
- Documentation: api.synap.ai/docs
- GitHub: github.com/Synap-core/backend
- Discord: discord.gg/synap
Next:
- API reference - Procedure reference
- API keys - API key management
