Quick overview
This workflow receives PDF Generator API document callbacks, logs new form submissions to Google Sheets, and when a document is signed it updates the record, optimizes and downloads the signed PDF, then delivers it via Gmail, posts a Slack notification, and archives a copy in Google Drive.
How it works
- Receives a POST webhook callback from PDF Generator API at
/document-callback when a form is submitted or a document is signed.
- Routes the incoming event based on whether
action_data.action equals signed or action_data is missing.
- For form submissions, appends the signer’s details and
Signed = false to a Google Sheets spreadsheet.
- For signed events, updates the matching Google Sheets row by
Public ID to set Signed = true and store the signing timestamp.
- Uses PDF Generator API to optimize the signed PDF from the callback file URL and downloads it as a binary file.
- Emails the signed PDF to the signer via Gmail, posts a signed-notification message to a Slack channel, and uploads the PDF to a Google Drive folder for archiving.
Setup
- Add credentials for PDF Generator API, Google Sheets, Gmail, Slack, and Google Drive.
- In PDF Generator API, configure the template/form callback URL to the webhook production URL for
POST /document-callback and ensure both submission and signed events are sent.
- Create or select a Google Sheets spreadsheet with columns for the captured fields (for example: Full Name, Email, Phone, Address, City, Birth Date, Public ID, Signed, Signed At) and set the document and sheet IDs in the Google Sheets steps.
- Choose the target Slack channel, Google Drive folder, and adjust the Gmail recipient/subject/body and the uploaded PDF filename to match your process.