How to Integrate with N8N
Overview
Method
Use Case
Description
Integration Architecture
┌─────────────────────────────────────────────────────────┐
│ N8N │
│ ┌─────────────┐ ┌─────────────┐ ┌────────────┐ │
│ │ Trigger │───▶│ AI Agent │───▶│ Response │ │
│ └─────────────┘ └──────┬──────┘ └────────────┘ │
│ │ │
│ ┌──────▼──────┐ │
│ │ HTTP Tool │ │
│ └──────┬──────┘ │
└────────────────────────────┼────────────────────────────┘
│
▼
┌──────────────────────────────┐
│ SnackPrompt AI Engine API │
│ /v1/kb/search or /v1/kb/chat│
└──────────────────────────────┘Method 1: HTTP Request Tool (Recommended)
Step 1: Configure the AI Agent
Step 2: Configure the HTTP Request Tool
Field
Value
Step 3: Optimize the Response
Complete Workflow Example
Method 2: HTTP Request Node (Direct RAG)
Simple RAG Workflow
HTTP Request Node Configuration
Formatting the Context
AI Chain Prompt
Method 3: Chat Endpoint for Complete Responses
Configuration
Response
Practical Use Cases
1. Support Chatbot
2. Multi-tool Agent
3. RAG with Multiple Sources
4. Response Validation
Configuration Tips
1. Tool Description is Crucial
2. Limit the Results
3. Use Filters for Context
4. Handle Errors
Complete Example: Sales Chatbot
Workflow
Agent Configuration
Tool
Description
Troubleshooting
Error: "tenant_id is required"
Agent doesn't use the tool
Response too long/truncated
Related
External Resources
Last updated
Was this helpful?