> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Create event invitee

> Book an invitee directly into a Calendly event type.

`calendly.createEventInvitee` books a selected start time. Calendly requires Standard or above and applies stricter rate limits to this endpoint.

```ts automations/book-calendly-invitee.automation.ts theme={null}
import { automation, onDashboardRun, sendEmail } from "automate.ax"
import { calendly } from "automate.ax/calendly"

export default automation("Book Calendly invitee", () => {
  onDashboardRun({ title: "Book a Calendly invitee" })
  const invitee = calendly.createEventInvitee({
    eventType: "https://api.calendly.com/event_types/event-type-id",
    startTime: "2027-01-06T18:00:00Z",
    invitee: {
      name: "Grace Hopper",
      email: "grace@example.com",
      timezone: "America/Los_Angeles",
    },
  })
  sendEmail({
    to: invitee.email,
    subject: "Meeting booked",
    text: invitee.rescheduleUrl,
  })
})
```

`eventType`, `startTime`, and invitee `email` and `timezone` are required. Supply either `name` or `firstName`; you can add `lastName` and `textReminderNumber`. Optional fields include the event type's matching `location`, required `questionsAndAnswers`, tracking values, and up to 10 `eventGuests`. This mutation is not replay-safe; retry only after confirming Calendly did not create the invitee.
