# Attach the latest deck from Drive to a reply

Your agent finds the newest version of a deck in Drive and sends it as a PDF on your reply to the thread, with the size and checksum of what went out. DataToRAG gives an agent such as Claude, ChatGPT, or Cursor your Gmail and Google Drive through one connection, so the agent does this from a single request.

Updated: 2026-11-25  
Source: https://datatorag.com/use-cases/attach-the-latest-deck-from-drive-to-a-reply

## What to ask

> Reply to the thread about Thursday's board meeting, say the deck is attached, and attach the latest board deck from Drive as a PDF.

## What the agent does

1. Find the thread about Thursday's board meeting (`gws-mcp__gmail_search`)
2. Find the most recently changed board deck (`gws-mcp__drive_search`)
3. Reply on the thread with the deck exported as a PDF and attached (`gws-mcp__gmail_reply`)

## What comes back

I replied on the thread with the deck attached as a PDF. This is what went out.

**Reply: Re: Board meeting on Thursday**

- Attached: Board deck November.pdf, exported from Google Slides.
- Size: 2,481,112 bytes.
- SHA-256 of the attached file: 2f9b0d6c, then 56 more characters.

Sample content. Yours comes from your own accounts.

## The tools it uses

- [Gmail docs](https://datatorag.com/docs/gmail.md)
- [Google Drive docs](https://datatorag.com/docs/drive.md)
