curl --request POST \
--url https://api.timelyai.com.br/v1/agent/{id}/intentions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"examples": [
"<string>"
],
"action_type": "<string>",
"action_config": {}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Agendamento",
"description": "<string>",
"examples": [
"<string>"
],
"action_type": "schedule",
"action_config": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Cria uma nova intenção para o agente. Requer scope intentions:write.
curl --request POST \
--url https://api.timelyai.com.br/v1/agent/{id}/intentions \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"description": "<string>",
"examples": [
"<string>"
],
"action_type": "<string>",
"action_config": {}
}
'{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Agendamento",
"description": "<string>",
"examples": [
"<string>"
],
"action_type": "schedule",
"action_config": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Chave de API para autenticação. Obtenha sua chave em https://app.timelyai.com.br/developers
ID do agente (UUID)
Corpo da requisição
Intenção criada com sucesso
Show child attributes