Understanding Chatflows
A chatflow is a visual representation of how data flows through different nodes:- Nodes: Individual components (LLMs, tools, memory, etc.)
- Edges: Connections between nodes that define data flow
- Canvas: The visual workspace where you build your flow
Creating a New Chatflow
Start a New Flow
Click the Add New button to create a blank chatflow, or choose from templates in the marketplace.
Building Your First Flow
Let’s create a simple conversational chatbot:Add a Language Model
- Click the + Add Node button
- Navigate to Chat Models
- Select ChatOpenAI
- Configure your API credentials
- Set model parameters (temperature, max tokens, etc.)
Add Memory
Memory enables your chatbot to remember conversation history:
- Click + Add Node
- Go to Memory category
- Select Buffer Memory
- Configure session settings (optional)
Add the Chain
The chain connects everything together:
- Click + Add Node
- Go to Chains category
- Select Conversation Chain
- This node will have input anchors for the LLM and memory
Output anchors are on the right side of nodes, input anchors on the left. Flowise validates connections to ensure compatible types.
Working with Templates
Flowise provides pre-built templates for common use cases:- Using Templates
- Popular Templates
- Go to Marketplace in the navigation
- Browse available chatflow templates
- Click Use Template on any flow
- The template opens in a new canvas
- Customize nodes and connections as needed
- Save your customized version
Canvas Controls
The canvas provides several controls for navigation and organization:| Control | Description |
|---|---|
| Zoom In/Out | Use mouse wheel or zoom controls |
| Pan | Click and drag on empty canvas area |
| Fit View | Auto-fit all nodes into view |
| Snap to Grid | Toggle grid snapping with magnet icon |
| Background | Toggle grid background visibility |
| Mini Map | Overview of entire flow (on large flows) |
Configuring Chatflow Settings
Chatflow Configuration Options
Chatflow Configuration Options
Access via the settings icon in the header:
- Category: Organize chatflows by category
- Tags: Add searchable tags
- Session Settings: Configure session timeout and behavior
- Rate Limiting: Set request limits per user/session
- Speech to Text: Enable voice input
- Follow Up Prompts: Auto-generate suggested questions
- Security: Configure allowed domains and authentication
Saving and Deploying
Test Your Flow
Click the Chat button to open the test interface. Send messages to verify behavior before deploying.
Common Patterns
Basic LLM Chain
Use for: Stateless prompt completion, text generation, classificationConversational Agent
Use for: Chatbots with tool access, multi-step reasoning, dynamic actionsRAG (Retrieval Augmented Generation)
Use for: Document Q&A, knowledge bases, semantic searchBest Practices
Organizing Complex Flows
Organizing Complex Flows
- Use Sticky Notes to add comments and documentation
- Group related nodes together visually
- Use consistent naming conventions
- Keep flows under 15-20 nodes when possible
- Break complex logic into multiple chatflows
Performance Optimization
Performance Optimization
- Use appropriate model sizes (don’t default to largest)
- Configure reasonable token limits
- Implement caching for embeddings and LLM responses
- Use streaming for better perceived performance
Security Considerations
Security Considerations
- Store API keys in credentials, not hardcoded
- Configure input moderation for user-facing bots
- Set rate limits to prevent abuse
- Use allowed domains to restrict access
- Review system prompts for prompt injection risks
Next Steps
Working with Nodes
Learn about different node types and configurations
Testing & Debugging
Debug and optimize your chatflows
Variables & Expressions
Use dynamic values and expressions
Deployment
Deploy your chatflow to production