curl --location '/workflows' \
--header 'Authorization: Bearer <token>'{
"workflows": [
{
"id": "string",
"organizationId": "string",
"name": "string",
"description": "string",
"enabled": true,
"trigger": {
"id": "string",
"type": "message_received",
"config": {}
},
"steps": [
{
"id": "string",
"name": "string",
"type": "action",
"action": {
"type": "ai_assistant",
"property1": "string",
"property2": "string"
},
"conditionGroup": {
"logic": "AND",
"conditions": [
{
"field": "string",
"operator": "equals",
"value": "string",
"aiPrompt": "string"
}
]
},
"trueBranch": [
{}
],
"falseBranch": [
{}
]
}
],
"maxExecutionsPerMinute": 60,
"timeoutSeconds": 300,
"testMode": true,
"testContacts": [
"string"
],
"createdAt": "2019-08-24T14:15:22.123Z",
"updatedAt": "2019-08-24T14:15:22.123Z"
}
]
}