Overview
The Create Google Doc action enables you to automatically generate a new Google Doc and save it directly to your Google Drive. This is useful for creating documents programmatically based on dynamic content or templates. You can specify the desired folder location and document name, as well as provide the full content of the document to be created.
Usage Examples
Automatically generate meeting notes - After a virtual meeting, you can use the transcript or summary to automatically populate a new Google Doc with formatted meeting notes. This could include the date, attendees, agenda items, discussion points, and any action items or decisions. The document could be saved to a designated "Meeting Notes" folder for easy organization and reference.
Create personalized documents at scale - For scenarios where you need to generate a large number of personalized documents, such as certificates, form letters, or contracts, you can use this action to efficiently create each one based on a master template combined with unique data for each recipient. This saves significant time and effort compared to manually preparing individual documents.
Inputs
Integration - Connect your Google Docs account or choose an existing connection.
Document Name - Specify the desired name for the new Google Doc that will be created. This will be the title displayed in Google Drive and at the top of the document.
Document Folder - Choose the Google Drive folder where the document should be saved. You can select from a list of your existing folders.
If no folder is selected, the document will be saved in the root "My Drive" location.
Document Content - Provide the content that should be inserted into the new Google Doc.
Outputs
The Create Google Doc action provides the following outputs when a doc is successfully created:
Document ID - The unique identifier assigned to the newly created document by Google Drive. This can be used to reference or access the document programmatically.
Document Name - The name of the created document, as specified in the input.
Document URL - The shareable link that allows you to view or edit the Google Doc through a web browser.
Folder ID - The unique identifier of the Google Drive folder where the document was saved.
Folder Name - The display name of the folder housing the new document.
These outputs can be used in subsequent actions to do things such as sending a Slack message notifying your team that the document is ready for review.
Troubleshooting
Document not created - If the action runs successfully but the document doesn't appear in Google Drive, first double-check the folder you specified to ensure it exists and you have write access to it. If the folder is correct, verify that your Google account has sufficient permissions and storage space to create new documents.
Invalid document content - If the provided content is not compatible with the Google Docs format, the document may be created but fail to open or display correctly. Ensure that any HTML is properly formatted and JSON is valid. Plain text content should render without issues.
Rate limits - Google Drive has usage limits in place to prevent abuse. If you are generating a very large number of documents in a short period of time, you may encounter rate limiting errors. Adjust your Workflow to create documents at a slower pace or contact Google support to request a higher limit if needed.