Skip to main content
POST
Create Workflow
Cria um agente a partir de um grafo de nós e arestas que você fornece diretamente. Use isto quando quiser controle total sobre a estrutura do workflow ou ao gerar agentes programaticamente. O objeto workflow_definition contém nodes (as etapas da conversa) e edges (as transições entre as etapas). Consulte Editando um Workflow para o schema completo.

Cabeçalhos

authorization
string | null
X-API-Key
string | null

Corpo

application/json
name
string
obrigatório
workflow_definition
Workflow Definition · object
obrigatório

Resposta

Successful Response

id
integer
obrigatório
name
string
obrigatório
status
string
obrigatório
created_at
string<date-time>
obrigatório
workflow_definition
Workflow Definition · object
obrigatório
current_definition_id
integer | null
obrigatório
template_context_variables
Template Context Variables · object | null
call_disposition_codes
CallDispositionCodes · object | null
total_runs
integer | null
workflow_configurations
Workflow Configurations · object | null
version_number
integer | null
version_status
string | null
workflow_uuid
string | null
agent_type
enum<string>
padrão:workflow
Opções disponíveis:
workflow,
prompt