Softr
Softr is a powerful no-code platform that lets you build web apps, client portals, internal tools, and websites
Prerequisites
Before setting up the integration, ensure you have:
A DocsAutomator account (free trial available)
Setting Up the Integration
Follow these steps to connect DocsAutomator with your Softr application.
Step 1: Create a DocsAutomator Automation

First, set up your automation in DocsAutomator:
Log in to your DocsAutomator account
Click New Automation from the dashboard
Select Softr as your data source
Choose or create your Google Doc template
Configure your output settings (PDF, email, Google Drive folder, etc.)
Save the automation
Step 2: Get Your API Key

In DocsAutomator, go to Settings β API Key
Copy your API keyβyou'll need this for Softr
Step 3: Connect DocsAutomator in Softr
Log in to Softr Studio
Open your application
Go to Settings β Integrations
Find DocsAutomator in the third-party integrations list
Paste your API key and save
Once connected, DocsAutomator will be available as an action type in Softr workflows.
Setting Up the Integration
Follow these steps to connect DocsAutomator with Softr Workflows.
Step 1: Create a DocsAutomator Automation
First, set up your automation in DocsAutomator:
Log in to your DocsAutomator account
Click New Automation from the dashboard
Select Softr as your data source
Choose or create your Google Doc template
Configure your output settings (PDF, email, Google Drive folder, etc.)
Save the automation
Note: You don't need to map placeholders in DocsAutomatorβplaceholder mapping is done in Softr when you configure the workflow action.
Step 2: Get Your API Key
In DocsAutomator, go to Settings β API Key
Copy your API keyβyou'll need this for Softr
Step 3: Connect DocsAutomator in Softr
Log in to Softr Studio
Open your application
Go to Settings β Integrations
Find DocsAutomator in the integrations list
Paste your API key and save
Once connected, DocsAutomator will be available as an action in your Softr Workflows.
Creating a Workflow with DocsAutomator
Now you can add document generation to any workflow.
Step 1: Create a New Workflow
In Softr Studio, go to Workflows
Click Create Workflow
Choose a trigger for your workflow:
Softr triggers:
Softr Databases β Trigger when records are created or updated in Softr's native databases
Softr Apps β Trigger from events in your Softr app (form submissions, button clicks, etc.)
Built-in triggers:
Webhook β Trigger from external services (Pro plan)
One-time schedule β Run once at a specific date/time
Recurring schedule β Run on a recurring basis (daily, weekly, monthly)
Integration triggers:
Airtable β Trigger when Airtable records are created or updated
Google Sheets β Trigger from Google Sheets changes
Gmail β Trigger from incoming emails
Notion β Trigger from Notion database changes
Step 2: Add the DocsAutomator Action

