How to Integrate with Flowise
Overview
Method
Use Case
Description
Integration Architecture
┌─────────────────────────────────────────────────────────┐
│ Flowise │
│ ┌─────────────┐ ┌─────────────┐ ┌────────────┐ │
│ │ Chat │───▶│ LLM Chain │───▶│ Response │ │
│ │ Input │ │ or Agent │ │ │ │
│ └─────────────┘ └──────┬──────┘ └────────────┘ │
│ │ │
│ ┌──────▼──────┐ │
│ │ Custom Tool │ │
│ │ or Chain │ │
│ └──────┬──────┘ │
└────────────────────────────┼────────────────────────────┘
│
▼
┌──────────────────────────────┐
│ SnackPrompt AI Engine API │
│ /v1/kb/search or /v1/kb/chat│
└──────────────────────────────┘Method 1: Custom Tool (Recommended for Agents)
Step 1: Create a Custom Tool
Field
Value
Step 2: Configure the Tool Code
Step 3: Build the Agent Flow
Method 2: HTTP Request Chain
Step 1: Create the Flow
Step 2: Configure HTTP Request Node
Field
Value
Step 3: Process and Format Results
Step 4: Generate Response with LLM
Method 3: Chat Endpoint for Complete Responses
Simple Chatbot Flow
HTTP Request Configuration
Field
Value
Parse Response
Method 4: Custom Retriever Node
Step 1: Create Custom Retriever
Step 2: Use in Conversational Retrieval Chain
Practical Use Cases
1. Simple Support Chatbot
2. Agent with Multiple Tools
3. RAG with Memory
4. Multi-Source RAG
5. Hybrid Search
Environment Variables
Variable
Description
Setting Environment Variables
Configuration Tips
1. Tool Description is Critical
2. Limit Results
3. Use Filters
4. Handle Errors
5. Cache Responses
Complete Example: Customer Support Bot
Flow Structure
Agent System Prompt
Tool Configuration
Tool
Name
Description
Troubleshooting
Error: "tenant_id is required"
Agent doesn't use the tool
Empty results
Timeout errors
Related
External Resources
Last updated
Was this helpful?