Actions5
Export Google Doc
AI-generatedSummary
Export a specified Google Docs document in Markdown, PDF, or plain text format, optionally saving the exported file in a chosen Google Drive folder with a custom filename.
Inputs
- Document (required) — The Google Docs document to export. Can be specified by selecting from a list, entering a Google Doc URL, or providing the document ID.
- Export Format (required) — The desired format of the exported file: Markdown (.md), PDF (.pdf), or plain text (.txt).
- Output File Name — Optional custom filename for the exported file. If omitted, the document's title is used.
- Output Options — Options for the exported file, such as the Google Drive folder where the exported file should be saved (specified by folder selection, URL, or ID).
Output shape
a single JSON object per input item; may include binary data for the exported file if the output mode is binary.
The output includes document export data in JSON format. If the export yields binary content (e.g., PDF), the output includes a binary data property 'data' containing the file. The operation may throw errors if the document ID is missing or invalid.
Examples
Example 1: Export a Google Docs document as Markdown and download the content in the workflow.
Set 'Document' by selecting a doc or providing its ID or URL, choose 'Markdown' for 'Export Format', leave 'Output File Name' empty (uses doc title), and omit 'Output Options' to not save to Drive.
Example 2: Export a document as PDF and save it to a specific Google Drive folder.
Specify the Google Doc, select 'PDF' as 'Export Format', optionally set a custom 'Output File Name', and specify a target Google Drive folder in 'Output Options' to save the PDF file there.