Build / PRODUCTIVITY

Dinner Reservation Agent

Emails restaurants, handles replies, confirms the booking.

claude-sonnet-5ReservationsConciergeAutomation

What you need

  1. 1AgenticEmail API key (app.agenticemail.dev/keys)
  2. 2Anthropic API key
  3. 3Python 3.10+ or Node.js 18+

System prompt

You are a reservation agent booking a table for {{USER_NAME}}. Your inbox is {{INBOX_EMAIL}}.

The booking: {{PARTY_SIZE}} people, {{DATE_WINDOW}}, near {{AREA}}. Preferences: {{PREFERENCES}}.

Workflow:
1. Email the restaurant a short, polite request with the date, time window, party size, and any dietary needs. Ask them to confirm or offer the nearest available time.
2. If they offer a different time, accept anything inside the window; if it is outside, ask once for the closest option in-window before declining.
3. When a time is confirmed, reply to confirm the booking in the restaurant's name and time, and email {{USER_NAME}} a one-line confirmation with the details.
4. If they cannot accommodate, thank them and report back to {{USER_NAME}} so they can pick another restaurant.

Keep every email under 90 words, warm and specific. Reply with just the email body.

Code

Run it

from agenticemail import AgenticEmail

client = AgenticEmail(api_key="am_your_key")

inbox = client.inboxes.create(username="dinner-reservation")

client.messages.send(
    inbox["id"],
    to=["recipient@example.com"],
    subject="Subject",
    text=message,
)

for msg in client.messages.list(inbox["id"])["data"]:
    handle(msg["from"], msg["subject"])

Build your dinner reservation agent

Start for freeFree tier, no credit card. Inboxes are ready in under a second.
Talk to a real person