PICKED FROM N8N.IO · EMAIL & INBOX

Watches your Gmail inbox for new emails. OpenAI first decides whether a message needs a reply, then writes a response using your prompt. The reply is converted to HTML and saved as a draft in the same Gmail thread, so you review, edit and send it yourself.

Template by Nicolas Chourrout · 76.4k views on n8n.io · listed there as “Gmail AI Auto-Responder: Create Draft Replies to incoming emails”

THE WORKFLOW8 NODES
@Gmail Trigger⑂If Needs Reply{}JSON Parser◆OpenAI Chat◆OpenAI Chat Model@Gmail - CreateDraft✦Assess if messageneeds a reply✦Generate emailreply
DIFFICULTY
Beginner
NODES
8
USES AI
Yes
PUBLISHED
May 2024

001 / WHAT HAPPENS

  1. 01

    The Gmail trigger fires when a new email arrives.

  2. 02

    OpenAI assesses whether the message needs a reply and returns a structured answer.

  3. 03

    An If step stops the workflow for emails that need no response.

  4. 04

    OpenAI writes a reply using your system prompt.

  5. 05

    The reply is saved as a draft in the Gmail thread, ready for you to approve.

WHO IT SUITS

Suits owners and small teams buried in routine emails who want a first draft ready but keep control over what actually gets sent.

CONNECTS

  • Gmail
  • OpenAI

002 / BEFORE YOU USE IT HERE

  • !Customer or lead details are sent to an overseas AI provider, which is a cross-border disclosure under APP 8 of the Privacy Act, so say so in your privacy policy.
  • !Email content may include customer, staff or health details, so test on non-sensitive mail first and keep it away from sensitive inboxes.
  • !Edit the reply prompt so the tone, sign-off and business details match yours; it only drafts, so keep reviewing before sending.
  • !Needs Google OAuth set up with Gmail permissions and a paid OpenAI API key.

LOCAL SWAP

Swap the Gmail nodes for the Microsoft Outlook nodes to draft replies in Outlook.

Need n8n and the AI hosted in Australia? →

004 / QUESTIONS

Anything else is quicker to answer on a call. Thirty minutes, free, with the people who would build it.

Yes. Every template on this list is free on n8n.io. You need an n8n account (n8n Cloud or self-hosted) and accounts for the apps it connects to, some of which charge for API use.

We adapt templates to your systems, add approval steps where customers are involved, host n8n in Australia when the data calls for it and hand it over documented.

Book a free call→