Skip to main content

IFTTT

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 IFTTT account — sign up for free, free plan includes 2 applets.

Use Case 1: Generate PDFs with Webhooks

Fire a webhook and generate a PDF via PolyDoc in a single Applet.
Webhooks service (receive trigger) → Make a web request action (PolyDoc API)

Create an Applet with a Webhooks trigger

Go to Create and start a new Applet. For the "If This" trigger, choose the Webhooks service and select Receive a web request. Give the event a name (e.g. generate_pdf).

Screenshot placeholder: /img/guides/ifttt/ifttt-uc1-webhooks-trigger.png

Add "Make a web request" action

For the "Then That" action, search for Webhooks and select Make a web request. Configure:

  • URL: https://api.polydoc.tech/pdf/convert
  • Method: POST
  • Content Type: application/json
  • Additional Headers: Authorization: Bearer YOUR_API_KEY | X-Sandbox: true (get your API key from the Dashboard)
Screenshot placeholder: /img/guides/ifttt/ifttt-uc1-web-request-action.png

Configure the JSON body

In the Body field, build your JSON payload. Use IFTTT ingredients ({{Value1}}, {{Value2}}, etc.) to inject dynamic data from the webhook trigger into your PolyDoc template fields.

Screenshot placeholder: /img/guides/ifttt/ifttt-uc1-json-body.png

Test by firing the webhook

Save the Applet and fire the webhook to test. Go to Webhooks → Documentation in IFTTT to find your personal trigger URL. Send a POST request with value1, value2, and value3 as JSON. Check the Applet activity log to confirm the PDF was generated.

Screenshot placeholder: /img/guides/ifttt/ifttt-uc1-test-webhook.png

Use Case 2: PDF on Google Sheets Row

Automatically generate an invoice PDF whenever a new row is added to a Google Sheets spreadsheet.
Google Sheets (new row) → Make a web request (PolyDoc API)

Create an Applet with 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

Create a new Applet. For "If This", choose Google Sheets and select New row added to spreadsheet. Connect your Google account and pick the spreadsheet whose invoices tab you want to watch.

Screenshot placeholder: /img/guides/ifttt/ifttt-uc2-sheets-trigger.png

Add "Make a web request" action for PolyDoc

For "Then That", add Webhooks → Make a web request and configure the PolyDoc API endpoint, method, headers, and content type exactly as in Use Case 1.

Screenshot placeholder: /img/guides/ifttt/ifttt-uc2-web-request.png

Map spreadsheet columns to the JSON body

In the Body field, map your spreadsheet columns to template fields using IFTTT's Google Sheets ingredients (e.g. {{ColumnA}} for invoice_number, {{ColumnB}} for customer_email — match each ingredient to the column order in your invoices header row). Save the Applet and add a test row to verify PDF generation.

Screenshot placeholder: /img/guides/ifttt/ifttt-uc2-map-columns.png