- Home
- Integrations
- Gmail
- Gmail + OpenAI (ChatGPT)
ChatGPT for Gmail: a summary, category or draft reply for every email
ChatGPT for Gmail in nana800 takes three blocks: the trigger finds a new email, Open AI request summarizes it, sets a category or drafts a reply, and a third block sends the result to Telegram or as a row to Google Sheets. You need a Google app password and your own OpenAI key, no code. OpenAI bills the tokens, and block runs come from your nana800 balance, topped up to $3.50 for free every month.
Build it in the builderWhat you can automate
- Get a two or three line summary of every email in Telegram: who writes, what they ask for and by when
- Sort your mail: ChatGPT sets a category (lead, invoice, complaint, ad), and the free condition block lets only leads and complaints through to Telegram
- Prepare a draft reply to a client: it reaches the manager in Telegram, who edits it and answers from Gmail personally
- Keep an email log in Google Sheets: date, sender, subject, category and summary in their own columns
- Pull the invoice number, amount and due date out of supplier emails and save them as a row in a sheet
- Read emails written in other languages in your own: ask for the summary in your language in the task
How to set it up
- 1
Get an OpenAI key and a Gmail password
A key that starts with sk-... is created under API keys in your OpenAI account, and the OpenAI balance must not be empty. For the mailbox, create an app password in your Google account: Security, 2-Step Verification, App passwords.
- 2
Add the Gmail trigger
Create a scheme, add gmail incoming email, enter the address and pick APP_PASSWORD_IMAP with the app password or OAUTH_CLIENT. Use search query to cut the noise, for example -category:promotions or from:@client.com: every email that reaches ChatGPT spends tokens.
- 3
Write the task for ChatGPT
Add Open AI request in TEXT_COMPLETION mode and paste the key. In the system instruction describe the job, for example "Summarize the email in three lines". Put from, subject and body_text into the prompt. Emails with only an HTML version can have an empty body_text, so use body_html for them.
- 4
Choose the response format
For a summary or a draft keep the text format, the answer lands in text_response. For a category or data from the email pick json_object and list the fields in the task, for example category, urgency and summary. They come in json_response, ready to go into columns or into a condition block check.
- 5
Send the result on
For Telegram add Telegram message send: bot token, chat ID, the email subject and text_response in the text, plain_text format. Telegram rejects messages over 4096 characters, so limit the answer length in the task. For a log add google sheet record with append_row and map the fields to columns.
- 6
Turn the scheme on and test it with an email
Turn the scheme on. The first check only remembers the emails already in the Inbox, and ChatGPT does not see them. Send yourself an email: the summary arrives after the next check. If not, the reason is in error_text of the ChatGPT block. An enabled scheme costs $0.0042 per hour.
Pricing
A run of a Gmail block costs $0.002, a run of a OpenAI (ChatGPT) block costs $0.002. Every month the balance is topped up to $3.50 for free, an enabled scheme costs $0.0042 per hour.
Services in this connection
- Gmail
Start a scheme on every new Gmail email: send an alert to Telegram, save it to a spreadsheet or let an AI read it. No code, free balance every month.
- OpenAI (ChatGPT)
Use the ChatGPT API without code: reply to leads, summarize emails, read photos, get JSON for tables and generate images. Your OpenAI key, free balance every month.
Similar integrations
- Gmail + amoCRM
An email with a lead in Gmail becomes an amoCRM deal by itself: ChatGPT pulls the client name, phone and email out of the text. No code, free balance every month.
- Gmail + Discord
New Gmail emails arrive as messages from your bot in a Discord channel, with the sender, subject and start of the text. Gmail search filter, no code, free balance.
- Gmail + Google Sheets
Every new Gmail email becomes a row in Google Sheets, with the sender, subject, date and start of the text in their own columns. Free balance monthly, no card needed.
- Gmail + Notion
Every new Gmail email becomes a row in a Notion database: subject as the title, sender and date in columns, the text on the row page. No code, free balance monthly.
- Gmail + Slack
Every new Gmail email arrives as a message in a Slack channel, with the sender, subject and start of the text. Gmail search filter, no code, free balance monthly.
- Gmail + Telegram
Get new Gmail emails as Telegram messages: sender, subject and text in your private chat or a team group. Free balance every month, no card needed.
Frequently asked questions
Build your first scheme for free
Sign-up is free and needs no card. Every month the balance is topped up to $3.50 for free, enough for about 3,500 runs of basic blocks.
Build it in the builder