Google Docs - Download Document to Workflows
Overview
### How to Use the Google Docs Downloader To download a Google Doc as a `.txt` file using this workflow, complete the following fields: --- ### 1. Google Doc URL **(Required)** Paste the **full URL** of the Google Document you want to download. **Example:** ``` https://docs.google.com/document/d/your-doc-id/edit ``` **How to find it:** - Open the Google Doc in your browser. - Copy the full link from the address bar. ### 2. Share Google Doc with Alli Client Google Service Account **(Required)** **Important:** You must **share the document** with your **Alli client’s Google service account** to allow the workflow to access it. To find the correct service account email to share with, follow this guide: [**How-To: Find Your Alli Client’s Google Service Account**](https://help.alliplatform.com/actions/Working-version/how-to-find-your-alli-client-s-google-service-acco) --- ### 3. Destination File Name **(Required)** Enter the name you want to save the file as. This must end with a `.txt` extension. **Examples:** ``` summary.txt client_notes.txt ``` --- ### 4. Destination Folder Name *(Optional)* Provide the local folder path where the file should be saved. If left blank, the file will be saved in the root folder. **Examples.** ``` project_files/ docs/archive/ ``` #### Note The Google Doc must contain text content in the document body. Blank documents will cause the workflow to fail.
Variables
Name | Reference | Type | Required | Default | Options | Description |
---|---|---|---|---|---|---|
Google Doc Url | GOOGLE_DOC_SOURCE_FILE_URL | Alphanumeric | ✅ | - | - | The full URL of the Google Doc. Example: https://docs.google.com/document/d/abc123/edit |
Destination File Name | GOOGLE_DOC_DESTINATION_FILE_NAME | Alphanumeric | ➖ | - | - | The name to save the downloaded file as. Include .txt extension. |
Destination Folder Name | GOOGLE_DOC_DESTINATION_FOLDER_NAME | Alphanumeric | ➖ | - | - | The workflows local folder path to save the file in. Defaults to downloads |
YAML
Below is the YAML template
source:
template: Google Docs - Download Document to Workflows
inputs:
GOOGLE_DOC_SOURCE_FILE_URL:
GOOGLE_DOC_DESTINATION_FILE_NAME:
GOOGLE_DOC_DESTINATION_FOLDER_NAME:
type: TEMPLATE
guardrails:
retry_count: 1
retry_wait: 0h0m0s
runtime_cutoff: 1h0m0s
exclude_exit_code_ranges:
- 201
- 206
- 256