# Follow-up drafter

Writes your next reply as a Gmail draft when an email lands in a label you pick.

Requires Gmail, through Composio.

## Install

No one has run this against real Gmail accounts through Composio yet. Its eval cases use stand-ins.

```sh
npx @parcha/agentrun template install github:Parcha-ai/agentrun-templates/templates/follow-up-drafter@242f29da8317fbe51d0cce4628bdb5ab61d7ccc9 --trust
```

Or open `<your AgentRun address>/#/templates/install?src=github%3AParcha-ai%2Fagentrun-templates%2Ftemplates%2Ffollow-up-drafter%40242f29da8317fbe51d0cce4628bdb5ab61d7ccc9`. Pinned to commit 242f29da8317fbe51d0cce4628bdb5ab61d7ccc9.

## What it does

When a new email lands in a Gmail label you pick (say, follow-up), it reads the whole thread and writes your next reply as a Gmail draft in that thread, in your own voice. It answers each question from what the thread already says and leaves a bracketed blank for anything only you know (a price, a date, a yes). It never sends. Each draft waits for your yes before it's saved, and you press send. It skips threads where you wrote last, a draft already waits, or the sender asked not to be contacted.

- Skill `follow-up`: Draft the owner's next reply in one Gmail thread through Composio's Gmail tools. Read the thread, decide whether it needs a reply, answer each open question from what the thread says and leave bracketed blanks for the rest, in the owner's voice, then save one draft in the thread to the person who wrote. Never a send. Use for the new-mail trigger and for "draft a reply to thread X".

## What starts it

- A Gmail event through Composio: new gmail message. At most 3 at once.
- By hand, any time: from the console, the API or the CLI.

## Inputs

| Name | Type | Required | What it is |
| --- | --- | --- | --- |
| `thread_id` | string | no | Draft a reply in this Gmail thread, for a run by hand (the long hex id in the thread's URL). Leave it out on the trigger's runs: the event names the thread. Example: `19a2b3c4d5e6f708`. |
| `notes` | string, 0 to 1000 characters | no | Facts or decisions the reply should carry that the thread doesn't hold ("yes to Dec 1, no discount"). Blank: unknowns become bracketed blanks. Example: `Yes to a Dec 1 start. No multi-year discount.`. |

### Setup, filled in once at install

| Name | Type | Required | What it is |
| --- | --- | --- | --- |
| `label` | string | yes | The Gmail label whose new mail gets a draft reply, as you see it in Gmail (follow-up, Clients/Active) |
| `voice` | string | no | How you write, in a line: "short, first names, no exclamation marks, sign off 'Best, Mia'". Blank: it copies the tone of your own messages in each thread. |

## What it needs

- Harness: pi, claude-agent, codex
- Model: balanced tier, medium effort
- Tools: read
- Composio Gmail tools: GMAIL_FETCH_MESSAGE_BY_THREAD_ID, GMAIL_CREATE_EMAIL_DRAFT. Reads the one thread the new mail belongs to and saves one reply draft in it. It can't send. The draft goes to whoever wrote to you, which no setting can fix in advance, so you tick it yourself; cc, bcc and extra recipients are always off.
- Computer: Wherever your AgentRun puts a new agent
- Keys: A model key
- Learning: on

## Sample output

Input:

```json
{
  "content": "Draft my reply to this thread.",
  "thread_id": "19b0a1c2d3e4f501"
}
```

Output:

Illustrative output, written by hand to show the shape. A measured eval run replaces it.

Draft saved in **Re: Acme Team plan for Initech** to Jamie Chen. Not sent.

> Hi Jamie,
>
> Thanks for the questions.
>
> 1. Yes, SSO is included on the Team plan, for all 60 people.
> 2. Starting Dec 1: [confirm: can we start Dec 1?]
> 3. Two-year term: [your call: 15% off for two years?]
>
> Best,
> Mia

- SSO: answered yes, from your Nov 12 quote.
- Fill before sending: the Dec 1 start date and the two-year discount.
- Robin Diaz was cc'd on Jamie's mail. Add Robin if you want them on the reply.

## Tested

Passes 4 of 4 eval cases on pi, 4 of 4 on Claude Code and 4 of 4 on Codex.

4 eval cases: draft-already-waits, drafts-reply, injection-in-thread, you-wrote-last.

## Source

- Package: https://github.com/Parcha-ai/agentrun-templates/tree/242f29da8317fbe51d0cce4628bdb5ab61d7ccc9/templates/follow-up-drafter
- Publisher: Parcha-ai
- Author: Parcha Labs
- Version: 0.1.0
- License: Apache-2.0
- Category: Sales
- Page: https://marketplace.agentrun.ai/templates/follow-up-drafter/
