Skip to main content
POST
Criar gatilho de automação

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required

Nome do gatilho

Required string length: 1 - 255
description
string
required

Descrição do gatilho

Required string length: 1 - 255
triggerType
enum<string>
required

Tipo do gatilho

Available options:
RECEIVE_ANY_MESSAGE,
RECEIVE_FIRST_MESSAGE,
RECEIVE_SPECIFIC_MESSAGE,
ADD_TAG_TO_CONTACT,
REMOVE_TAG_FROM_CONTACT,
RECEIVE_WEBHOOK,
SERVICE_CONTINUITY
automationTypebotId
string
required

ID da integração Typebot

Pattern: ^c[a-z0-9]{24}$
integrations
string[]
required

IDs das integrações vinculadas ao gatilho

Pattern: ^c[a-z0-9]{24}$
automationChatType
enum<string>
required

Tipo de chat que o gatilho deve considerar

Available options:
CONTACT,
GROUP,
ALL
tagId
string | null

ID da tag (obrigatório para ADD_TAG_TO_CONTACT e REMOVE_TAG_FROM_CONTACT)

Pattern: ^c[a-z0-9]{24}$
specificMessage
string | null

Mensagem específica (obrigatório para RECEIVE_SPECIFIC_MESSAGE)

inAttendance
boolean
default:false

Executar apenas quando o chat estiver em atendimento

delayMinutes
integer

Atraso em minutos antes de executar a automação

transferType
enum<string>

Tipo de transferência após a automação

Available options:
ALL,
USER,
AUTOMATION,
API,
AUTOMATION_AND_API
moveToQueue
boolean

Mover o chat para a fila após a automação

Response

Gatilho criado com sucesso

success
boolean

Indica se a operação foi bem-sucedida

data
object