PDFMonkey Trigger icon

PDFMonkey Trigger

Triggers when PdfMonkey sends a webhook and downloads the PDF or image if successful

Overview

This node acts as a webhook trigger for PDFMonkey, a service that generates PDFs. It listens for webhook events sent by PDFMonkey when a document is processed. Upon receiving a webhook, it validates the document data, and if the document status is 'success', it downloads the generated PDF or image file. This node is useful for automating workflows that depend on PDF generation completion, such as sending the PDF to users, storing it, or further processing.

Use Case Examples

  1. Automatically trigger a workflow when a PDF is generated by PDFMonkey and download the file for storage or further processing.
  2. Use the webhook to initiate notifications or other actions once a PDF document is ready.

Output

Binary

The node outputs the downloaded PDF or image file as binary data under the 'data' key.

JSON

  • message - A message indicating the webhook was received and the document ID.
  • id - The ID of the document from PDFMonkey.
  • status - The status of the document processing (e.g., 'success').
  • filename - The filename of the downloaded PDF or image.
  • download_url - The URL from which the PDF or image can be downloaded.

Dependencies

  • Requires an API key credential for PDFMonkey API authentication to verify connection and download files.

Troubleshooting

  • If the webhook payload does not contain a valid document ID, the node throws an error indicating the missing ID.
  • If the document status is not 'success', the node does not download the file and only outputs the webhook data, which might indicate a failed or pending document generation.
  • Connection test failures indicate issues with the provided API credentials or network connectivity to PDFMonkey API.

Links

Discussion