Loading...

Zapier Automation

Zapier is a powerful automation tool that allows you to connect different apps and services together, enabling seamless data transfer and workflow automation.

Zapier is a web-based platform that allows you to create integrations, known as "Zaps," between different applications. With thousand of supported apps, including popular tools like Gmail, Slack, Trello, and Salesforce, Zapier provides an extensive range of possibilities for automation.

In this tutorial, we will focus on using Zapier to automate PDF creation using the CraftMyPDF app.

Steps to automate PDF generation

1. To get started, the first step is to choose CraftMyPDF as the app and select "Create PDF" as the event within Zapier.

2. Once you've selected the event, you need to link your CraftMyPDF account using the API key.

The API key can be obtained from the CraftMyPDF dashboard's API Integration tab. This key acts as a secure access point to your CraftMyPDF account, allowing Zapier to interact with it on your behalf.

3. After successfully connecting your account, then proceed to set up your action, choose your template, then select Payload type

There are three options for the payload:

i. Schema of Data(Recommended): This option automatically generates input fields based on the sample data in the Data tab of the template editor. It simplifies the process of creating payload data by providing a straightforward way to define the required information.

ii. Dictionary: A dictionary consists of simple key-value pairs for flat-structured JSON. Each key-value combination maps the key to its corresponding value. This option is useful when you have a relatively simple data structure that can be represented as a set of key-value pairs.

iii. JSON data: This payload type is suitable for complex hierarchical data represented in JSON format. JSON data can include strings, numbers, objects, arrays, booleans, or even null values.

Update Fillable Components in a PDF with Zapier

To find out the field ids in a PDF, please visit https://craftmypdf.com/tools/pdf-fillable-field-reader/

First frag and drop your PDF file into the upload area or click “Choose file” to select one from your device and it will analyze your PDF and display all interactive fields automatically.

After the field ids have been identified, please use the following format for the keys in your Zap:

  • [Field ID].value to fill the value
  •  [Field ID].readOnly(true/false)

For example the field id is last_name, use the key last_name.value to fill the value and last_name.readOnly to make the field readOnly

Conclusion

By leveraging the power of Zapier and CraftMyPDF, you can automate the creation of PDFs based on various triggers and inputs. Whether you need to generate reports, invoices, or other types of documents, Zapier's automation capabilities make it easy to streamline your workflow and save time.