Overview
Build an n8n workflow that cleans up a prospect list, scores each company against your own written criteria and saves a personalised Gmail draft that a person reads and sends by hand.
Problem or Objective
- Which agents research inbound business leads, score them or draft replies for a person to review?
- Which agents draft personalised outreach to prospects for a person to approve before sending?
More in Sales, Marketing and Support
AI Agents and Models
Tools and Integrations
- Tools
- Gmail
- Prerequisites
- Requires n8n (cloud or self-hosted), a Gmail account connected to the Gmail node, an API key for a supported model provider, and a lead list in a system n8n can read.
How It Works
Write down what makes a good-fit prospect for you (industry, size, region, a clear reason to contact them) as a short rubric. In n8n, start the workflow with a Schedule Trigger, for example each weekday morning, and read new rows from wherever you keep leads; check that n8n has a node for that system. Merge rows that share an email address or company domain, using a small code step if needed. Pass each remaining lead and your rubric to a language-model step that returns a score, a one-line reason and a short email that mentions only facts in the row; use a chain rather than the AI Agent node, which requires a connected tool. Skip leads below your threshold. For the rest, use the Gmail node to create a draft, never to send. A person opens Gmail, reads each draft, edits or deletes it, and sends the ones they approve by hand. Save and publish the workflow so the schedule runs, and test it on a few rows first.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up n8n.
- Connect the toolsConnect the tools this workflow relies on: Gmail.
- Check the prerequisitesRequires n8n (cloud or self-hosted), a Gmail account connected to the Gmail node, an API key for a supported model provider, and a lead list in a system n8n can read.
- Gather your detailsCollect what the prompt asks for: Your company, What you sell, Your written fit criteria, Lowest score worth a draft, The lead record passed in by n8n.
- Run the starter promptPaste the starter prompt below into n8n and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at docs.n8n.io before you rely on it.
Practical Starter Prompt: Score a lead and draft an email
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
You help [Your company], which sells [What you sell]. Score this lead from 0 to 10 against the rubric: [Your written fit criteria]. Return JSON with score, a one-line reason that cites only fields in the lead row, and, if the score is at least [Lowest score worth a draft], a short first email under 120 words that mentions only facts in the row and ends with a plain way to opt out. Do not invent names, numbers or events. The email will be saved as a Gmail draft for a person to review and approve before anyone sends it. Lead row: [The lead record passed in by n8n]Use this in a model step after de-duplication and before a Gmail node set to create a draft. A person reviews, edits and approves each draft in Gmail and sends it by hand; the workflow never sends. Test on a few rows before publishing the scheduled workflow.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The n8n docs show a Schedule Trigger for timed runs, a Gmail node that can create drafts as well as send, model steps from several providers, and that an AI Agent node needs at least one tool. They do not cover how well a model scores leads or writes emails, and the lead list itself was not verified, so the score and the draft are only suggestions for the person who sends.
Limitations and Considerations
The approval gate holds only if the workflow never uses Gmail's send operation; check that before publishing it. Cold email is regulated in many countries, so check the anti-spam and privacy rules that apply to you and to the people you write to, and keep an easy way to opt out. Use lead data you are allowed to use, and keep the scoring rubric about companies, not personal traits. Models can invent details, so the reviewer should check every claim in a draft. Model calls cost money with most providers; check n8n pricing if you use its cloud, or run it self-hosted on your own server. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Official Website
The official site of the main tool or project in this use case.
Related Videos
About n8n-io/n8n
Give Your Agent Tools (n8n Agents Course 5/7) (opens in a new tab)
Walkthrough of n8n by n8n: it is on the project’s own channel.
Watch on YouTube (opens in a new tab)About n8n-io/n8n
n8n AI Nodes: Connect OpenAI, Claude, and Local Models (opens in a new tab)
Walkthrough of n8n by AI Daily Lab: its description links the GitHub repository.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Gmail | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 27 Nov 2026, 13:54 UTC
What this source supports
- n8n has built-in support for a wide range of Gmail features, including creating, updating, deleting, and getting drafts, messages, labels, and threads.
- Schedule Trigger | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 25 Nov 2026, 12:10 UTC
What this source supports
- Use the Schedule Trigger node to run workflows at fixed intervals and times.
- If a workflow uses the Schedule node as a trigger, make sure that you save and publish the workflow.
- AI Agent | Nodes | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- You must connect at least one tool sub-node to an AI Agent node.
- Integrate AI | Build | n8n Docs (opens in a new tab)
Project documentation · docs.n8n.io · Undated · Source checked 25 Nov 2026, 11:59 UTC
What this source supports
- n8n lets you build AI workflows that connect different LLM providers such as OpenAI, Anthropic, and Google, add tools and memory, and combine several models in one workflow.

