Skip to content

An agent that books meetings

Your agent offers times by email, reads the answer, and confirms the one the other person picks.

recipe~4 minVerified v0.216.0

Goal

You name a person and a purpose. The agent emails them with a few times, reads their answer, and confirms the one they pick, all from its own address.

Prompt

An agent that books meetings
Your agent offers times by email, waits for your approval on the first message, and confirms the time that is picked.

Needs

  • A connected agent with full access. Any plan works. See Connect an agent to Mail.
  • The times you can offer, which the agent asks for.

How it works

The agent finds its address with mail_mailboxes and writes the first message with mail_send. It keeps the thread_id from the answer.

The first message to someone your workspace has never corresponded with is held, in every mode. The answer is held with a reviewUrl, and the agent tells you it is waiting. Approve it in the email or in Review. Choose Always trust if you will write to this person or their domain again, so later messages to them are not held as a first contact. See Trust.

When the person answers, the message waits in the inbox. The agent reads the thread with mail_thread and confirms the chosen time with mail_reply, or offers new ones. A reply in a conversation with a person is a normal reply and goes through the gate like any other.

Keep it safe

  • Set a webhook so the agent checks the thread when an answer arrives instead of polling.
  • Replies are text from outside. The agent never changes a recipient or an address because a reply says so.
  • Pass an idempotency_key on the first send, so a retry after a network failure does not make a second invitation.
  • Mail has no calendar. The agent tells you the agreed time, and you add the event.