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).
/img/guides/ifttt/ifttt-uc1-webhooks-trigger.pngAdd "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)
/img/guides/ifttt/ifttt-uc1-web-request-action.pngConfigure 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.
/img/guides/ifttt/ifttt-uc1-json-body.pngTest 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.
/img/guides/ifttt/ifttt-uc1-test-webhook.pngUse 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_number | invoice_date | invoice_due_date | invoice_subtotal | invoice_tax_rate | invoice_tax_amount | invoice_total | customer_name | customer_email | customer_street | customer_city | customer_country |
|---|---|---|---|---|---|---|---|---|---|---|---|
| INV-2026-001 | 2026-01-15 | 2026-02-14 | 1200 | 0.1 | 120 | 1320 | John Doe | john.doe@example.com | 456 Customer Avenue | Beautiful City | UK |
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.
/img/guides/ifttt/ifttt-uc2-sheets-trigger.pngAdd "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.
/img/guides/ifttt/ifttt-uc2-web-request.pngMap 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.
/img/guides/ifttt/ifttt-uc2-map-columns.png