Google Docs Action

This guide shows you how to add the Append Text to Document action from Google Docs to a Zaplane workflow, so text is added to the end of a Google Doc automatically whenever your trigger fires.

Part 1: Get Your Google OAuth Client ID and Secret

Step 1: Create a Google Cloud Project

In the Google Cloud Console, click Select a project > New Project, enter a Project name (e.g., “zaplane”), and click Create.
Create a Google Cloud Project

Step 2: Start Creating an OAuth Client ID

Go to APIs & Services > Credentials, click + Create credentials, and choose OAuth client ID.
Click Configure consent screen, then Get started, and fill in the wizard: App Information (app name and support email), Audience (choose External), and Contact Information. Check I agree to the Google API Services: User Data Policy and click Continue to finish.

Step 4: Publish the App to Production

On the Audience page, click Publish app, then confirm by clicking Confirm on the “Push to production?” dialog.

Step 5: Create the OAuth Client ID

Back on Clients > Create OAuth client ID, set Application type to Web application, enter a Name, and add your site’s URL under Authorized redirect URIs. Click Create.

Step 6: Copy Your Client ID and Client Secret

In the OAuth client created dialog, copy the Client ID and Client Secret — you’ll need both in Zaplane, and you won’t be able to view the secret again once you close this dialog.

https://drive.google.com/file/d/1drcxhXFY9k0jTT6_VuQvR9EYx5Kuf8Tk/view?usp=sharing 

Part 2: Create the Connection in Zaplane

Step 2: Open Connections

From your WordPress dashboard, go to Zaplane > Connections, then click Create credential.

Zaplane > Connections, then click Create credential

Step 3: Select Google Docs

In the Select an app panel, find and select Google Docs.

Select Google Docs

Step 4: Enter Your Client ID and Client Secret

Paste your Client ID and Client Secret into their fields, then click Save Connection.

Enter Your Client ID and Client Secret

Part 3: Create the Action

Step 1: Create a Workflow

Go to Zaplane > Workflows from your WordPress dashboard, then click Create Workflow to open the workflow editor.

Before adding a Google Docs action, you need to set up a trigger first. Here is how to do it quickly:

Click Select an app under the Trigger box and choose Apps.
Search for and select the app you want to use as your trigger (we are using StoreEngine.).
Choose the Trigger Type that matches the event you want, then click Continue.
On the Configure tab, set any required options, then click Continue.
On the Test tab, click Test Trigger to confirm it works, then click Save.

Once your trigger is saved, proceed to the next step to add the Google Docs action.

Step 2: Add an Action

Click the + icon next to your trigger. In the Add Action panel, choose Apps (or use the search box to find an app).

Add Action panel, choose Apps

Step 3: Select the Google Docs App

Scroll through the app list, select Google Docs, then click Continue.

Select the Google Docs App

Step 4: Choose the Action Type

On the Select tab, choose Append Text to Document from the Action Type dropdown. Then pick your Google Docs connection from the Select Connection dropdown and click Continue.

Choose the Action Type Google Docs

Step 5: Configure the Action

On the Configure tab, fill in the following fields, then click Continue:

Document (required): select the Google Doc you want to add text to.
Text to Append (required): enter the text to add to the end of the document.
Configure the Action Google Docs

Step 6: Test the Action

On the Test tab, click Test Action. Zaplane shows the output of the action, and the text appears at the end of your Google Doc. Click Save to keep the action.

and the text appears at the end of your Google Doc

Step 7: Update and Activate the Workflow

Back on the workflow canvas, click Update at the top right to save your changes and make sure the workflow status is set to Active.

 Update and Activate the Workflow

Every time your trigger fires, Zaplane now appends your text to the Google Doc automatically.

Done!

Google Docs is now connected to Zaplane, and your workflow will append text to your document from here on.