How a Document Studio Workflow Works
A workflow tells Document Studio what to do with each row of a Google Sheet, or with each response to a Google Form. Every workflow is built in the same five steps, whether it makes one certificate or sends a thousand invoices.
If you have not built a workflow yet, do the Quickstart first. This page explains what each step is for.
The Five Steps
Section titled “The Five Steps”| Step | What you decide | Read more |
|---|---|---|
| Source | The name of the workflow, and the sheet that holds the data | Prepare Source Data |
| Conditions | Whether every row is processed, or only rows that match rules | Conditions |
| Tasks | What happens for each row: create a file, send an email, post to an app | Apps and tasks |
| Save | Whether the workflow runs by itself, and when | Triggers |
| Run | Which rows to process now | Run a Workflow |
An Example
Section titled “An Example”Maya runs workshops at Willow Lane Studio. After each course she sends a certificate to the people who finished it.
| Step | Maya’s choice |
|---|---|
| Source | The Certificates sheet, with the columns Name, Email, Course, Completed |
| Conditions | Only rows where Completed exactly matches Yes |
| Tasks | Create File: a PDF from her Google Docs template. Send Email: the PDF to the student. |
| Save | Run workflow every hour, so new rows are handled without her |
| Run | She runs it once by hand for the rows that are already in the sheet |
Step 1: Source
Section titled “Step 1: Source”- Open the Extensions menu in Google Sheets and choose Document Studio > Open.
- Click Create Workflow.
- Type a name in Name. The name shows in your list of workflows.
- Choose the sheet in Source Worksheet.
Row 1 of the sheet gives the markers. A marker is a column title in double curly braces, such as {{Name}}. Document Studio replaces it with the value from each row. See Markers.
When the spreadsheet has both ordinary sheets and Google Forms response sheets, Data Source lets you choose between Google Sheets and Google Forms first.
Step 2: Conditions
Section titled “Step 2: Conditions”Choose Process all rows to handle every row. Choose Process specific rows to add rules, such as “only continue if Completed exactly matches Yes”. For a form, the choices read Process all form responses and Process specific form responses.
See Conditions.
Step 3: Tasks
Section titled “Step 3: Tasks”A task is one action that the workflow does for each row. A workflow can have several tasks, and they run from top to bottom. A later task can use what an earlier task made. Send Email can attach the file that Create File produced.
- Under Choose a task, click a task, such as Create File.
- Fill in the task’s settings.
- Click Preview to try the task with sample data, or Done to keep it.
- Click Add Another Task for the next action.
On the list of tasks, each task has Edit, Duplicate and Delete.
| Kind of task | Tasks |
|---|---|
| Documents | Create File, Append (Combine), Fill PDF Forms |
| Email and messages | Send Email, SMS, WhatsApp, Slack, Google Chat, Discord, Telegram, IFTTT |
| Files and folders | Google Drive, File Uploads, Copy Row |
| Projects and records | Asana, Todoist, Trello, Airtable, Notion |
| Enterprise plan | Signatures, Accept Payments, Webhook |
Step 4: Save
Section titled “Step 4: Save”The Save step decides when the workflow runs by itself.
| Option | What it does |
|---|---|
| Run on Form Submit | Runs when someone submits the Google Form. Only for form response sheets. |
| Run workflow every hour | Processes new rows about once an hour. Paid plans. |
| Skip hidden and filtered rows | Leaves out rows that are hidden or filtered in the sheet |
| Add a time delay | Waits until a time before or after a date in each row. Paid plans. |
Then click one of the buttons:
- Preview tries the whole workflow with sample values.
- Save & Close stores the workflow and returns to the list.
- Save & Run stores the workflow and opens the Run step.
See Triggers.
Step 5: Run
Section titled “Step 5: Run”The Run step shows how many rows are waiting and how much of your limit is left. Click Run Workflow to process the waiting rows now. See Run a Workflow.
How Document Studio Remembers What It Did
Section titled “How Document Studio Remembers What It Did”For each task, Document Studio adds a column to your sheet, named like [Document Studio] File Status #k3x9a2. After a task runs for a row, the result goes into that cell, such as a link to the file. A row whose status cell is filled counts as processed, and the next automatic run skips it.
Things to Know
Section titled “Things to Know”- Nothing is saved until you click Save & Close or Save & Run. Cancel on the Source step discards the workflow.
- A workflow belongs to the spreadsheet where you create it.
- Tasks run in order for one row, then for the next row.
- The free plan processes 25 rows, 25 documents and 25 emails a week. See the plan table.
