Skip to main content

Integrately

Prerequisites

  • A PolyDoc account and API key — sign up for free, no credit card required. The free plan includes 150 PDF conversions per month.
  • An Integrately account — sign up for free, no credit card required.

Use Case 1: Generate PDFs from Google Sheets

Create an invoice PDF from each new Google Sheets row and email it automatically.
Google Sheets (new row) → HTTP/Webhook action (PolyDoc API) → Gmail

Create a new automation

Log in to Integrately and click New Automation. Give it a descriptive name (e.g. "Google Sheets to PolyDoc PDF").

Screenshot placeholder: /img/guides/integrately/integrately-uc1-new-automation.png

Add Google Sheets trigger

Add a worksheet with column headers that match your PolyDoc template. The example below uses an invoices tab and one sample row; you can import data via File → Import (CSV/XLSX).

invoice_numberinvoice_dateinvoice_due_dateinvoice_subtotalinvoice_tax_rateinvoice_tax_amountinvoice_totalcustomer_namecustomer_emailcustomer_streetcustomer_citycustomer_country
INV-2026-0012026-01-152026-02-1412000.11201320John Doejohn.doe@example.com456 Customer AvenueBeautiful CityUK

Select Google Sheets as the trigger app and choose New Row as the event. Connect your Google account, then pick the spreadsheet and the invoices tab to watch.

Screenshot placeholder: /img/guides/integrately/integrately-uc1-sheets-trigger.png

Add HTTP/Webhook action for PolyDoc

Add an HTTP/Webhook action and configure:

  • URL: https://api.polydoc.tech/pdf/convert
  • Method: POST
  • Headers: Authorization: Bearer YOUR_API_KEY and X-Sandbox: true (get your API key from the Dashboard)
  • Content-Type: application/json
  • Body: JSON mapping spreadsheet columns to your PolyDoc template fields.
Screenshot placeholder: /img/guides/integrately/integrately-uc1-http-action.png

Add Gmail action to send the PDF

Add a Gmail action after the HTTP step. Map the recipient email, subject, and attach the PDF from the HTTP response body.

Screenshot placeholder: /img/guides/integrately/integrately-uc1-gmail-action.png

Activate the automation

Click Test Automation to run a test with sample data. Once the PDF is generated and emailed successfully, toggle the automation ON.

Screenshot placeholder: /img/guides/integrately/integrately-uc1-activate.png

Use Case 2: Webhook-Triggered PDF

Accept incoming webhook data and generate a PDF on demand.
Webhook trigger → HTTP action (PolyDoc API) → Output

Create automation with Webhook trigger

Create a new automation and select Webhook as the trigger app. Integrately will generate a unique webhook URL — copy it.

Screenshot placeholder: /img/guides/integrately/integrately-uc2-webhook-trigger.png

Send test data to the webhook URL

Send a test POST request to the webhook URL with a sample JSON payload. Integrately uses this to learn the incoming data structure and make fields available for mapping.

Screenshot placeholder: /img/guides/integrately/integrately-uc2-test-data.png

Add HTTP action for PolyDoc

Add an HTTP/Webhook action configured for the PolyDoc API. Set the URL, method, headers (Authorization, X-Sandbox), and map webhook fields to the JSON body for your template.

Screenshot placeholder: /img/guides/integrately/integrately-uc2-http-action.png

Deliver the PDF

Add a delivery action — email, cloud storage, or another app — to send or store the generated PDF. Test the full automation end-to-end, then activate it.

Screenshot placeholder: /img/guides/integrately/integrately-uc2-deliver.png