·Updated ·Dioveo Team· 11 min read

How to Read Gmail Attachments with ChatGPT

Gmail
Attachments
ChatGPT
PDF
AI

Short answer

To ask ChatGPT about a Gmail attachment, download the file from Gmail and upload it to the chat. OpenAI lists documents up to 512 MB per file, and ChatGPT can analyze text and images in PDFs. OpenAI's help pages on its Google apps do not mention attachments (checked November 30, 2026), so check the answer from the Gmail connection against the file.

For recurring work, add Dioveo to ChatGPT as a custom MCP server. OpenAI lists these for Business and Enterprise/Edu, and for Pro with read/fetch permissions. It works with Gmail and Outlook mailboxes; this guide covers Gmail. ChatGPT searches your attachments and gets text extracted from the files you choose, after you agree in Dioveo to processing file content. The free plan covers 30 AI documents a month.

How to Read Gmail Attachments with ChatGPT

Yes, if the file reaches ChatGPT. As of November 2026, the sure way is to download the attachment from Gmail and upload it to the chat. OpenAI lists documents up to 512 MB per file and up to 2 million tokens per file, and ChatGPT can analyze both the text and the images in a PDF. Source: OpenAI, Uploading files and audio to ChatGPT, fetched November 29, 2026.

ChatGPT's own Gmail connection is less clear. OpenAI's help pages say that, once you connect Gmail, ChatGPT can access "information needed for the supported requests you make". They do not say whether it opens the contents of an attachment, or how large one can be. So test it on one file you can check yourself. For recurring work across many emails, Dioveo's connector gives ChatGPT a way to search your attachments and get the text of the files you choose. It works with Gmail only, and only on ChatGPT plans that allow custom MCP servers.

This guide is published by Dioveo. Routes 1 to 3 use ChatGPT and Gmail only. Route 4 is ours, and we say where it fits and where it does not.

What OpenAI says today#

Each line below is from OpenAI's help pages, fetched November 29, 2026. The pages show only a relative "updated" date, so open the link to see the current text.

  • Direct upload. "Documents and presentations have a maximum size of 512 MB per file." Text and document files "are capped at 2 million tokens per file." Free users "are limited to 3 file uploads per day", and uploads are capped at 80 files per 3 hours. Source: Uploading files and audio to ChatGPT.
  • PDFs. "ChatGPT can analyze both text and images in PDFs, including charts and diagrams." For a file saved to a project or as GPT knowledge, embedded images may not be included, so attach the PDF to the chat to ask about a chart. Same page.
  • Gmail connection. ChatGPT "can access information needed for the supported requests you make", limited to what the Google account and the permissions you authorized allow. Workspace admins may need to approve the app. Source: Google app data controls FAQ.
  • What the Gmail pages describe. Tasks in Work that start when a new Gmail message arrives, with sender or subject conditions. The pages we checked do not mention attachments or an attachment size limit. Source: Google apps in ChatGPT.
  • Availability. Per OpenAI's connected apps page, app availability "depends on the app, your ChatGPT plan, region, workspace, role, model, and ChatGPT interface you use."
  • Custom MCP servers. "Account and workspace policies apply to adding and using custom MCP servers." Source: OpenAI, connect an MCP server to ChatGPT. OpenAI's help page Connecting custom MCP servers in ChatGPT (checked December 1, 2026) says custom MCP server connections are "available for ChatGPT Business and Enterprise/Edu customers on ChatGPT web" and that "Pro users can connect custom MCP servers with read/fetch permissions". It does not list Free, Go or Plus. For a Business workspace it says "only admins and owners can create and publish plugins for custom MCP servers".

Route 1: Download the attachment and upload it#

Start with one short PDF that you can open and check yourself.

  1. Open the email in Gmail and download the attachment. To find it, search for has:attachment filename:pdf and add the sender or date. The Gmail attachment search guide has more examples.
  2. In ChatGPT, use the attach (+) button to choose the file from your device, or drag the PDF into the chat.
  3. Wait for the upload to finish, then ask a specific question.
  4. Open the original PDF and compare the answer with the page ChatGPT used.

Try this prompt:

Read the PDF I attached. List its title and main points, with the page
number for each point. If a part is unreadable, say which part.
Do not fill gaps using the email subject or the filename.

If the same file works when uploaded but not through another route, the route was the obstacle, not the document.

