curl --location -g --request POST 'https:///api/v2/workflows//run' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"query_source": "web",
"thread_id": 1,
"chat_history": [
{
"user": "What regulations do we need to comply with when entering a new market and what marketing advice you want me to follow?"
}
]
}'
{
"success": true,
"message": "Workflow ran successfully",
"data": {
"agents_used": [],
"answer": "Sorry, connected agents are unable to answer your query",
"sources": "",
"indexes": {},
"references": [],
"followup_questions": [],
"subqueries": [
{
"question": "What regulations do we need to comply with when entering a new market?",
"order": 1,
"dependency": [],
"agent": ""
},
{
"question": "What marketing advice should I follow when entering a new market?",
"order": 2,
"dependency": []
}
],
"thread_name": "Updated Thread Title",
"workflow_response_id": 9
}
}