Pular para o conteúdo

GET /v1/agents/{id}/template-update

GET
/v1/agents/{id}/template-update
curl --request GET \
--url https://seu-endereco-da-api/v1/agents/example/template-update \
--header 'Authorization: Bearer <token>'

Permissão que a Chave de acesso precisa: Ler agentes de IA (agents:read).

id
required
string
Media typeapplication/json
object
template
required
object
slug
required
string
name
required
string
currentVersion
required

Template version the agent follows

number
latestVersion
required
number
available
required

A newer version can be applied

boolean
changes
required

Versions newer than the agent’s, newest first

Array<object>
object
version
required
number
changelog
required
string
publishedAt
required
string format: date-time
questions
required

Questions the newer version adds; answers go in the apply body, a skipped one uses its default

Array<object>
object
key
required

Send the answer under this key in instantiate.answers

string
label
required
string
source
required

Template: a question of the template; account: something of the account a template action needs (funnel, stage, department)

string
Allowed values: template account
kind
required
string
Allowed values: text choice pipeline stage department template loss_reason service tag payment_template
target
required
string
nullable
suggestions
required

Suggested answers for the account business type

Array<string>
options
required

Choices for account and choice questions; @create creates the department or the loss reason, @later leaves the template for later, @all keeps every service

Array<object>
object
value
required
string
label
required
string
default
required

Used when the owner skips (Pular e usar o padrão)

string
allowOther
required

Free text (Outro) is accepted

boolean

Example

{
"questions": [
{
"source": "template",
"kind": "text"
}
]
}

Agent_not_from_template