Workato Integration: Automate Document Generation
Last updated March 23, 2026
The PDFMonkey connector for Workato lets you generate, monitor, and clean up documents as part of your automated recipes. Combine it with triggers from CRMs, form builders, or databases to produce and deliver files without writing code.
Setup
Before you begin, make sure you have:
- A PDFMonkey account (sign up here)
- A Workato account
- A published template in PDFMonkey
For account creation and template setup, see From Zero to First Document.
To connect PDFMonkey to Workato:
- Add the PDFMonkey connector to your recipe.
- Create a new connection and enter your API Secret Key, available on the My Account page.
Once connected, the PDFMonkey actions and triggers are available in your recipe steps.
Generate a Document
Use the Generate Document action to create a document from one of your templates.
- Select the template to use for generation.
- Provide the dynamic data as a JSON payload. This data populates the variables defined in your template.
- Optionally attach metadata (such as a custom filename or a reference ID for downstream processing).
Naming variables
Document generation is asynchronous: the action sends the generation request and returns immediately. Use the Document Generated trigger below to react when the file is ready.
Custom Filename
You can specify a custom name for the generated file. This is useful when storing documents in services like Google Drive, Dropbox, or another cloud storage platform.
Keep these restrictions in mind:
- The filename must not contain any slash
/or backslash\ - Non-latin characters should be avoided as they can be corrupted when saving the file
Short names based on dates or IDs tend to work best.
Metadata
When you generate a document, you can attach metadata to it. Metadata is not available in the template and does not influence the document content; it is simply attached to the document for later use.
A common use case is receiving the document via a webhook and using its metadata to route or handle it differently in your automation.
Document Generated Trigger
Use the Document Generated trigger to start a recipe when a document finishes generating. This is the recommended way to handle the asynchronous generation workflow.
The trigger provides the completed document’s data, including:
- Download URL — a temporary link to the generated file (valid for 1 hour). See Download URL for details.
- Filename — the name of the generated file
- Metadata — any metadata attached during generation
- Status — the generation result (
successorfailure). See Document Statuses for the full lifecycle.
You can filter by template to ensure the recipe only runs for documents from a specific template.
Dynamic data is not included
Delete a Document
Use the Delete Document action to remove a previously generated document from your PDFMonkey account. This is useful for cleaning up documents after they have been downloaded, emailed, or stored elsewhere in your workflow.
Automatic cleanup
Example Recipes
Form Submission to Document to Email
- Trigger on a form submission (from a connected app).
- Use Generate Document to create the document with the form data.
- Use Document Generated to wait for the file.
- Download the file and send it as an email attachment.
CRM Record to Document to Cloud Storage
- Trigger on a new or updated CRM record.
- Use Generate Document to create a contract, invoice, or report.
- Use Document Generated to get the download URL.
- Upload the file to Google Drive, Dropbox, or another storage service.
Generate, Store, and Clean Up
- Trigger on an event in your app (new order, approved contract, etc.).
- Use Generate Document to create the file.
- Use Document Generated to get the download URL.
- Upload the file to permanent storage (S3, Google Drive, Sharepoint).
- Use Delete Document to remove the file from PDFMonkey.
Troubleshooting
Download URL Expired
The download URL is valid for 1 hour. If a later step in your recipe fails because the URL has expired, restructure your recipe so the download happens immediately after the Document Generated trigger fires.
For more details, see Download URL Returns 403.
Template Not Published
If the generated documents do not reflect your latest template changes, the most likely cause is an unpublished template. Open your template in PDFMonkey and click Publish before running the recipe again.
Common mistake
Next Steps
- From Zero to First Document: Set up your PDFMonkey account and create your first template
- Defining Dynamic Data: Learn how to structure the JSON payload for your templates
- Custom Filename: Control the name of generated files
- Document Statuses: Understand the lifecycle of a generated document
- Webhooks: Receive real-time notifications when documents finish generating
- Retention and Deletion: Set up automatic document cleanup with TTL
- Explore other integrations: Zapier, Make, n8n
Frequently asked questions
- How do I generate documents with PDFMonkey and Workato?
- Add the PDFMonkey connector to your Workato recipe, enter your API Secret Key to connect, then use the Generate Document action to create a document from a template with your dynamic data payload.
- How do I know when a PDFMonkey document is ready in Workato?
- Use the Document Generated trigger to start a recipe step when a document finishes generating. It provides the download URL, filename, metadata, and status. You can filter by template so the recipe only runs for specific documents.
- Can I automatically delete documents after processing in Workato?
- Yes. Use the Delete Document action in a later recipe step to remove the document from PDFMonkey after you’ve downloaded, emailed, or stored it. Alternatively, configure automatic deletion (TTL) in PDFMonkey to clean up documents after a set period.