Hook de Novo Cliente
Workflow acionado por hook que é executado após um cliente ser criado
hook after-create clients notifications event-driven
O que está incluído
| Campo | Valor |
|---|---|
| Nome | Hook de Novo Cliente |
| Tipo | Workflow |
| Trigger | hook |
| Etapas | 1 |
JSON Completo
Clique para expandir
{
"description": "Hook-triggered workflow that fires after a client is created",
"tags": [
"hook",
"after-create",
"clients",
"notifications",
"event-driven"
],
"document": {
"name": "New Client Hook",
"enabled": true,
"log_level": "info",
"trigger": {
"type": "hook",
"hook": {
"model": "clients",
"op": "afterCreate",
"filter": {
"expr": "true",
"onFailure": "throw",
"resultType": "any"
}
}
},
"steps": [
{
"condition": {
"expr": "true",
"onFailure": "throw",
"resultType": "any"
},
"action": {
"actionType": "actions/notifications/company/notification/create",
"actions/notifications/company/notification/create": {
"title": {
"expr": "'New client: ' + doc.name",
"onFailure": "throw",
"resultType": "any"
},
"body": {
"expr": "'A new client was added'",
"onFailure": "throw",
"resultType": "any"
}
}
}
}
]
}
}
Como Importar
- Baixe o arquivo ZIP usando o botão acima
- Navegue até Configurações da Empresa → Transferência de Dados no seu painel AutoTalk
- Clique em Importar e selecione o arquivo ZIP baixado
- Revise o resumo da importação e confirme
- Todos os IDs de documentos são remapeados automaticamente — nenhuma edição manual de IDs é necessária