Skip to main content

New Client Hook

Hook-triggered workflow that fires after a client is created

hook after-create clients notifications event-driven

Download ZIP

What's Included

FieldValue
NameNew Client Hook
TypeWorkflow
Triggerhook
Steps1

Full JSON

Click to expand
{
"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"
}
}
}
}
]
}
}

How to Import

  1. Download the ZIP file using the button above
  2. Navigate to Company Settings → Data Transfer in your AutoTalk dashboard
  3. Click Import and select the downloaded ZIP file
  4. Review the import summary and confirm
  5. All document IDs are automatically remapped — no manual ID editing needed