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:

For account creation and template setup, see From Zero to First Document.

To connect PDFMonkey to Workato:

  1. Add the PDFMonkey connector to your recipe.
  2. 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.

  1. Select the template to use for generation.
  2. Provide the dynamic data as a JSON payload. This data populates the variables defined in your template.
  3. Optionally attach metadata (such as a custom filename or a reference ID for downstream processing).

Naming variables

Variable names in your template must follow specific formatting rules. See the naming variables reference for correct and incorrect formats.

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.

For more details on filename options (including setting filenames via the API), see Custom Filename.

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 (success or failure). 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

The trigger does not include the original dynamic data (payload) you sent to generate the document. If you need this information in later recipe steps, store it in the metadata field when generating the document.

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

Instead of manually deleting documents, consider using automatic deletion (TTL) to have documents cleaned up after a configurable period.

Example Recipes

Form Submission to Document to Email

  1. Trigger on a form submission (from a connected app).
  2. Use Generate Document to create the document with the form data.
  3. Use Document Generated to wait for the file.
  4. Download the file and send it as an email attachment.

CRM Record to Document to Cloud Storage

  1. Trigger on a new or updated CRM record.
  2. Use Generate Document to create a contract, invoice, or report.
  3. Use Document Generated to get the download URL.
  4. Upload the file to Google Drive, Dropbox, or another storage service.

Generate, Store, and Clean Up

  1. Trigger on an event in your app (new order, approved contract, etc.).
  2. Use Generate Document to create the file.
  3. Use Document Generated to get the download URL.
  4. Upload the file to permanent storage (S3, Google Drive, Sharepoint).
  5. 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

Forgetting to publish your template is a frequent error, especially when switching between Workato and PDFMonkey. Always publish after making changes.

Next Steps

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.