cal-com
Expert guidance for Cal.com, the open-source scheduling platform for building booking and appointment systems. Helps developers integrate Cal.com's embed widgets, REST API, and webhooks to add scheduling capabilities to their applications.
What this skill does
# Cal.com — Scheduling Infrastructure
## Overview
Cal.com, the open-source scheduling platform for building booking and appointment systems. Helps developers integrate Cal.com's embed widgets, REST API, and webhooks to add scheduling capabilities to their applications.
## Instructions
### Embed Widget
Add a booking widget to any website:
```tsx
// src/components/BookingWidget.tsx — Embed Cal.com scheduling in a React app
import Cal, { getCalApi } from "@calcom/embed-react";
import { useEffect } from "react";
export function BookingWidget() {
useEffect(() => {
(async () => {
const cal = await getCalApi();
// Configure the embed appearance
cal("ui", {
theme: "light",
styles: { branding: { brandColor: "#6366f1" } },
hideEventTypeDetails: false,
layout: "month_view", // "month_view" | "week_view" | "column_view"
});
})();
}, []);
return (
<Cal
calLink="your-team/discovery-call" // Your Cal.com event link
style={{ width: "100%", height: "100%", overflow: "scroll" }}
config={{
layout: "month_view",
name: "Customer Name", // Pre-fill guest name
email: "[email protected]", // Pre-fill guest email
notes: "Interested in Enterprise plan",
}}
/>
);
}
// Floating button that opens calendar in a popup
export function BookingButton() {
useEffect(() => {
(async () => {
const cal = await getCalApi();
cal("floatingButton", {
calLink: "your-team/discovery-call",
buttonText: "Book a Demo",
buttonColor: "#6366f1",
buttonTextColor: "#ffffff",
buttonPosition: "bottom-right",
});
})();
}, []);
return null; // The floating button renders itself
}
```
### REST API Integration
Manage bookings, event types, and availability programmatically:
```typescript
// src/cal/client.ts — Cal.com API client for server-side operations
const CAL_API_URL = "https://api.cal.com/v2";
const CAL_API_KEY = process.env.CAL_API_KEY!;
async function calFetch(path: string, options?: RequestInit) {
const response = await fetch(`${CAL_API_URL}${path}`, {
...options,
headers: {
"Content-Type": "application/json",
"cal-api-version": "2024-08-13", // Pin API version for stability
Authorization: `Bearer ${CAL_API_KEY}`,
...options?.headers,
},
});
if (!response.ok) {
const error = await response.json();
throw new Error(`Cal.com API error: ${error.message}`);
}
return response.json();
}
// Create a new event type (e.g., "30-min Discovery Call")
async function createEventType(params: {
title: string;
slug: string;
lengthInMinutes: number;
description?: string;
locations?: { type: string; link?: string }[];
}) {
return calFetch("/event-types", {
method: "POST",
body: JSON.stringify({
title: params.title,
slug: params.slug,
lengthInMinutes: params.lengthInMinutes,
description: params.description,
locations: params.locations ?? [
{ type: "integrations:google:meet" }, // Default: Google Meet
],
bookingFields: [
{ name: "company", type: "text", label: "Company Name", required: true },
{ name: "teamSize", type: "select", label: "Team Size",
options: ["1-10", "11-50", "51-200", "200+"], required: true },
],
}),
});
}
// Get available time slots for a date range
async function getAvailability(params: {
eventTypeId: number;
startTime: string; // ISO 8601
endTime: string;
timeZone: string;
}) {
const query = new URLSearchParams({
eventTypeId: String(params.eventTypeId),
startTime: params.startTime,
endTime: params.endTime,
timeZone: params.timeZone,
});
return calFetch(`/slots?${query}`);
}
// Create a booking
async function createBooking(params: {
eventTypeId: number;
start: string; // ISO 8601 datetime
attendee: { name: string; email: string; timeZone: string };
metadata?: Record<string, string>;
}) {
return calFetch("/bookings", {
method: "POST",
body: JSON.stringify({
eventTypeId: params.eventTypeId,
start: params.start,
attendee: params.attendee,
metadata: params.metadata,
language: "en",
}),
});
}
// Cancel a booking
async function cancelBooking(bookingUid: string, reason?: string) {
return calFetch(`/bookings/${bookingUid}/cancel`, {
method: "POST",
body: JSON.stringify({ reason }),
});
}
// Reschedule a booking
async function rescheduleBooking(bookingUid: string, newStart: string) {
return calFetch(`/bookings/${bookingUid}/reschedule`, {
method: "POST",
body: JSON.stringify({ start: newStart }),
});
}
```
### Webhooks
React to booking events in real time:
```typescript
// app/api/cal-webhook/route.ts — Handle Cal.com webhook events
import { NextRequest, NextResponse } from "next/server";
import crypto from "crypto";
const WEBHOOK_SECRET = process.env.CAL_WEBHOOK_SECRET!;
// Verify the webhook signature to ensure it's from Cal.com
function verifySignature(payload: string, signature: string): boolean {
const expected = crypto
.createHmac("sha256", WEBHOOK_SECRET)
.update(payload)
.digest("hex");
return crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected));
}
export async function POST(request: NextRequest) {
const payload = await request.text();
const signature = request.headers.get("x-cal-signature-256") ?? "";
if (!verifySignature(payload, signature)) {
return NextResponse.json({ error: "Invalid signature" }, { status: 401 });
}
const event = JSON.parse(payload);
switch (event.triggerEvent) {
case "BOOKING_CREATED":
// New booking — send confirmation, update CRM, notify sales
await handleNewBooking({
bookingId: event.payload.bookingId,
attendeeName: event.payload.attendees[0]?.name,
attendeeEmail: event.payload.attendees[0]?.email,
startTime: event.payload.startTime,
eventType: event.payload.eventTitle,
metadata: event.payload.metadata,
});
break;
case "BOOKING_CANCELLED":
// Booking cancelled — update CRM, free up resources
await handleCancellation({
bookingId: event.payload.bookingId,
reason: event.payload.cancellationReason,
});
break;
case "BOOKING_RESCHEDULED":
// Booking moved — update calendar integrations
await handleReschedule({
bookingId: event.payload.bookingId,
oldTime: event.payload.previousStartTime,
newTime: event.payload.startTime,
});
break;
case "MEETING_ENDED":
// Meeting finished — trigger follow-up sequence
await triggerFollowUp(event.payload.bookingId);
break;
}
return NextResponse.json({ received: true });
}
async function handleNewBooking(booking: any) {
// Example: Create a deal in your CRM
await crm.createDeal({
name: `Demo: ${booking.attendeeName}`,
contact: booking.attendeeEmail,
stage: "discovery",
source: "website-booking",
metadata: booking.metadata,
});
// Notify the sales team via Slack
await slack.postMessage({
channel: "#sales-notifications",
text: `📅 New ${booking.eventType} booked!\n👤 ${booking.attendeeName} (${booking.attendeeEmail})\n🕐 ${new Date(booking.startTime).toLocaleString()}`,
});
}
```
### Managing Team Availability
Configure round-robin scheduling and team calendars:
```typescript
// src/cal/team-setup.ts — Configure team scheduling rules
async function setupTeamScheduling() {
// Create a team event type with round-robin assignment
const eventType = await calFetch("/event-types", {
method: "POST",
body: JSON.stringify({
title: "Product Demo",
slug: "product-demo",
lengthInMinutes: 45,
schedulingType: "ROUND_ROBIN", // Rotate among team members
hosts: [
{ userId: 101, Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.