# Google Drive

Save chat attachments to Google Drive, and create, move and share Drive files from automations

The Google Drive integration sends the files customers share in chat — invoices, product photos, voice notes, videos — straight into a Google Drive folder. Files are stored in your own Google account under their original names, and automations can create files and folders in Drive too.

## What it can do

- **Send attachments to Drive** — Right-click a message and upload every image, PDF, audio note or video it carries
- **Pick the folder** — Choose a destination with Google's picker, or leave it empty to use your Drive root
- **See what was already saved** — Uploaded messages carry a badge that opens the file in Drive
- **Recent saves** — The details window lists the files most recently sent to Drive
- **Six automation steps** — Upload from a URL, save text as a file, create folders, move files, get a share link, or delete a file

## Connecting Google Drive

1. Go to **Integrations** and find **Google Drive** on the **Catalog** tab
2. Click **Connect**
3. Sign in with the Google account whose Drive should receive the files, and approve access

Google Drive is a separate connection from Google Sheets, even if you use the same Google account. Disconnecting one does not affect the other. You need the **Connect** permission, and the connection counts toward your plan's integration limit.

### What Qwetty can access

- **Upload attachments and access only the folders you select via Google's file picker**
- **See the email address of the connected Google account**

Qwetty cannot browse your Drive. It can only add new files, and work with files it created or folders you picked.

## Saving attachments from a message

**Save to Google Drive** appears on messages that have at least one attachment. Stickers are not saved.

1. In the inbox, right-click the message
2. Under **Integrations**, choose **Save to Google Drive**
3. In **Save attachments to Google Drive**, check the list of attachments
4. Optionally click **Pick a Drive folder…** to choose a **Destination folder**. Without one, the files go to your Drive root
5. Click **Save to Drive**

You can also save from the media viewer: open a photo or video and choose **Save to Google Drive** under **More actions**.

Each attachment is uploaded as its own file with its original filename. The message then shows a **Saved to Drive** badge that opens the file.

:::note
Saving the same message again uploads another copy. The dialog warns you first with **Already saved "…" to Drive**.
:::

## Using Google Drive in automations

When Google Drive is connected, the **Integrations** category of the node picker offers:

| Step | What it does | Main fields |
|------|--------------|-------------|
| **Google Drive: Upload file from URL** | Downloads a file from a link and saves it to Drive | **File URL**, **File name**, **Folder ID** |
| **Google Drive: Save text as file** | Writes text, such as a transcript or a summary, to a new file | **File name**, **Content**, **MIME type** (default `text/plain`), **Folder ID** |
| **Google Drive: Create folder** | Creates a folder and returns its ID | **Folder name**, **Parent folder ID** |
| **Google Drive: Move file** | Moves a file into a folder | **File ID**, **Folder ID** |
| **Google Drive: Get share link** | Makes a file viewable by anyone with the link and returns the link | **File ID** |
| **Google Drive: Delete file** | Permanently deletes a file | **File ID** |

- Leave **Folder ID** or **Parent folder ID** empty to use the Drive root
- **File ID** must be a file Qwetty created — usually the result of an earlier step, `{{integrationResult.fileId}}`
- Steps that create something return its `fileId` or `folderId`, its `name` and a `webViewLink` in `{{integrationResult}}`. **Get share link** returns the link in `{{integrationResult.webViewLink}}`

:::caution
**Get share link** makes the file readable by anyone who has the link. Only use it for files you are happy to share, and **Delete file** cannot be undone.
:::

## What data is sent to Google

- From the inbox: the attachment files of the message you save, with their filenames
- From automations: the files, text and names you put in the step's fields. **Upload file from URL** downloads the file through Qwetty first; files over 50 MB are refused

Qwetty records each upload (message, file and folder) to show the **Saved to Drive** badge and the **Recent saves** list. The files themselves live only in your Drive.

## Troubleshooting

| Problem | What to do |
|---------|------------|
| **Save to Google Drive** is missing from the menu | The message has no attachment (or only a sticker), the connection is not **Active**, or your role lacks **Edit** for Integrations |
| **Could not save to Drive:** followed by an error | Check that the folder still exists and that the Google account still has access. If it keeps failing, click **Reconnect** and approve access again |
| **Could not open the Google file picker. Try again.** | Allow popups for Qwetty and try again |
| A **Move file**, **Get share link** or **Delete file** step fails | The file was not created by Qwetty, or the ID is wrong. Use the ID returned by an earlier step |
| **Reconnect required** | Click **Reconnect** in the details window or the save dialog |

## Next steps

- [Google Sheets](/en/integrations/google-sheets) — Save form replies as rows
- [Integrations Overview](/en/integrations/overview) — Connecting, statuses and permissions
- [Building Workflows](/en/automations/building-workflows) — Add integration steps to an automation
- [Message Actions](/en/inbox/message-actions) — Everything you can do with a single message
