curl --location -g --request POST 'https:///api/v2/workflows/' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Workflow 1",
"project_id": 1,
"nodes": [
{
"id": "p4",
"data": {
"start": true,
"custom_instructions": {
"routing_phase": [],
"planning_phase": [],
"response_compilation": []
}
},
"type": "planner"
},
{
"id": "5",
"data": {
"start": false,
"agent_id": 1,
"sources_enabled": true,
"deployment_model": "gpt4-o"
},
"type": "agent"
},
{
"id": "6",
"data": {
"start": false,
"sources_enabled": true,
"deployment_model": "gpt4-o",
"agent_id": 2
},
"type": "agent"
}
],
"edges": [
{
"id": "ep4-5",
"type": "conditional",
"source": "p4",
"target": "5"
},
{
"id": "ep4-6",
"type": "conditional",
"source": "p4",
"target": "6"
}
]
}'
{
"success": true,
"message": "Workflow created successfully",
"data": {
"id": 4,
"workflow_name": "Workflow 1",
"nodes": [
{
"id": "p4",
"data": {
"start": true,
"custom_instructions": {
"routing_phase": [],
"planning_phase": [],
"response_compilation": []
}
},
"type": "planner"
},
{
"id": "5",
"data": {
"start": false,
"agent_id": 1,
"sources_enabled": true,
"deployment_model": "gpt4-o",
"name": "Marketing Guru",
"domain": "Social Media",
"prefix_prompt": "Elaborate your responses in a way that makes it easier to understand.",
"agent_type": "QnA",
"custom_instructions": []
},
"type": "agent"
},
{
"id": "6",
"data": {
"start": false,
"sources_enabled": true,
"deployment_model": "gpt4-o",
"agent_id": 2,
"name": "Social Innovation Explorer",
"domain": "Social Media",
"prefix_prompt": "Elaborate your responses in a way that makes it easier to understand.",
"agent_type": "QnA",
"custom_instructions": []
},
"type": "agent"
}
],
"edges": [
{
"id": "ep4-5",
"type": "conditional",
"source": "p4",
"target": "5"
},
{
"id": "ep4-6",
"type": "conditional",
"source": "p4",
"target": "6"
}
],
"sample_questions": [
"How would you optimize an online marketing campaign for maximum reach and conversion.",
"Discuss the potential ethical implications of using AI and machine learning algorithms in social media research and development.",
"What are some effective strategies for engaging with customers on social media platforms?"
],
"is_deleted": false,
"created_by": "admin@ejento.ai",
"created_on": "2025-05-08T20:05:00.604603Z",
"user": 1,
"project": null
}
}