Route 2: Use ChatGPT's own Gmail connection#

If your plan and workspace allow it, connect Gmail in ChatGPT and ask for an attachment by sender and date. OpenAI's pages do not say what the connection does with attachments, so treat the first try as a test.

  1. Connect Gmail in ChatGPT, following OpenAI's help pages for Google apps.
  2. Ask for one attachment you know: Find the PDF invoice from supplier@example.com sent in September and give me its invoice number and total, with the page.
  3. Ask which tool it used and for a short passage from the file. A filename or the email subject alone is not proof that the attachment itself was opened.
  4. Compare the answer with the original PDF.

If ChatGPT names the file but quotes nothing from it, go back to Route 1 for that file.

Route 3: Use a Google Drive copy#

In Gmail, hover over the attachment and click Add to Drive. If your ChatGPT plan lets you connect Google Drive, add that file to the conversation from Drive instead of uploading it from your computer. OpenAI says connected Drive files "are limited to files available to the connected Google account" (source, fetched November 29, 2026).

This suits people who already keep documents in Drive. Check the saved copy when several versions share a filename. Saving one file does not set up an ongoing flow from Gmail to Drive. For that, see how to save Gmail attachments to Google Drive.

Choose a route for the files you need#

Your situationStart hereWhat you do
One or two PDFsRoute 1, direct uploadDownload from Gmail and attach the files to the chat
A file you can name by sender and dateRoute 2, ChatGPT's Gmail connectionAsk for it, then check the quote against the file
Documents you already keep in DriveRoute 3, Drive copySave the attachment to Drive and add it from Drive
Recurring documents across many emailsRoute 4, Dioveo connectorSearch, pick files and get text with file and page
The PDF fails even when uploadedFile checkCheck the original, its format and whether it is a scan

For a one-off batch, you can also bulk download Gmail attachments first, then upload a small selection you can check.

Route 4: Connect Dioveo for recurring attachment work#

If you repeatedly collect invoices, compare contracts or look up older documents, downloading each file before a chat gets old. Dioveo indexes the attachments in your Gmail account. Once you add it to ChatGPT as a custom MCP server, ChatGPT can search them, extract text and fields from the files you choose, and answer with the file and page it used. Dioveo's connector works with Gmail and Outlook mailboxes; this guide covers Gmail.

Connect ChatGPT to Dioveo

These are the same steps as on the Dioveo MCP setup page, which also lists the server URL to copy.

  1. Sign in to Dioveo with the Gmail account that holds the attachments, and let indexing finish.
  2. In ChatGPT, open Plugins, click the plus button and choose Add custom MCP server.
  3. Name it Dioveo. Under Connection, choose a public endpoint and enter the server URL from the Dioveo setup page.
  4. Set authentication to OAuth, read the risk warning, choose I understand and want to continue, then Create as a plugin.
  5. Sign in to Dioveo when ChatGPT sends you there, check the permissions and click Connect. On the approval screen, search and text extraction start on. Other permissions start off. ChatGPT then lists the Dioveo tools it found.
  6. Install the plugin, start a new conversation, type @ in the prompt box and choose Dioveo.

To check it worked, ask ChatGPT to use Dioveo to check your connection. It should answer from Dioveo and name the permissions you approved.

Your account and workspace policies decide whether you can add and use custom MCP servers. OpenAI lists custom MCP servers for Business and Enterprise/Edu, and for Pro with read and fetch access only (checked December 1, 2026). OpenAI says custom MCP servers connect on ChatGPT web, not on mobile. OpenAI's steps and plan availability change over time. If your screens differ, see OpenAI's guide to connecting an MCP server (checked December 1, 2026). Our AI assistants page covers the other clients.

Check one attachment before a batch

Replace the sender and filename with a file you can inspect:

Use Dioveo to find invoice-september.pdf from supplier@example.com.
If several files match, show their filenames and email dates so I can
choose. For the selected attachment, give me its invoice number, total
and currency with the source page for each value. Mark missing or
unreadable values; do not guess.

Confirm that ChatGPT called Dioveo's tools and that the values match the original. Finding a file is separate from getting its text. File size, format and your remaining monthly limit can affect the second step.

