Gmail New Email to Gemini Generate Content (with Attachments)

Gmail
Gemini

How this workflow works

Step 1

New Email•Gmail

Polls for new emails in the INBOX.

Step 2

Generate Content (with Attachments)•Gemini

Sends a text prompt along with zero or more attachments — images (PNG/JPEG/GIF/WEBP), PDFs, or plain text files — to a Gemini model and returns the AI-generated response. Attachments can be supplied as a Base64 string, a Base64 array, an attachment object, or a URL array. Word, Excel, and PowerPoint files are not supported by Gemini's API and are automatically skipped; the response indicates how many attachments were skipped.

Gmail

New Email

Gmail

Trigger
Gemini

Generate Content (with Attachments)

Gemini

Action

Your pipeline isn't going to build itself

Deploy your first AI agent today — free, no credit card required. See results in your first session.

14-day free trial · Setup under 30 min · Cancel anytime