Skip to main content
PUT
/
v2
/
agent
/
{agentId}
/
webhooks
cURL
curl --request PUT \
  --url https://api.gptmaker.ai/v2/agent/{agentId}/webhooks \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "onNewMessage": "<string>",
  "onLackKnowLedge": "<string>",
  "onTransfer": "<string>",
  "onFirstInteraction": "<string>",
  "onStartInteraction": "<string>",
  "onFinishInteraction": "<string>",
  "onCreateEvent": "<string>",
  "onCancelEvent": "<string>"
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agentId
string
required

ID do agente

Body

application/json

Configurações do agente a serem atualizadas

onNewMessage
string

Webhook disparado automaticamente sempre que uma nova mensagem chega em um chat.

onLackKnowLedge
string

Webhook disparado quando o agente não sabe responder a uma pergunta.

onTransfer
string

Webhook disparado quando o agente transfere o atendimento para um humano.

onFirstInteraction
string

Webhook disparado automaticamente assim que o primeiro atendimento com o cliente é iniciado.

onStartInteraction
string

Webhook disparado automaticamente sempre que um atendimento com o cliente é iniciado.

onFinishInteraction
string

Webhook disparado automaticamente sempre que um atendimento é finalizado.

onCreateEvent
string

Webhook disparado automaticamente sempre que um agendamento é realizado.

onCancelEvent
string

Webhook disparado automaticamente sempre que um agendamento é cancelado.

Response

Configurações atualizadas com sucesso

success
boolean
I