GET /v1/agents/{id}/template-update
const url = 'https://seu-endereco-da-api/v1/agents/example/template-update';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Path Parameters
Seção intitulada “Path Parameters”Responses
Seção intitulada “Responses”object
object
Template version the agent follows
A newer version can be applied
Versions newer than the agent’s, newest first
object
Questions the newer version adds; answers go in the apply body, a skipped one uses its default
object
Send the answer under this key in instantiate.answers
Template: a question of the template; account: something of the account a template action needs (funnel, stage, department)
Suggested answers for the account business type
Choices for account and choice questions; @create creates the department or the loss reason, @later leaves the template for later, @all keeps every service
object
Used when the owner skips (Pular e usar o padrão)
Free text (Outro) is accepted
Example
{ "questions": [ { "source": "template", "kind": "text" } ]}Agent_not_from_template