Dev · Persian · 2025-05-04

Controlling Gmail with an n8n AI agent

A no-code build: wiring Gmail into n8n with OAuth2 and letting an AI agent triage and act on email automatically.

A practical automation build. I connect Gmail to n8n and hand control of the inbox to an AI agent that can read, classify and act on messages — all without writing a traditional backend.

What the video covers

  • Building an n8n workflow from scratch.
  • Connecting Gmail securely with OAuth2 (and why that matters versus pasting credentials).
  • Defining a trigger that fires on incoming mail.
  • Passing the message to an AI agent, getting a decision back, and executing an action automatically.

Why it's useful

This is the kind of glue work that saves real hours: automatic triage, auto-replies, and routing — assembled from no-code building blocks. It's aimed at developers and hackers who want leverage without standing up infrastructure.

Persian narration; the n8n canvas and node configuration are visual and easy to follow along.

Watch on YouTube ↗