> ## 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.

# On invitee created

> Run an automation when an invitee books a Calendly meeting.

`calendly.onInviteeCreated` starts from a new booking.

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

export default automation("Welcome Calendly invitees", () => {
  const event = calendly.onInviteeCreated({
    organizationUri: "https://api.calendly.com/organizations/organization-id",
    scope: "organization",
  })
  sendEmail({
    to: event.payload.email,
    subject: `Booked: ${event.payload.scheduledEvent.name}`,
    text: `Starts ${event.payload.scheduledEvent.startTime}`,
  })
})
```

The payload includes invitee answers, tracking, cancellation and rescheduling URLs, and the complete scheduled event.
