> ## 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 one-off event type

> Create a temporary Calendly event type with a bounded schedule.

`calendly.createOneOffEventType` creates a temporary booking page for a host and a bounded date range, future-day window, or explicit set of spots.

```ts automations/create-calendly-one-off-event.automation.ts theme={null}
import { automation, onDashboardRun, sendEmail } from "automate.ax"
import { calendly } from "automate.ax/calendly"

export default automation("Create one-off Calendly event", () => {
  onDashboardRun({ title: "Create one-off event" })
  const eventType = calendly.createOneOffEventType({
    name: "Launch review",
    host: "https://api.calendly.com/users/user-id",
    duration: 30,
    dateSetting: { type: "days_in_future", days: 7, onlyWeekdays: true },
    location: { kind: "zoom_conference" },
  })
  sendEmail({
    subject: "Book the launch review",
    text: eventType.schedulingUrl,
  })
})
```

`name`, `host`, `duration`, and `dateSetting` are required. A date-range end must be in the future and less than 365 days after its start. Optional inputs include co-hosts, timezone, and a location. Creation is not replay-safe.
