Create Workflow
curl --request POST \
--url https://api.stage.peachdeskai.com/api/v1/workflow/create/definition \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"workflow_definition": {}
}
'{
"id": 123,
"name": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"workflow_definition": {},
"current_definition_id": 123,
"template_context_variables": {},
"call_disposition_codes": {
"disposition_codes": []
},
"total_runs": 123,
"workflow_configurations": {},
"version_number": 123,
"version_status": "<string>",
"workflow_uuid": "<string>"
}Agents
Create from Definition
Create a voice agent from an explicit workflow definition
POST
/
api
/
v1
/
workflow
/
create
/
definition
Create Workflow
curl --request POST \
--url https://api.stage.peachdeskai.com/api/v1/workflow/create/definition \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"workflow_definition": {}
}
'{
"id": 123,
"name": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"workflow_definition": {},
"current_definition_id": 123,
"template_context_variables": {},
"call_disposition_codes": {
"disposition_codes": []
},
"total_runs": 123,
"workflow_configurations": {},
"version_number": 123,
"version_status": "<string>",
"workflow_uuid": "<string>"
}Creates an agent from a node and edge graph you provide directly. Use this when you want full control over the workflow structure, or when programmatically generating agents.
The
workflow_definition object contains nodes (the steps in the conversation) and edges (transitions between steps). See Editing a Workflow for the full schema.Body
application/json
Response
Successful Response
Show child attributes
Show child attributes
⌘I
