Assistants
Create new assistant with custom functions
post/flows/{flowID}/assistants/
Path parameters
flowIDinteger required
flow id (use 0 to create a new flow together with the assistant)
Request body
Example request
{
"functions": {
"functions": [
{
"timeout": 60,
"url": "https://example.com/api/v1/function"
}
]
},
"input": "user input for running assistant",
"provider": "openai",
"use_agents": true
}Response
assistant created successful
Example response
{
"data": {
"flow": {
"functions": {
"functions": [
{
"timeout": 60,
"url": "https://example.com/api/v1/function"
}
]
}
},
"functions": {
"functions": [
{
"timeout": 60,
"url": "https://example.com/api/v1/function"
}
]
}
},
"status": "success"
}