After your trigger, click the + button to add an action
Select DocsAutomator from the integrations list
Choose Create document
Step 3: Configure the Action
The Create document action has the following settings:
Account β Select your connected DocsAutomator account
Automation ID β Choose which DocsAutomator automation to use
Document Name β Set a dynamic name for the generated document (optional)
JSON body for placeholders β Map your data to template placeholders
Note: Only automations with Softr as the data source will appear in the Automation ID dropdown.
Step 4: Map Your Data
In the JSON body, map your workflow data to the placeholders in your Google Doc template. Use the @ button to insert dynamic values from your workflow.
You can reference data from:
Trigger data β Fields from the record or event that triggered the workflow
Previous steps β Output from earlier workflow actions (Find records, Run code, etc.)
Static values β Fixed text or numbers
Step 5: Test Your Workflow
Click Test Workflow in Softr
Select a sample record or provide test data
Verify the document was generated correctly in DocsAutomator's Run History
Working with Line Items
If your documents include repeating data (like invoice line items or task lists), you can pass them from your workflow.
Passing Line Items
Include line items in your JSON body using the line_items_1 key (or line_items_2, line_items_3 for multiple sets):
Line Items from Related Records
To include line items from related records (e.g., tasks linked to a project), use a multi-step workflow:
Find multiple records β Fetch the related records
Run custom code β Format the records into a line items array
Create document β Pass the formatted array to DocsAutomator
Example: Fetching tasks for a project
After finding related records, add a Run custom code step to format them:
Note: Softr fields are referenced by their field ID, not their display name. You can find field IDs in your Softr database settings or by inspecting the data in the workflow's Testing tab.
Then in the DocsAutomator action, reference the code step's output:
See also: Line Items Documentation for detailed formatting options.
Including Images
To include images in your documents, use the image_ prefix for your placeholder names in your Google Doc template:
Then pass the image URLs in your JSON body:
Note: Images must be publicly accessible URLs. The
image_prefix tells DocsAutomator to insert an image at that location rather than text.
See also: Dynamic Images Documentation for more details.
Common Use Cases
Invoice with Line Items
Generate invoices with line items from related records:
Trigger: Softr Databases β Record meets conditions (Status = "Ready to Invoice")
Find multiple records β Fetch invoice line items linked to the order
Run custom code β Format line items into an array
Create document β Generate invoice with line items
Update record β Save the PDF URL back to the order record
Project Summary Report
Generate project summaries with task lists:
Trigger: Softr Databases β Record meets conditions
Find multiple records β Fetch tasks linked to the project
Run custom code β Format tasks into line items
Create document β Generate project summary
Update record β Save document URL to project record
Contract on Status Change
Create contracts when deals reach a specific stage:
Trigger: Softr Databases β Record meets conditions (Stage = "Contract")
Create document β Generate contract from deal data
Update record β Save contract URL to deal record
Scheduled Reports
Automatically generate reports on a recurring basis:
Trigger: Recurring schedule β Weekly or monthly
Find multiple records β Fetch records for the report period
Run custom code β Aggregate and format data
Create document β Generate the report
Send email or notification β Deliver to stakeholders
Troubleshooting
Automation Not Appearing in Dropdown
Verify your automation uses Softr as the data source in DocsAutomator
Check that your DocsAutomator account is connected in Softr's integration settings
Try disconnecting and reconnecting the DocsAutomator integration
Document Not Generating
Check Run History: Go to DocsAutomator β Run History to see error details
Verify JSON Body: Ensure your JSON is valid and all placeholder names match your template exactly
Test the Create document step: Use Softr's Testing tab to run the action with sample data
Data Not Appearing in Document
Check JSON Mapping: Verify the correct fields are referenced in the JSON body
Test with Static Values: Replace dynamic references with static text to isolate the issue
Check Data Types: Dates and numbers may need specific formatting
Verify Previous Steps: If using data from Find records or Code steps, test those steps first
Line Items Not Working
Use correct key: Line items must use
line_items_1(with underscores), notlineItems1Check array format: Line items must be a JSON array of objects
Use field IDs: In code steps, reference fields by their ID (e.g.,
task.fields['fBKYw']), not display nameVerify code step output: Test the code step to ensure it returns the expected array
Workflow Not Triggering
Check Trigger Conditions: Verify your trigger conditions match the expected events
Review Workflow Logs: Check Softr's workflow logs for errors
Test Manually: Use Softr's Testing tab to run the workflow with sample data
Tips & Best Practices
Use Descriptive Placeholder Names: In your Google Doc template, name placeholders clearly (e.g.,
Project_Nameinstead ofname) to make JSON mapping easierTest Each Step: Use Softr's Testing tab to test each workflow step individually before running the full workflow
Test with Preview Mode: Enable preview mode in DocsAutomator to test without using document credits
Organize Your Automations: Name automations descriptively so they're easy to identify in the Automation ID dropdown
Store Document URLs: Add an Update record step after Create document to save the PDF URL back to your records
Use Code Steps for Complex Data: When you need to transform or combine data from multiple records, use a Run custom code step before the Create document action
Find Field IDs: Softr fields are referenced by ID (e.g.,
fBKYw), not display name. Find field IDs in your database settings or by testing a workflow step and inspecting the output data
FAQs
Which Softr plans include Workflows?
Check Softr's pricing page for current plan features and Workflows availability.
Can I trigger multiple document generations in one workflow?
Yes, you can add multiple Create document actions to a single workflow. Each action can use a different automation and generate different documents. For example, you might generate an invoice and a receipt from the same trigger.
Can I send the document via email?
Yes! Configure email delivery in your DocsAutomator automation settings. When the workflow runs, the document will automatically be emailed to the specified recipients. Alternatively, send emails from Softr Workflows.
Can I use the generated document URL in subsequent workflow steps?
Yes, the Create document action returns the document URL, which you can use in later workflow steps. A common pattern is to add an Update record step after document generation to save the PDF URL back to your database:
Add an Update record action after the Create document step
Select the record to update (usually the trigger record)
Map the document URL from the Create document step to a File field in your record
This lets users access their generated documents directly from your Softr app.
Resources
Last updated
