Workflows
Create Workflow
Knowledge Engines
Data Sources
Workflows
Tool Runs
Workflows
Create Workflow
Creates a new workflow associated with a knowledge engine
POST
/
api
/
v1
/
workflows
curl --request POST \
--url https://api.getdecisional.ai/api/v1/workflows \
--header 'Content-Type: application/json' \
--data '{
"value": {
"name": "Revenue Analysis",
"query": "What is the latest revenue of Square?",
"description": "Workflow to analyze financial metrics of fintech companies",
"context_id": "ctx_abc123xyz789",
"advanced_reasoning": true,
"model": "llama-v3-70b"
}
}'
{
"value": {
"id": "wfl_abc123xyz789",
"name": "Revenue Analysis",
"query": "What is the latest revenue of Square?",
"response": "Square's latest revenue is $1.2 billion <source_id=1>",
"context_id": "ctx_abc123xyz789",
"advanced_reasoning": true,
"model": "llama-v3-70b",
"citations": [
{
"citation_key": "<source_id=1>",
"data_source_id": "dsc_n5kdefxua5fnrd",
"file_name": "report.pdf",
"page_number": 4
}
],
"status": "PROCESSED",
"created_at": 1679644800
}
}
Body
application/json
Response
201
application/json
Workflow created successfully
The response is of type object
.
curl --request POST \
--url https://api.getdecisional.ai/api/v1/workflows \
--header 'Content-Type: application/json' \
--data '{
"value": {
"name": "Revenue Analysis",
"query": "What is the latest revenue of Square?",
"description": "Workflow to analyze financial metrics of fintech companies",
"context_id": "ctx_abc123xyz789",
"advanced_reasoning": true,
"model": "llama-v3-70b"
}
}'
{
"value": {
"id": "wfl_abc123xyz789",
"name": "Revenue Analysis",
"query": "What is the latest revenue of Square?",
"response": "Square's latest revenue is $1.2 billion <source_id=1>",
"context_id": "ctx_abc123xyz789",
"advanced_reasoning": true,
"model": "llama-v3-70b",
"citations": [
{
"citation_key": "<source_id=1>",
"data_source_id": "dsc_n5kdefxua5fnrd",
"file_name": "report.pdf",
"page_number": 4
}
],
"status": "PROCESSED",
"created_at": 1679644800
}
}