Chatflows
This guide covers the management and usage of chatflows in the Flowise service.Chatflows Overview
Chatflows are the core building blocks in Flowise that allow you to create conversational AI workflows using a visual builder. Each chatflow represents a complete conversation flow that can be embedded in your applications or accessed via API.Chatflow Endpoints
List Chatflows
Retrieve a list of all available chatflows.Get Chatflow
Retrieve a specific chatflow by ID.Create Chatflow
Create a new chatflow.Update Chatflow
Update an existing chatflow.Delete Chatflow
Delete a chatflow.Duplicate Chatflow
Duplicate an existing chatflow.Chat Prediction
Execute a chatflow prediction (non-streaming).Stream Chat
Execute a chatflow prediction with streaming response.Stop Chat
Stop an active streaming chatflow execution.Deploy Chatflow
Deploy a chatflow to make it available for use.Undeploy Chatflow
Undeploy a chatflow to make it unavailable for use.Chatflow Parameters
Chatflow Object
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier for the chatflow |
| name | string | Name of the chatflow |
| category | string | Category for organization purposes |
| deployed | boolean | Whether the chatflow is deployed and available for use |
| isPublic | boolean | Whether the chatflow is accessible without authentication |
| nodes | array | Array of node objects that make up the chatflow |
| edges | array | Array of edge objects connecting the nodes |
| variables | array | Array of variable objects for the chatflow |
| createdAt | string | Creation timestamp |
| updatedAt | string | Last update timestamp |
Node Object
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier for the node |
| type | string | Type of the node (e.g., “textInput”, “llmChain”) |
| position | object | X and Y coordinates of the node in the builder |
| data | object | Configuration data for the node |
Edge Object
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier for the edge |
| source | string | ID of the source node |
| target | string | ID of the target node |
| sourceHandle | string | Output handle of the source node |
| targetHandle | string | Input handle of the target node |
Usage Examples
List and Filter Chatflows
Manage Chatflow Deployment Status
Create and Update Chatflows
Best Practices
-
Chatflow Design
- Keep chatflows focused on specific use cases
- Use clear naming conventions
- Organize with meaningful categories
- Document the purpose of each chatflow
-
Deployment Management
- Test thoroughly before deploying
- Use deployment toggles for maintenance
- Monitor usage after deployment
- Implement versioning for important changes
-
Security Considerations
- Use isPublic flag judiciously
- Implement proper authentication
- Validate and sanitize user inputs
- Review node configurations for sensitive data
-
Performance Optimization
- Minimize complex node arrangements
- Use caching where appropriate
- Monitor response times
- Implement rate limiting for public chatflows