POST /v1/agents/{id}/intents/proposal
POST
/v1/agents/{id}/intents/proposal
const url = 'https://seu-endereco-da-api/v1/agents/example/intents/proposal';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"description":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://seu-endereco-da-api/v1/agents/example/intents/proposal \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "description": "example" }'Permissão que a Chave de acesso precisa: Gerenciar agentes de IA (agents:manage).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”id
required
string
Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
description
required
What the owner wants the agent to do, in plain words
string
Example generated
{ "description": "example"}Responses
Seção intitulada “Responses”Media typeapplication/json
object
intents
required
Proposed intents in the same shape the agent PATCH accepts; nothing is saved until the owner accepts them
Array<object>
object
name
required
string
description
required
string
samples
required
Array<string>
enabled
required
boolean
collect
required
Array<object>
object
key
required
string
label
required
string
question
required
string
type
required
string
required
required
boolean
options
Array<string>
validationHint
string
saveToContact
boolean
action
required
object
type
required
string
replyText
string
replyVerbatim
boolean
request
object
method
required
string
url
required
string
headers
Array<object>
object
key
required
string
value
required
string
body
string
connectionId
string format: uuid
transferKind
string
transferTargetId
string
transferLabel
string
transferFallbackDepartmentId
string format: uuid
media
Array<object>
object
name
required
string
kind
required
string
mediaKey
string
charge
object
key
additional properties
any
actions
Array<object>
object
Example
{ "intents": [ { "collect": [ { "type": "text" } ], "action": { "type": "reply", "request": { "method": "GET" }, "transferKind": "department", "media": [ { "kind": "image" } ] } } ]}The agent already has the maximum number of intents
No AI credit left