Pular para o conteúdo

POST /v1/contacts/custom-fields/{id}/ai-fill-preview

POST
/v1/contacts/custom-fields/{id}/ai-fill-preview
curl --request POST \
--url https://seu-endereco-da-api/v1/contacts/custom-fields/example/ai-fill-preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "messages": [ { "role": "user", "content": "example" } ], "description": "example" }'

Permissão que a Chave de acesso precisa: Gerenciar campos personalizados (contacts:fields).

id
required
string
Media typeapplication/json
object
messages
required
Array<object>
>= 1 items <= 50 items
object
role
required
string
Allowed values: user assistant
content
required
string
<= 4000 characters
description
string
nullable <= 500 characters
Media typeapplication/json
object
value
required

O valor que a IA gravaria lendo a conversa de exemplo; null quando a conversa nao responde

nullable
One of:
string
blocked
required

Why the AI was not asked; value is null when set

string
nullable
Allowed values: disabled daily_cap no_credit

Example

{
"blocked": "disabled"
}

Field missing, archived, hidden or computed

The AI could not answer