What is a Chatflow?
A chatflow is a visual representation of your AI workflow that consists of:- Nodes: Building blocks like LLMs, chat models, memory, tools, and chains
- Connections: Links between nodes that define data flow
- Configuration: Settings for each node to customize behavior
Creating Your First Chatflow
Navigate to Chatflows
From the main dashboard, click on Chatflows in the sidebar. You’ll see a list of existing chatflows or an empty state if you’re just getting started.
Create New Chatflow
Click the Add New button in the top-right corner. This opens a blank canvas where you’ll build your workflow.
Add Nodes to Canvas
Click the + button in the top-left corner to open the node library. Browse through categories:
- Chat Models: OpenAI, Anthropic, Azure, etc.
- LLMs: Language model providers
- Chains: Pre-built workflows
- Memory: Conversation history storage
- Tools: External integrations
- Document Loaders: Data ingestion
- Vector Stores: Semantic search databases
Connect Nodes
Connect nodes by clicking and dragging from an output handle (right side) to an input handle (left side). Valid connections will highlight when compatible.For example:
- Connect a Chat Model to a Conversation Chain
- Connect Memory to the chain to enable conversation history
- Connect Tools to give your chatbot capabilities
Configure Node Settings
Double-click any node to open its configuration dialog. Here you can:
- Set API keys and credentials
- Configure model parameters (temperature, max tokens)
- Customize prompts and instructions
- Set memory options (session IDs, storage)
Save Your Chatflow
Click the Save button (floppy disk icon) in the top-right corner. Give your chatflow a descriptive name and click Save.
Basic Chatflow Example
Here’s a simple chatflow structure for a conversational chatbot:- Chat OpenAI: The language model
- Conversation Chain: Orchestrates the conversation
- Buffer Memory: Stores conversation history
Framework Selection
Flowise supports multiple frameworks. Use the tabs in the node library to switch between:- LangChain
- LlamaIndex
- Utilities
The default framework with extensive integrations for chat models, tools, chains, and memory systems.
Advanced Features
Adding RAG Capabilities
Enhance your chatflow with document retrieval:Add Vector Store
Connect to a Vector Store (Pinecone, Chroma, PostgreSQL) to store and search embeddings.
Using Multiple Tools
Add tools to give your chatbot capabilities:- Calculator: Perform mathematical calculations
- Web Browser: Search and browse the web
- API Tools: Call external APIs
- Custom Tools: Write your own tool logic
Canvas Controls
Navigation
- Zoom: Use mouse wheel or zoom controls
- Pan: Click and drag the canvas background
- Fit View: Click the fit view button to center all nodes
- Minimap: Use the minimap in the bottom-right for navigation
Editing
- Select Node: Click on a node
- Delete Node: Select and press Delete key
- Delete Connection: Select edge and press Delete key
- Copy/Paste: Copy nodes with Ctrl+C, paste with Ctrl+V (flow data as JSON)
- Undo/Redo: Browser back/forward (note: limited support)
Saving and Managing Chatflows
Saving
- Click the Save button to save your chatflow
- The asterisk (*) next to the name indicates unsaved changes
- Flowise auto-saves node data as you configure
Exporting
From the Settings menu (gear icon):- Export Chatflow: Download as JSON file
- Duplicate Chatflow: Create a copy in a new tab
- Save as Template: Share your chatflow as a reusable template
Importing
From the Settings menu:- Load Chatflow: Upload a JSON file to import
- Paste flow data directly onto the canvas (Ctrl+V)
Best Practices
Organization Tips
- Group Related Nodes: Position related nodes close together
- Use Sticky Notes: Add notes to document workflow logic
- Name Your Nodes: Give each node a descriptive label
- Test Incrementally: Build and test in small steps
- Version Control: Export chatflows regularly as backups
Performance Optimization
- Use Buffer Window Memory instead of Buffer Memory for long conversations
- Enable Streaming for better user experience with long responses
- Use Conversation Summary Memory to reduce token usage
- Set appropriate Max Tokens limits on models
API Integration
Once your chatflow is saved, integrate it into your application:
API endpoint format:
Troubleshooting
Common Issues
Nodes won't connect
Nodes won't connect
Ensure the node types are compatible. Not all outputs can connect to all inputs. Check the node documentation for compatible connections.
Chatflow fails to execute
Chatflow fails to execute
- Verify all required fields are filled in node configurations
- Check that API keys and credentials are valid
- Review error messages in the chat panel
- Ensure all nodes are properly connected
Memory not persisting
Memory not persisting
- Verify sessionId is being passed in API requests
- Check that memory node is properly connected to the chain
- Ensure memory storage is configured correctly (Redis, PostgreSQL, etc.)
Slow response times
Slow response times
- Reduce max tokens settings
- Use faster models (GPT-3.5 instead of GPT-4)
- Enable streaming for perceived performance
- Optimize vector store queries with filters
Next Steps
- Explore Creating Agentflows for multi-agent systems
- Learn about Using Tools to extend capabilities
- Master Memory Management for better conversations
- Study Prompt Engineering to improve responses
