Latenode

AI-powered email management: Summarize, approve, and send

This template starts when a new email lands in Gmail. JavaScript keeps the plain text.

ChatGPT writes a short summary and a reply, using snippets Pinecone finds in your knowledge index. Gmail stores that reply as a draft so you can edit and send it. Connect Gmail and Pinecone. ChatGPT is a Latenode AI step, so you do not paste an OpenAI key.

Updated Sep 16, 2026Est. run: 27sEst. cost: $0.0017
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Turns new Gmail into a draft reply you can approve before send
  • Summarizes and writes the reply with ChatGPT
  • Pulls matching answers from Pinecone
  • Keeps the unsent reply in Gmail as a draft

How it works

1
Trigger

Watch the Gmail inbox

The scenario starts when a new email arrives in the Gmail inbox you connect.

2
AI

Summarize and retrieve

JavaScript strips HTML. ChatGPT summarizes the message. Pinecone searches your knowledge index for matching answers.

3
Logic

Build the draft

JavaScript combines the summary and Pinecone snippets. ChatGPT returns the reply you will review.

4
Action

Save a Gmail draft

Gmail creates a draft reply on that thread. You open it, edit if needed, and send.

Setup guide

1

Connect Gmail

Add a Gmail connection with permission to read new mail and create draft replies.

2

Connect Pinecone

Add a Pinecone connection and paste your Pinecone API key there. Point search at the index that holds your reply knowledge.

3

Wire ChatGPT and the draft

Watch new Gmail. Clean the body in JavaScript, search Pinecone, ask ChatGPT for a summary and a reply, then create a Gmail draft reply. ChatGPT is a Latenode AI step, so you do not paste an OpenAI key. Send a test message and open the draft in Gmail.

Requirements

A Gmail inbox Latenode can read and create drafts in
A Pinecone index with the answers you want the reply to use, and an API key on the Pinecone connection

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work. Plug-and-Play AI nodes are billed separately.