Purpose
Notify other services about successful document creations through webhook callbacks, allowing you to trigger downstream processes or log document generation events in external systems.Configuration
Webhook URL Registration
Register a webhook address that will receive notifications once documents are created. DocsAutomator makes POST requests to your specified endpoint when generation completes.1
Open the Actions card
In the automation editor, open the Actions card in the right rail and click Add action
2
Add the webhook action
Pick Webhook or AI agent from the action list and keep Webhook under Send to
3
Enter URL
Enter your webhook endpoint URL
4
Test
Click Send test, or generate a preview document
Headers
Open Headers in the card to add request headers, for example an API key. Each value is stored encrypted, shown afterwards as dots ending in its last 4 characters, and sent only to the address it was saved for. After you change the webhook URL to another address, enter the header values again. Each field saves when you leave it. Click Send test to send a sample document with the saved settings and see whether your endpoint accepted it. The webhook sends the DocsAutomator JSON shown below. To start a Claude routine or a ChatGPT agent instead, see Start a Claude or ChatGPT Agent.
Additional Parameters via API
The system supports sending supplementary data alongside webhook notifications through thewebhookParams object in API requests.
webhookParams (matching the request parameter name) and additionalParams (the original key, kept for backward compatibility). Use whichever you prefer — existing integrations built on additionalParams keep working unchanged.
Webhook Payload Structure
Webhook Events
Every webhook names its event in theevent field. Use it to tell the events apart, because one webhook URL receives all of them.
The
document.created payload is shown above. A document released after an approval also carries an approval object.
The document.approval_rejected payload:
Trigger Record Identifier
The identifier of the record that triggered the generation is included automatically, so you can match webhook notifications to records in your data source:
- Airtable, SmartSuite, Notion:
recId(NotionpageIdand button triggers are normalized torecId) - ClickUp:
taskId - Google Sheets:
rowNumber— positional at trigger time, so treat it as “which row triggered this” rather than a durable key
webhookParams keys are never overwritten by the automatic identifier.Use Cases
CRM Updates
Update customer records when documents are generated
Workflow Triggers
Trigger downstream automation workflows
Logging
Log document generation events to external systems
Notifications
Send alerts to team collaboration tools