What to expect from Dioveo

  • Mailboxes. The connector works with Gmail and Outlook mailboxes; this guide covers Gmail. It works with the attachments Dioveo has indexed. If indexing is still running, results can be incomplete.
  • A monthly limit on documents. Each new document Dioveo processes counts toward a monthly limit, 30 on Free and 500 on Pro. Text Dioveo already has does not count again.
  • Your permissions. Dioveo grants only the permissions you turn on. Search and text extraction start on; workflow drafts, original-file downloads and cloud uploads start off, and a workflow draft does nothing until you activate it in Dioveo.
  • Prices. The Free plan includes 50 free files a month. Pro is $14.99 per month or $119 per year, and Export all attachments is $19 once. See current pricing. ChatGPT's own limits also apply.

Only connect accounts and process documents you are allowed to share, and review the permissions before you approve.

Prompts for invoices and contracts#

Narrow questions are easier to verify than "analyze my inbox". These work with Route 4.

Build an invoice list:

Use Dioveo to find PDF invoice attachments from supplier@example.com
received between 1 July and 31 August 2026. Show the candidate files
first. After I confirm, extract invoice number, invoice date, total and
currency from each, and make a table with the source page. List files
you could not process separately, and keep different currencies apart.

If you want this as a spreadsheet each month, see Gmail invoices to Google Sheets. A one-time prompt does not schedule anything.

Find a clause in a contract:

Use Dioveo to locate the latest contract PDF from client@example.com.
Show the matches before choosing a version. For the selected file, find
the cancellation notice period. Quote the passage and give its page.
Say if the text is missing or unclear.

Check amounts, dates and contract wording against the cited page before you rely on them.

If it still does not work#

What happensWhat to check next
ChatGPT names the file but quotes nothing from itAsk which tool it used. Upload the file directly (Route 1).
The PDF will not open on your computerGet a readable copy from the sender first.
A scan comes back with missing or garbled textRun OCR to create a searchable PDF, or upload the relevant page as an image. Compare the result with the original.
You cannot add a custom MCP serverOpenAI lists Business and Enterprise/Edu, and Pro with read and fetch access only. Ask your workspace admin, or use Route 1.
Dioveo is connected but ChatGPT shows no toolsRestart or refresh the server after sign-in, start a new conversation and choose Dioveo with @.
Dioveo is connected but the file is missingConfirm the Google account, that indexing finished, and your sender or date filters. Check whether the email has an attachment or only a Drive link.
The file is found but its text is not returnedCheck your monthly limit, then try one small, known file.

Frequently Asked Questions#

Can ChatGPT read a PDF attached to a Gmail email?

Yes, if the file reaches ChatGPT. The sure way is to download the attachment from Gmail and upload it to the chat. As of November 2026, OpenAI lists documents up to 512 MB per file, and says ChatGPT can analyze both text and images in PDFs. Ask for a passage you can find in the PDF to confirm it was really read.

Can ChatGPT read Gmail attachments through its Gmail connection?

OpenAI's help pages that we checked on November 29, 2026 say ChatGPT can access "information needed for the supported requests you make" in a connected Gmail account. They do not say whether it opens the contents of attachments. Test it on one file and ask for a quote from the file.

Can ChatGPT search many of my Gmail attachments at once?

Not by uploading files one at a time. A connector such as Dioveo indexes the attachments in your Gmail account, so ChatGPT can search them by sender, date or file name and get the text of the files you choose. Dioveo's connector works with Gmail and Outlook mailboxes; this guide covers Gmail.

Do I need to pay to try this?

Direct upload works on ChatGPT's Free plan within its limits, which OpenAI lists as 3 file uploads a day. Dioveo's Free plan includes 50 free files a month and a monthly limit on AI document processing, with no card. Adding Dioveo to ChatGPT needs a custom MCP server, which OpenAI lists for Business and Enterprise/Edu, and for Pro with read and fetch access only, so you may need a different ChatGPT plan.

Can I analyze attachments from old emails?

Yes. Search Gmail for the email and download the file, or use Dioveo, which indexes the attachments in your Gmail history. Start with a small, known selection before you run a larger batch.

Does connecting Dioveo make ChatGPT process my documents automatically?

No. ChatGPT works on a document when you ask it to in a conversation. Connecting Dioveo gives it the ability to search and extract from the attachments you ask about. It does not schedule anything on its own.

Stop managing attachments by hand

Dioveo finds the attachments in your Gmail, lets you search and download them in bulk, and auto-saves new ones to Google Drive, Dropbox, or OneDrive.

Permanent Free plan Cancel from your billing portal

Keep reading