How to connect Gmail to ChatGPT so it drafts replies for you
Wire incoming Gmail messages into ChatGPT through Zapier so every new email gets an AI-written draft reply waiting in your inbox.
If you spend an hour a day replying to email, the fastest win is letting an AI write the first draft. This guide connects Gmail to ChatGPT through Zapier. When a new email lands, Zapier sends the body to ChatGPT, ChatGPT writes a reply, and the reply is saved as a Gmail draft you can edit and send. Nothing goes out without you approving it.
- A Gmail account
- A free or paid Zapier account
- An OpenAI API key from platform.openai.com
- About 10 minutes
Step 1: Create a new Zap and pick the Gmail trigger
In Zapier, click Create then Zap. For the trigger app choose Gmail and the event New Email Matching Search. This is better than New Email because you can filter to only the messages you want AI to handle, for example unread mail in your inbox.
Step 2: Add a ChatGPT action to write the draft
Add an action step and choose the OpenAI (ChatGPT) app, then the event Conversation. Connect it with your OpenAI API key when prompted. In the User Message field, write a clear instruction and insert the email body from the Gmail trigger using the field picker.
You are my email assistant. Write a polite, concise reply to the email below.
Keep my tone friendly and direct. Do not invent facts or commitments.
End with "Best, Alex".
--- EMAIL ---
From: {{1.From}}
Subject: {{1.Subject}}
Body:
{{1.Body Plain}}Step 3: Save the reply as a Gmail draft
Add a second action: Gmail, event Create Draft Reply. Map the Thread or Message ID from the trigger so the draft attaches to the original conversation, and map the Body to the ChatGPT output from step 2. This keeps everything threaded and never auto-sends.
Step 4: Test and turn it on
Click Test on each step, then send yourself a sample email that matches your search. Open Gmail and check the Drafts folder. When the draft looks right, flip the Zap to On. From now on, matching emails get an AI draft within a minute or two.
Result: a colleague emails asking to move a meeting. A minute later you open Gmail and a threaded draft is already there saying you can do Thursday at 2pm instead. You tweak one line and hit send. The whole reply took ten seconds.
Watch related tutorials
30:00
20:00
07:00
18:20
16:00
14:30