Save this month's invoice attachments to a Drive folder
Your agent finds this month's invoice emails and puts each attached PDF in the Drive folder you name, with a checksum for every file. 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
A replay of this request. Sample content.
Save every invoice PDF I was emailed this month into my Invoices folder in Drive.
Find this month's emails that carry an invoice
Read each one and list its attachments with their part ids
Find the Invoices folder you named
Put each PDF in the folder, one call for each file
Three invoices are in your Invoices folder. Drive's checksum matches what was sent for each one.
What to ask
Save every invoice PDF I was emailed this month into my Invoices folder in Drive.
What the agent does
- Find this month's emails that carry an invoice
gmail_search - Read each one and list its attachments with their part ids
gmail_read - Find the Invoices folder you named
drive_search - Put each PDF in the folder, one call for each file
drive_upload_file
What comes back
Three invoices are in your Invoices folder. Drive's checksum matches what was sent for each one.
| File | Size | Checksum |
|---|---|---|
| invoice-1042.pdf | 184 KB | Matches what Drive stored |
| invoice-1043.pdf | 97 KB | Matches what Drive stored |
| hosting-november.pdf | 212 KB | Matches what Drive stored |
Sample content. Yours comes from your own accounts.
Try it
In Claude, open Customize, then Connectors, choose Add, then Add custom connector, and paste the URL.
No account needed first: your client asks you to sign in with Google when it connects.
The Free plan allows one custom connector. On Team and Enterprise, an owner adds it for the organization.
The tools it uses
Related use cases
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.
Gmail · Google Drive
Brief me on every inbox each morning
Your agent reads today's mail, calendar, and tasks across every account and sends you one brief with the clashes called out.
Gmail · Google Calendar · Google Tasks · several accounts
Put the signed PDF from an email on a Jira issue
Your agent finds the signed PDF in an email thread and attaches it to the Jira issue you name, without the file passing through the conversation.
Gmail · Jira