Skip to main content
POST
/
v2
/
agent
/
{agentId}
/
transfer-rules
cURL
curl --request POST \
  --url https://api.gptmaker.ai/v2/agent/{agentId}/transfer-rules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "instructions": "<string>",
  "returnOnFinish": true,
  "type": "HUMAN",
  "userId": "<string>",
  "agentId": "<string>"
}'
{
  "id": "<string>",
  "createdAt": "<string>",
  "instructions": "<string>",
  "returnOnFinish": true,
  "type": "HUMAN",
  "agentId": "<string>",
  "userId": "<string>"
}

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

Dados da regra de transferência a ser adicionado

instructions
string

Instruções visíveis na transferência

returnOnFinish
boolean

Define se deve retornar ao assistente após o atendimento

type
enum<string>
Available options:
HUMAN,
AGENT
userId
string | null

Id do usuário de destino (caso o tipo seja HUMAN)

agentId
string | null

Id do agente de destino (caso o tipo seja AGENT)

Response

Regra de transferência criada com sucesso

id
string

Id da regra

createdAt
string

data de atualização do campo

instructions
string

Instruções visíveis na transferência

returnOnFinish
boolean

Define se deve retornar ao assistente após o atendimento

type
enum<string>
Available options:
HUMAN,
AGENT
agentId
string | null

Id do agente de destino (se aplicável)

userId
string | null

Id do usuário de destino (se aplicável)

I