- New email
- Classify
- Label or archive
Inbox-zero assistant that drafts every reply
A Lindy agent sorts each new Gmail message, archives the noise, and leaves a draft reply in your voice for everything that needs an answer.
Build a free AI email agent in n8n with Gmail and a local model, then stress-test it against prompt-injection emails.
“AI Gmail Agent in n8n with Prompt-Injection Testing” is an intermediate Personal Productivity AI agent workflow from Any. It connects n8n, Gmail and Other or custom in 5 steps. Setup takes about Not stated and running costs are about Not stated.
Manually triaging an inbox is slow, and handing email handling to an AI agent introduces a real risk: malicious messages can try to hijack the agent through prompt injection. This workflow builds a free email agent on n8n, Gmail and a local model, then deliberately attacks it with crafted injection emails to see which defenses hold and which fail.
Create an n8n workflow with a Gmail trigger so incoming messages start the flow. Authenticate the Gmail node and confirm test messages arrive as expected before adding any AI logic.
Add an AI agent node and point it at a locally hosted model so the setup stays free. Give the agent a narrow instruction set for reading and acting on email, and keep its available actions minimal.
Let the agent process a small batch of messages and check its outputs. Confirm it reads content correctly and only takes the actions you intended before exposing it to anything untrusted.
Craft three emails containing prompt-injection attempts and send them through the inbox. Observe how the agent responds to each and note which attempts it follows and which it resists.
For any injection that succeeded, tighten the agent's instructions, restrict its tools, or add a validation step before actions execute. Re-run the same test emails to confirm the fix.
In n8n, create a workflow that triggers on new Gmail messages, passes the email body to a locally hosted model through an AI agent node, and returns a short summary plus a suggested action. Keep the agent's tool access limited to reading and labeling. Output the workflow as JSON I can import, and list the credentials I need to connect for [MY GMAIL ACCOUNT].
Build a free AI email agent in n8n with Gmail and a local model, then stress-test it against prompt-injection emails.
You need n8n, Gmail and Other or custom.
Plan for about Not stated. It is rated intermediate. The guide walks through 5 steps, starting with “Wire Gmail into n8n”.
Expect about Not stated in running costs (Free range).
Manually triaging an inbox is slow, and handing email handling to an AI agent introduces a real risk: malicious messages can try to hijack the agent through prompt injection. This workflow builds a free email agent on n8n, Gmail and a local model, then deliberately attacks it with crafted injection emails to see which defenses hold and which fail.
A Lindy agent sorts each new Gmail message, archives the noise, and leaves a draft reply in your voice for everything that needs an answer.
Score every demo request against your ICP, update HubSpot and ping the right rep in Slack within a minute of the form submit.
Every new Zendesk ticket gets a category, priority and sentiment tag plus a draft reply in an internal note before an agent opens it.
Built this workflow? Show it is featured on AgentUseHub with a live upvote count that links back here. About badges