Create and collaborate on your content using Google Docs and then send it directly to your Ghost publication with a powerful, time-saving automation
Google Docs is a popular browser-based writing tool that allows writers and editors to create, collaborate and store content effectively. If you enjoy writing in Google Docs, it’s possible to create a custom integration via Zapier that will send your writing directly into your Ghost publication, including any formatting.
Here’s how it works:
Create a new Zap
For this integration you’ll be using Zapier. If you don’t already have an account, create one now, login and create a new Zap:
Create a new Google folder
Create a new folder in your Google Drive account where you’d like to store content that will be sent to your Ghost site. If you’re creating a brand new folder, it’s also important to create a test document in here so that Zapier has access to some data for testing purposes.
Add Google Docs as the Trigger
Back in Zapier, add Google Docs as the initial Trigger step:
In order to do this, sign in to your Google account to grant access to Zapier, and use the “New Document in Folder” option. Then select the folder you just created for your Ghost content. Before continuing to the next step, Zapier will search for a sample document in your folder:
Add Ghost as the Action Step
Next you’ll be prompted to add an action step. Search for Ghost and connect your site using your Admin API URL and API key. This information can be found in the Integrations section within Ghost Admin, on the Zapier page:
Once access has been granted, Zapier allows you to run a quick test to ensure a connection has been established.
Now you can customise your post template by filling in the required fields provided:
The required fields are:
Title– Use the Google Docs title
Status– Select whether your writing will be sent to Ghost as drafts, published or scheduled
Content format- Use HTML for this integration
Content (HTML)- Select
File Raw HTML Contentin order for your Google Docs content to parse correctly in the Ghost editor
Authors- Select at least one author for your post using the dropdown menu
Optionally, add some tag(s) to your workflow by using the dropdown menu to select tags that exist on your Ghost site.
Test & Publish your integration
Once you’re happy with your integration setup, test it from within the Zapier dashboard and ensure everything is working as it should. When you’re ready, publish your Zap ⚡
Congrats – you’ve just unlocked a new, powerful workflow for your publication. Every time you move a new Google Docs file into your Ghost folder, it will automatically be sent to Ghost Admin as a new post.
Advanced action steps
It’s possible to adapt the content that you send into Ghost via Zapier using one of the built-in transform functions such as the formatter functions or code actions. These options require a more involved setup, but allow you to extend the platform to do just about anything. For example, transform incorrect URLs or dates, convert data types and much more!