# Meeting slot reply

When an email asks to meet, a Gmail draft offering three free slots from your calendar, inside working hours. Never sends, never books.

Requires Gmail, through Composio. Requires Google Calendar, through Composio.

## Install

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

```sh
npx @parcha/agentrun template install github:Parcha-ai/agentrun-templates/templates/meeting-slot-reply@9ed9ff98e3130d3dce065743e8c60bb13e84f646 --trust
```

Or open `<your AgentRun address>/#/templates/install?src=github%3AParcha-ai%2Fagentrun-templates%2Ftemplates%2Fmeeting-slot-reply%409ed9ff98e3130d3dce065743e8c60bb13e84f646`. Pinned to commit 9ed9ff98e3130d3dce065743e8c60bb13e84f646.

### Install with your agent

Copy this prompt into your coding agent:

```text
Help me install the Meeting slot reply template on my existing AgentRun.

Pinned template source: github:Parcha-ai/agentrun-templates/templates/meeting-slot-reply@9ed9ff98e3130d3dce065743e8c60bb13e84f646
Read the template and its instructions: https://github.com/Parcha-ai/agentrun-templates/tree/9ed9ff98e3130d3dce065743e8c60bb13e84f646/templates/meeting-slot-reply

Ask for my AgentRun address or local installation directory if you do not already know it. Confirm which instance to use before making changes.
Read https://agentrun.ai/SKILL.md and inspect the installed version's template install help. Use the installation workflow that version supports.
Review this template's setup, instructions and requested tools with me, then install the pinned version on that instance with the settings and permissions I approve. Do not start a second instance or redeploy my existing one.
If this version cannot install templates, explain what is missing and the supported next step. Verify the result and tell me how to run the installed agent.
```

## What it does

When someone emails asking to meet, it checks your Google Calendar's free time and writes a reply as a Gmail draft in that thread offering three open slots inside your working hours, in your time zone, keeping to the length and days they asked for. It never sends and never books: you read the draft, press send, and make the invite once they pick. Mail that isn't asking to meet gets no draft and no calendar look-up.

- Skill `slot-reply`: Answer an email that asks to meet with a Gmail draft in its thread offering three open slots from the owner's Google Calendar free/busy, inside working hours and in the owner's time zone, keeping to the length and days the sender asked for. Reads one thread and one free/busy window; saves one draft; never sends or books. Use for each new mail the trigger hands over, or for "offer times in this thread".

## What starts it

- A Gmail event through Composio: new gmail message. At most 1 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 slot 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`. |

### Setup, filled in once at install

| Name | Type | Required | What it is |
| --- | --- | --- | --- |
| `query` | string | no | Which new mail it reads, as a Gmail search: your primary inbox, minus your own mail, unless you set it (label:meetings to read only a label a filter fills) Default: `in:inbox category:primary -from:me`. |
| `timezone` | string, timezone | no | Your IANA time zone (America/New\_York, Europe/Madrid): working hours and every time in the draft are in it. UTC unless you set it. Default: `UTC`. |
| `work_start` | string | no | The earliest a slot starts, 24-hour HH:MM: 09:00 unless you set it. Default: `09:00`. |
| `work_end` | string | no | The latest a slot ends, 24-hour HH:MM: 17:00 unless you set it. Default: `17:00`. |
| `days_ahead` | integer, 1 to 15 | no | How many working days (Monday to Friday) it looks ahead, from the next one: 5 unless you set it. Default: `5`. |
| `slot_minutes` | integer, 15 to 180 | no | How long a slot is when the mail doesn't say, in minutes: 30 unless you set it. Default: `30`. |
| `calendar_id` | string | no | The Google Calendar whose free time it offers: primary, your main calendar, unless you set it. Default: `primary`. |
| `sign_off` | string | no | How the draft signs off ("Best, Sam"). Blank: it copies the sign-off from your own mail in the thread, else none. |

## What it needs

- Harness: pi, claude-agent, codex
- Model: balanced tier, medium effort
- Tools: read
- Composio Gmail tools: GMAIL_FETCH_MESSAGE_BY_MESSAGE_ID, GMAIL_FETCH_EMAILS, GMAIL_LIST_DRAFTS, GMAIL_CREATE_EMAIL_DRAFT. Reads the new mail and the newest few messages of its thread, lists the rest by sender and time only, and saves one reply draft in it. It can't send. You tick the draft yourself, since its recipient changes each run; cc, bcc and extra recipients are always off.
- Composio Google Calendar tools: GOOGLECALENDAR_FREE_BUSY_QUERY. Reads when your calendar is busy over the next working days, as start and end times only: no titles, guests or notes. It can't create, change or accept an event.
- Computer: Wherever your AgentRun puts a new agent
- Keys: A model key
- Learning: on

## Sample output

No sample output ships with this template yet.

## Tested

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

8 eval cases: draft-on-page-two, draft-waits, hour-thursday-friday, injection-in-mail, long-thread, newer-message, not-a-meeting, offers-three-slots.

## Source

- Package: https://github.com/Parcha-ai/agentrun-templates/tree/9ed9ff98e3130d3dce065743e8c60bb13e84f646/templates/meeting-slot-reply
- Publisher: Parcha-ai
- Author: Parcha Labs
- Version: 0.1.0
- License: Apache-2.0
- Category: Personal
- Page: https://marketplace.agentrun.ai/templates/meeting-slot-reply/
