integrations
它能做什么
这项技能描述排程应用可以连接的日历和视频服务,以及每项连接如何设置和刷新。适合添加新集成或修复断开连接的开发者。
适用场景
- ✓当你连接 Google Calendar 或 Office 365 等日历的时候。
- ✓当你为排程应用添加新的视频会议服务商的时候。
- ✓当日历连接失效,需要重新连接的时候。
技能链接
https://github.com/BuilderIO/agent-native/blob/main/packages/scheduling/docs/skills/integrations/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“连接我的 Google Calendar,让应用知道我何时有空,并能添加视频链接。”
每周 5 个新技能,1 分钟读完。
工作原理
用户通过登录完成连接,然后应用保存访问权限,并从所选日历中读取忙碌时段。过期的访问权限会自动刷新;如果刷新失败,则要求用户重新连接。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Integrations
Calendar providers
- google_calendar — OAuth; read freeBusy + write events; optionally
create Google Meet conference via
includeConference=true. - office365_calendar — Microsoft Graph; read freeBusy + write events.
- caldav (planned) — generic CalDAV for Apple iCloud, Fastmail, etc.
Video providers
- builtin_video — Daily.co-backed; zero OAuth; server-to-server API key.
- zoom_video — OAuth; create meetings via Zoom REST API.
- google_meet — piggy-backs on Google Calendar credential.
- teams_video — delegated Microsoft OAuth for work or school accounts; creates and cancels standalone meetings through Microsoft Graph.
Credential lifecycle
- User clicks "Connect" →
connect-calendarreturnsauthUrl+state - Redirect to provider → consent → provider redirects to our callback
- Server exchanges code → writes
scheduling_credentialsrow + coreoauth_tokensentry - We fetch calendar list, let user pick "checked" + "destination"
- Token expires → refresh flow runs silently; on failure, set
invalid: trueand show re-connect banner
Busy-time aggregation
aggregateBusy({userEmail, rangeStart, rangeEnd}) merges:
- Confirmed bookings hosted by the user
- External busy from each
selected_calendarsentry via the provider
Cached in calendar_cache (short TTL, default 5 min). Busted on any
booking write for that host.
Writing a new provider
See docs/providers.md for the full interface.
Common tasks
| User | Action |
|---|---|
| "Connect Google Calendar" | connect-calendar --kind google_calendar --redirectUri ... → redirect to returned authUrl |
| "Stop checking my vacation calendar" | toggle-selected-calendar --include false for that externalId |
| "Default to Zoom for new bookings" | set-default-conferencing-app --credentialId <zoom-cred> |
| "Connect Microsoft Teams" | connect-video --kind teams_video --redirectUri ... → complete the callback with completeVideoOAuth() |
| "Default to Teams for new bookings" | set-default-conferencing-app --credentialId <teams-cred> |
| "Refresh calendar cache" | refresh-busy-times |
Microsoft Teams setup
Register createTeamsProvider() as a video provider with the deployment's
Microsoft client id and secret plus consumer-owned getAccessToken,
updateTokens, and markInvalid callbacks. The provider defaults to the
organizations tenant because Graph's delegated online-meeting API supports
work or school accounts, not personal Microsoft accounts. It requests only
offline_access, OnlineMeetings.ReadWrite, and User.Read.
Use connect-video to start OAuth and completeVideoOAuth() in the callback;
inserting a teams_video row with install-conferencing-app alone does not
grant Microsoft access. Token refresh remains the consumer's responsibility in
getAccessToken. The booking service stores the returned meeting id and join
URL in booking_references and calls the provider again on cancellation.
常见问题
涵盖哪些日历?
Google Calendar 和 Office 365,另有一个标注为计划中的通用 CalDAV 选项。
忙碌时段保存多久?
会缓存一小段时间,默认约五分钟。
如果连接刷新失败会怎样?
连接会被标记为无效,并显示一条重新连接的横幅。
详情
作者的原始描述
Calendar + video provider integrations — Google Calendar, Office 365, Zoom, built-in video, Google Meet — and how to write new ones.
repo: BuilderIO/agent-native
热度
- GitHub 星标
- 7.6k
- 排名
- #13200
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …