calendly.onEventTypeCreated returns the new event type configuration.
automations/calendly-event-type-created.automation.ts
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Run an automation when Calendly creates an event type.
calendly.onEventTypeCreated returns the new event type configuration.
import { automation, sendEmail } from "automate.ax"
import { calendly } from "automate.ax/calendly"
export default automation("Review new Calendly event types", () => {
const event = calendly.onEventTypeCreated({
organizationUri: "https://api.calendly.com/organizations/organization-id",
scope: "organization",
})
sendEmail({
subject: `New event type: ${event.payload.name}`,
text: event.payload.schedulingUrl,
})
})