# Connect Commerce Tools and Google Drive

When **New customer** fires in [Commerce Tools](https://apiant.ai/connections/commerce-tools), your agent runs **Add File Sharing Preference** in [Google Drive](https://apiant.ai/connections/google-drive), or **Comment Added (Docs/Sheets/Slides)** in Google Drive to **Add customer** in Commerce Tools. Describe the whole flow and it is built, tested on every scenario and kept running.

Commerce Tools **2** triggers Commerce Tools **21** actions Google Drive **7** triggers Google Drive **41** actions

What the catalog holds today. Ask for anything missing and your agent reads the API documentation and adds it.

## What do you want Commerce Tools and Google Drive to do together?

Give your AI client this address.

`https://mcp.apiant.ai`

Any client that takes a remote MCP server. Nothing to install. Create your free account, then sign in once in your browser.

### Set it up in your client

### Claude Code

Run this in the directory you want to work in.

`claude mcp add --transport http -s project apiant-ai https://mcp.apiant.ai`

Start Claude Code there, approve the server, and sign in in the browser page it opens.

[Claude Code guide (opens in a new tab)](https://apiant.ai/docs/mcp/claude-code)

### Claude, web and desktop

Open Customize, then Connectors, then Add custom connector, and paste the address. On Team and Enterprise an owner adds it first.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

### Cursor

Add the address to your MCP configuration as a server URL. Cursor signs you in in your browser.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

### Zed

Open Settings, then AI, then MCP Servers, then Add Server, then Add Remote Server.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

### Codex and the ChatGPT desktop app

Open Settings, then MCP servers, then Add server, and choose Streamable HTTP. From the terminal, Codex takes the address with its own add command and then signs you in.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

### Any other MCP client

Paste the address where the client asks for a remote MCP server URL, and name the server apiant-ai where it lets you. APIANT's skills reach the client over the same connection.

[Setup guide (opens in a new tab)](https://apiant.ai/docs/mcp)

Example flows

## What Commerce Tools and Google Drive can do together

### From Commerce Tools to Google Drive

- When **New customer** in Commerce Tools then **Add File Sharing Preference** in Google Drive
- When **New order** in Commerce Tools then **Create Comment** in Google Drive

### From Google Drive to Commerce Tools

- When **Comment Added (Docs/Sheets/Slides)** in Google Drive then **Add customer** in Commerce Tools
- When **File Created** in Google Drive then **Add order from cart** in Commerce Tools

Starting points drawn from the triggers and actions in the catalog today. Describe the flow you need, at any depth, and your agent builds it and tests every scenario before it ships.

Everything your agent can do with Commerce Tools and Google Drive

## Triggers and actions 9 triggers · 62 actions

- Trigger

**New customer**

Triggers when a new customer is created in your commercetools project.

- Trigger

**New order**

Triggers when a new order is created in the commercetools project.

- Action

**Add cart**

Creates a new shopping cart in your commercetools project, optionally with line items, customer, addresses and discount codes.

- Action

**Add category**

Creates a category in your commercetools project for organizing products.

- Action

**Add customer**

Creates a customer in your commercetools project and returns the new customer record.

- Action

**Add order from cart**

Creates an order from an existing cart, optionally setting its order number and initial order, payment and shipment states.

- Action

**Add product**

Creates a product in your commercetools project with its product type, name, slug and optional variants, prices, categories and attributes.

- Action

**Delete customer**

Deletes a customer, optionally erasing all of their related personal data. Returns the deleted customer.

- Action

**Delete product**

Deletes a product from the catalog and returns the product as it was when deleted.

- Action

**Find categories**

Finds categories in your commercetools project that match a filter, such as a key, slug or name.

- Action

**Find customers**

Finds customers matching a filter condition, such as an email address or last name.

- Action

**Find inventory entries**

Returns the inventory entries (stock quantities per SKU and supply channel) that match a filter.

- Action

**Find orders**

Finds orders in the commercetools project that match a filter condition.

- Action

**Find products**

Finds products in your commercetools project that match a filter condition, such as a product key or name.

- Action

**Get cart**

Returns a cart by its id, including its line items, totals, addresses and state.

- Action

**Get customer**

Returns a single customer by its id, including addresses and custom fields.

- Action

**Get order**

Returns an order by its id, including line items, totals, state and custom fields.

- Action

**Get product**

Returns a product by its id, including its current and staged data, variants and prices.

- Action

**Update cart**

Updates a cart by applying one or more update actions, such as adding line items or setting the shipping address, and returns the updated cart.

- Action

**Update customer**

Applies one or more update actions to an existing customer, such as changing their email, name or addresses, and returns the updated customer.

- Action

**Update inventory entry**

Updates an inventory entry, for example adding, removing or setting its stock quantity, and returns the updated entry.

- Action

**Update order**

Updates an order by applying one or more update actions, such as changing its order, shipment or payment state.

- Action

**Update product**

Updates a product by applying one or more update actions, and returns the updated product.

- Trigger

**Comment Added (Docs/Sheets/Slides)**

Triggers when a new comment is added to Google Docs, Sheets, or Slides.

- Trigger

**File Created**

Triggers when a new file is created in Google Drive.

- Trigger

**File Deleted or Trashed**

Triggers when a file is moved to trash or permanently deleted in Drive.

- Trigger

**File Shared (Permissions Added)**

Triggers when new sharing permissions are granted to a file or folder. Uses Drive's `changes.list` endpoint with inline `permissions` in the `fields` mask so each change carries the file's current permission set provider-atomically. We diff that against `seen_permission_keys` to identify newly added grants. Drive page tokens are the primary cursor; if Drive rejects a stored token, the trigger raises `PollingTriggerError` without clearing state rather than silently re-baselining and dropping events. Limitation: truly ephemeral permissions (added and revoked between two polls without any other file modification in between) are not detected. Drive Activity API would catch those but requires an additional OAuth scope and a different payload contract.

- Trigger

**File Updated**

Triggers when a file's metadata or content changes in Google Drive.

- Trigger

**Google Drive Changes**

Triggers when changes are detected in a Google Drive.

- Trigger

**New File Matching Query**

Triggers when a new Google Drive file matches a provided query. This is the legacy query-centric trigger: it preserves Drive API query config such as ``corpora`` / ``driveId`` aliases and emits the historical ``file_matching_query`` event type. ``FileCreatedTrigger`` covers the broader "new file" case and emits ``file_created``.

- Action

**Add File Sharing Preference**

Modifies sharing permissions for an existing google drive file, granting a specified role to a user, group, domain, or 'anyone'.

- Action

**Copy File**

Duplicates an existing file in google drive, identified by its `file id`.

- Action

**Create Comment**

Tool to create a comment on a file. use when you need to add a new comment to a specific file in google drive.

- Action

**Create File**

Creates a new file or folder with metadata. use to create empty files or folders, or files with content by providing it in the request body (though this action primarily focuses on metadata creation).

- Action

**Create File From Text**

Creates a new file in google drive from provided text content (up to 10mb), supporting various formats including automatic conversion to google workspace types.

- Action

**Create Folder**

Creates a new folder in google drive, optionally within a parent folder specified by its id or name; if a parent name is provided but not found, the action will fail.

- Action

**Create Reply**

Tool to create a reply to a comment in google drive. use when you need to respond to an existing comment on a file.

- Action

**Create Shortcut To File**

Tool to create a shortcut to a file or folder in google drive. use when you need to link to an existing drive item from another location without duplicating it.

- Action

**Delete Comment**

Deletes a comment from a file. use when you need to remove a specific comment from a google drive file.

- Action

**Delete Permission**

Deletes a permission from a file by permission id. use when you need to revoke access for a specific user or group from a file.

- Action

**Delete Reply**

Tool to delete a specific reply by reply id. use when you need to remove a reply from a comment on a file.

- Action

**Download File**

Downloads a file from google drive by its id. for google workspace documents (docs, sheets, slides), optionally exports to a specified `mime type`. for other file types, downloads in their native format regardless of mime type.

- Action

**Edit File**

Updates an existing google drive file by overwriting its entire content with new text (max 10mb).

- Action

**Empty Trash**

Tool to permanently delete all of the user's trashed files. use when you want to empty the trash in google drive.

- Action

**Find File**

Tool to list or search for files and folders in google drive. use when you need to find specific files based on query criteria or list contents of a drive/folder.

- Action

**Find Folder**

Tool to find a folder in google drive by its name and optionally a parent folder. use when you need to locate a specific folder to perform further actions like creating files in it or listing its contents.

- Action

**Generate Ids**

Generates a set of file ids which can be provided in create or copy requests. use when you need to pre-allocate ids for new files or copies.

- Action

**Get About**

Tool to retrieve information about the user, the user's drive, and system capabilities. use when you need to check storage quotas, user details, or supported import/export formats.

- Action

**Get Changes Start Page Token**

Tool to get the starting pagetoken for listing future changes in google drive. use this when you need to track changes to files and folders.

- Action

**Get Comment**

Tool to get a comment by id. use when you need to retrieve a specific comment from a google drive file and have both the file id and comment id.

- Action

**Get File Metadata**

Tool to get a file's metadata by id. use when you need to retrieve the metadata for a specific file in google drive.

- Action

**Get Permission**

Gets a permission by id. use this tool to retrieve a specific permission for a file or shared drive.

- Action

**Get Reply**

Tool to get a specific reply to a comment on a file. use when you need to retrieve the details of a particular reply.

- Action

**Get Revision**

Tool to get a specific revision's metadata by revision id. use when you need to retrieve information about a particular version of a file.

- Action

**Google Drive Delete Folder Or File Action**

Tool to delete a file or folder in google drive. use when you need to permanently remove a specific file or folder using its id. note: this action is irreversible.

- Action

**List Changes**

Tool to list the changes for a user or shared drive. use when you need to track modifications to files and folders, such as creations, deletions, or permission changes. this action requires a `pagetoken` which can be initially obtained using the `get changes start page token` action or from a previous `list changes` response.

- Action

**List Comments**

Tool to list all comments for a file in google drive. use when you need to retrieve comments associated with a specific file.

- Action

**List File Labels**

Tool to list the labels on a file. use when you need to retrieve all labels associated with a specific file in google drive.

- Action

**List Files**

Tool to list a user's files and folders in google drive. use this to search or browse for files and folders based on various criteria.

- Action

**List Permissions**

Tool to list a file's permissions. use when you need to retrieve all permissions associated with a specific file or shared drive.

- Action

**List Replies To Comment**

Tool to list replies to a comment in google drive. use this when you need to retrieve all replies associated with a specific comment on a file.

- Action

**List Revisions**

Tool to list a file's revisions. use when you need to retrieve the revision history of a specific file in google drive.

- Action

**List Shared Drives**

Tool to list the user's shared drives. use when you need to get a list of all shared drives accessible to the authenticated user.

- Action

**Move File**

Tool to move a file from one folder to another in google drive. use when you need to reorganize files by changing their parent folder(s).

- Action

**Stop Watch Channel**

Tool to stop watching resources through a specified channel. use this when you want to stop receiving notifications for a previously established watch.

- Action

**Update Comment**

Tool to update an existing comment on a google drive file. use when you need to change the content or status (e.g., resolve) of a comment.

- Action

**Update File Put**

Updates file metadata. uses patch semantics (partial update) as per google drive api v3. use this tool to modify attributes of an existing file like its name, description, or parent folders. note: this action currently supports metadata updates only.

- Action

**Update File Revision Metadata**

Updates metadata of a file revision (e.g., keepforever, publish). use this tool to modify the metadata of a specific revision of a file in google drive.

- Action

**Update Permission**

Tool to update a permission with patch semantics. use when you need to modify an existing permission for a file or shared drive.

- Action

**Update Reply**

Tool to update a reply to a comment on a google drive file. use when you need to modify the content of an existing reply.

- Action

**Watch Changes**

Tool to subscribe to changes for a user or shared drive in google drive. use when you need to monitor a google drive for modifications and receive notifications at a specified webhook url.

## Each app on its own

- [ **Commerce Tools** Headless commerce platform providing APIs for product catalog, cart, order, and inventory management across...](https://apiant.ai/connections/commerce-tools)
- [ **Google Drive** Google Drive is a cloud storage solution for uploading, sharing, and collaborating on files across devices...](https://apiant.ai/connections/google-drive)

Reviews

## What our customers say

## More from Commerce Tools

- [ **Commerce Tools to HubSpot** HubSpot is your all-in-one stop for all of your marketing software needs.](https://apiant.ai/connect/commerce-tools-to-hubspot)
- [ **Commerce Tools to Salesforce** Salesforce is a leading enterprise customer relationship management (CRM) platform.](https://apiant.ai/connect/commerce-tools-to-salesforce)
- [ **Commerce Tools to Slack** Slack is a messaging platform for teams. Post messages, manage channels, users, reminders, and react to...](https://apiant.ai/connect/commerce-tools-to-slack)
- [ **Commerce Tools to Google Sheets** Google Sheets](https://apiant.ai/connect/commerce-tools-to-google-sheets)
- [ **Commerce Tools to Gmail** Gmail is Google’s email service, featuring spam protection, search functions, and seamless integration with...](https://apiant.ai/connect/commerce-tools-to-gmail)
- [ **Commerce Tools to Google Calendar** Google Calendar is a time management tool providing scheduling features, event reminders, and integration...](https://apiant.ai/connect/commerce-tools-to-google-calendar)

## More into Google Drive

- [ **Slack to Google Drive** Slack is a messaging platform for teams. Post messages, manage channels, users, reminders, and react to...](https://apiant.ai/connect/slack-to-google-drive)
- [ **Pipedrive to Google Drive** Pipedrive is a sales CRM and pipeline management tool.](https://apiant.ai/connect/pipedrive-to-google-drive)
- [ **ActiveCampaign to Google Drive** ActiveCampaign is a marketing automation, email marketing, and CRM platform.](https://apiant.ai/connect/activecampaign-to-google-drive)
- [ **Airtable to Google Drive** Organize anything with Airtable, a modern database created for everyone.](https://apiant.ai/connect/airtable-to-google-drive)
- [ **Asana to Google Drive** Asana is a collaborative information manager for workspace.](https://apiant.ai/connect/asana-to-google-drive)
- [ **JIRA to Google Drive** Atlassian JIRA Cloud — issue tracking and project management.](https://apiant.ai/connect/jira-to-google-drive)

Questions

## Commerce Tools and Google Drive, answered

###

### What can start an automation from Commerce Tools?

Any of Commerce Tools's 2 triggers in the catalog, including New customer and New order. Describe the moment in plain language and your agent picks the right one.

###

### What can your agent do in Google Drive when something happens in Commerce Tools?

Any of Google Drive's 41 actions, including Create Comment, Create File, Create File From Text and Create Folder. Your agent maps the data both ways and tests every scenario before it ships.

###

### Can it also run from Google Drive to Commerce Tools?

Yes. When something happens in Google Drive, your agent can act in Commerce Tools too. This page covers both directions: Google Drive's triggers and Commerce Tools's actions are listed here as well.

###

### Do I have to build a connector for Commerce Tools or Google Drive?

No. Both are in the catalog with their triggers and actions. You describe the automation; your agent builds it, tests every scenario and keeps it running.

###

### What happens when something fails?

Your agent works that out for you. It plans the failure paths along with the happy path, then tests every scenario before it ships.

###

### Is there a free plan?

Yes. Every plan includes the agent, including free, and building from your own AI client spends no assistant credits.
