tr Skip to content

When new order is created in WooCommerce, share the Google Drive folder with the user

When a WooCommerce order is created, this workflow shares a Google Drive folder you choose with the email address on the order, so buyers get access to the files without you sending invites by hand.

WooCommerce Google Drive

2 steps Setup ~5 min Used on 317 sites Free to import

The When new order is created in WooCommerce, share the Google Drive folder with the user workflow on the FlowMattic canvas, with 2 steps across WooCommerce, Google Drive
The workflow as it appears in the builder after import. Each step opens for editing.

What this workflow does

Selling access to a set of files, such as templates, course material or photo packs, often means opening Google Drive after each sale and inviting the buyer yourself. That is slow and easy to forget. This workflow sends the invite when the order is created.

The WooCommerce trigger starts a run as soon as a shopper's order is created at checkout. FlowMattic passes the order data to Google Drive, where the Share Folder action shares a folder, picked by its ID, with an email address. You set the folder ID and map the order's billing email as the address to share with.

The same folder is shared on every order, so this suits one product or one bundle of files. It also runs for each new order whatever its payment status, and a repeat buyer triggers it again. If you sell several products, or take payment methods that leave orders pending, read the tips before you switch it on.

A paid template library

Customers who buy your template bundle are given access to the Drive folder that holds the files, using the email they checked out with.

Course workbooks for students

Each student who orders your course gets the folder of workbooks and worksheets shared to their address.

Photo or asset packs

Buyers of a stock photo pack receive access to the folder with the full-resolution files, so you don't need to host large downloads on WordPress.

How this workflow runs

What happens at each step once the workflow is on, and what you need before you import it.

  1. Step 1Trigger
    WooCommerce New Order Created

    Starts a run for each order created in your WooCommerce store. The order data, including the customer's billing email, is passed to the Google Drive step.

  2. Step 2Action
    Google Drive Share Folder

    Gives the buyer's email address access to one Drive folder that you point to by its ID. Enter the folder ID and map the order's billing email, then connect your Google account on import.

What you need

  • FlowMatticCore
  • WooCommerce PluginPlugin
  • Google Drive AccountAccount

After importing, map your own data. To keep the template universal, not every step is pre-filled. Open each step in the builder and connect your accounts and fields (channels, lists, sheets, recipients) before you switch the workflow on.

Make it yours

Changes worth making after you import it.

  • Add a Filter after the trigger that continues only when the order status is processing or completed, so orders that are pending payment don't get access.
  • Selling several file bundles? Use a Router with one route per product name and a Share Folder step in each route that points to that product's folder.
  • Place a test order with your own second email after import, then check the address in Google Drive's sharing list to confirm the right folder was shared.

Questions about this workflow

Is the Drive folder shared before the WooCommerce order is paid?

It can be. The trigger fires when the order is created, whatever its status. Add a Filter on the order status if you only want to share for paid orders.

Can each WooCommerce product share a different folder?

Not as imported. The step shares one folder ID on every order. Add a Router with a route per product and a Share Folder step in each to handle more than one.

What if the customer already has access to the folder?

A repeat buyer triggers the workflow again and the folder is shared to the same address. Task History shows Google Drive's response for that run.

Does sharing remove access when an order is refunded?

No. The workflow only shares the folder when an order is created. Remove access in Google Drive yourself if a refund means the buyer should lose it.

Import this workflow into your WordPress site

Download the JSON, import it from the Workflows screen and connect your accounts. Every run stays on your server, with no per-task fees.

30-day money-back guarantee Unlimited workflows and runs Self-hosted

Customers who run it every day

Rated 4.8 out of 5 by customers
Read more reviews

It's very straightforward, has a lot integrations and they work well. It is one thing to 'integrate' new external software, but integrating it well, with lots of options is where FlowMattic shines.

Koen A.

Works within WordPress, so it can easily access any inbuilt WP functions or custom functions and use them in your flow. It's easy to use and already has many useful integrations built.