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 builder

What 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. 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. 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. 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. 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. 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. 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

One email takes five basic block runs: the Gmail trigger counts as two, the ChatGPT block as two, and the Telegram message or sheet row as one. 1,000 runs cost $1. OpenAI bills tokens separately, so a long email costs more than a short one. A failed block run is not charged. An enabled scheme costs $0.0042 per hour, and a scheme kept on around the clock spends most of the free $3.50 a month on that.

Not in the same thread. The Gmail block in nana800 only reads the Inbox: it does not create drafts, set labels or reply in a thread. You can send the model text with the send email message block from your mailbox over SMTP to the address in from, but it goes out as a new email with no human check and costs as much as 20 runs. Getting the draft in Telegram and answering yourself is safer.

To any next block of the scheme: a message in Telegram or Slack, a row in Google Sheets, a lead in Bitrix24 or a deal in amoCRM, an email to yourself or a colleague through send email message. The answer text is in text_response, and with the json_object format single fields are in json_response.

Only those that match the search query of the trigger, and only what you put into the prompt: usually the sender, subject and text. That goes to OpenAI under your key. The scheme does not change emails in Gmail and does not mark them as read. If the mailbox holds things you cannot share with outside services, narrow the search, for example to from:@client.com, or use a separate mailbox for work mail.

For summaries and categories the fast and cheap gpt-6-luna is enough: answers are short and emails are many. The default gpt-6.1-sol fits most tasks, draft replies included, and the smartest gpt-6-astra helps with hard emails such as claims with calculations. OpenAI retires the models at the end of the list, and gpt-4.1-nano and o4-mini no longer work.

No. With include attachments on, the trigger returns only a list of attachments: name, size and file type, and the files themselves are not downloaded into the scheme. If you put this list into the prompt, ChatGPT knows that an invoice or a contract is attached, but it cannot open the file.

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