Page cover

Make

Overview

Make (formerly Integromat) is a powerful visual automation platform that lets you connect apps and automate workflows without coding. With Make, you can create complex multi-step automations called "scenarios" that trigger actions across thousands of apps.

The DocsAutomator app in Make lets you automatically generate PDF documents and Google Docs from your templates whenever your scenarios run. Whether you're creating invoices from new orders, generating contracts from form submissions, or producing reports from database records, DocsAutomator handles the document creation seamlessly.

circle-check

Key Benefits

  • Visual workflow builder - Design complex automations with Make's intuitive drag-and-drop interface

  • Dynamic field mapping - Placeholders and line items load automatically based on your template

  • 1,000+ app integrations - Connect DocsAutomator with virtually any app in Make's ecosystem

  • Powerful data transformation - Use Make's built-in functions to format and manipulate data before document generation

Step-by-Step Guide

Step 1: Create an Automation in DocsAutomator

  1. Click New Automation

  2. Select Make as your data source

  3. Choose or create a Google Docs template with placeholders (e.g., {{customer_name}}, {{invoice_date}})

  4. Complete the setup wizard and save your automation

Step 2: Get Your API Key

  1. In DocsAutomator, go to SettingsAPI

  2. Copy your API key - you'll need this to connect Make to your account

Step 3: Add DocsAutomator to Your Make Scenario

  1. In Make, create a new scenario or open an existing one

  2. Click the + button to add a new module

  3. Search for DocsAutomator

  4. Select Create Document

Step 4: Connect Your Account

  1. Click Create a connection

  2. Enter a connection name (e.g., "DocsAutomator")

  3. Paste your API key

  4. Click Save

circle-info

Your API key is stored securely and only needs to be entered once. All future DocsAutomator modules will use this connection.

Step 5: Configure the Module

  1. Automation: Select your automation from the dropdown. Only automations with "Make" or "API" data source will appear.

  2. Document Name (optional): Enter a custom name for the generated document. You can use data from previous modules (e.g., Invoice-{{1.order_id}}).

  3. Placeholder Values: Map your data to each placeholder field. Click on a field and select values from previous modules in your scenario.

  4. Line Items (if applicable): If your template has line items, you'll see array fields like "Line Items 1". Map arrays from previous modules or use Make's array aggregator.

Step 6: Test Your Scenario

  1. Click Run once at the bottom of the screen

  2. Check the DocsAutomator module output for:

    • PDF URL: Direct link to download the PDF

    • Google Doc URL: Link to the generated Google Doc

    • File ID: Google Drive file ID

circle-check

Working with Line Items

Line items allow you to generate tables with multiple rows - perfect for invoices, quotes, and reports.

Template Setup

In your Google Docs template, create a table row with line item placeholders:

Description
Quantity
Price

{{line_items_1_description}}

{{line_items_1_quantity}}

{{line_items_1_price}}

Mapping Line Items in Make

Line items should be an array of objects. In Make, you can:

  1. Map directly from a previous module that outputs an array (e.g., "List Order Items")

  2. Use an Array Aggregator to combine multiple items into an array

  3. Create manually using Make's array syntax

Example structure:

circle-info

The field names in your array must match your template placeholders exactly (without the line_items_1_ prefix).

Tips & Best Practices

Use Preview Mode for Testing

When building your scenario, test with DocsAutomator's preview feature first to ensure your template and placeholders are configured correctly.

Handle Errors Gracefully

Add error handling to your scenario using Make's error handler routes. Common errors include:

  • Invalid API key

  • Automation not found

  • Missing required placeholders

Format Data Before Sending

Use Make's built-in functions to format your data:

  • formatDate() - Format dates consistently

  • formatNumber() - Format currency and numbers

  • replace() - Clean up text data

Working with Large Documents

For documents that take longer to generate, DocsAutomator processes them asynchronously. The module will wait for completion and return the URLs when ready.

FAQs

Q: Why don't I see my automation in the dropdown?

A: Only automations with "Make" or "API" as the data source appear in the dropdown. Edit your automation in DocsAutomator and change the data source if needed.

Q: Can I generate multiple documents in one scenario?

A: Yes! Add multiple DocsAutomator modules to your scenario, or use Make's iterator to loop through records and generate a document for each.

Q: How do I send the generated PDF via email?

A: Use the PDF URL output from the DocsAutomator module. In your email module (Gmail, Outlook, etc.), you can either:

  • Include the PDF URL as a link in the email body

  • Use an HTTP module to download the PDF, then attach it to the email

Or you can also send emails with DocsAutomator, setup in your automation settings

Resources

Last updated