Creates a new agentflow in your workspace. Agentflows are AI agent workflows that can be configured with various nodes and capabilities.
Request Body
JSON string containing the flow configuration with nodes and edges
Flow type. Use AGENTFLOW for agent workflows. Options: CHATFLOW, AGENTFLOW, MULTIAGENT, ASSISTANT
Whether to deploy the agentflow immediately. Defaults to false
Whether the agentflow should be publicly accessible. Defaults to false
Category classification for the agentflow
JSON string containing chatbot configuration options
JSON string containing API configuration settings
Response
Unique identifier for the created agentflow
JSON string containing the flow configuration
Deployment status of the agentflow
Timestamp when the agentflow was created
ID of the workspace containing this agentflow
Example Request
curl -X POST \
'https://your-flowise-instance.com/api/v1/chatflows' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "Support Agent",
"type": "AGENTFLOW",
"flowData": "{\"nodes\":[{\"id\":\"1\",\"type\":\"agent\"}],\"edges\":[]}",
"deployed": true,
"category": "Customer Service"
}'
Example Response
{
"id": "abc123-def456-ghi789",
"name": "Support Agent",
"flowData": "{\"nodes\":[{\"id\":\"1\",\"type\":\"agent\"}],\"edges\":[]}",
"deployed": true,
"isPublic": false,
"type": "AGENTFLOW",
"category": "Customer Service",
"createdDate": "2024-01-20T15:30:00Z",
"updatedDate": "2024-01-20T15:30:00Z",
"workspaceId": "workspace-123"
}
Error Responses
Bad Request - Missing required fields or invalid data format
Unauthorized - Invalid or missing API key
Forbidden - Insufficient permissions to create agentflows
Internal Server Error - Server encountered an error processing the request