Hook de Nuevo Cliente
Workflow activado por hook que se ejecuta después de que se crea un cliente
hook after-create clients notifications event-driven
Qué está incluido
| Campo | Valor |
|---|---|
| Nombre | Hook de Nuevo Cliente |
| Tipo | Workflow |
| Trigger | hook |
| Pasos | 1 |
JSON Completo
Clic 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
- Descargue el archivo ZIP usando el botón de arriba
- Navegue a Configuración de la Empresa → Transferencia de Datos en su panel de AutoTalk
- Haga clic en Importar y seleccione el archivo ZIP descargado
- Revise el resumen de importación y confirme
- Todos los IDs de documentos se remapean automáticamente — no se necesita edición manual de IDs