跳到正文
Skillpedia
任务与项目7.6k · #13200

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BuilderIO/agent-native/blob/main/packages/scheduling/docs/skills/integrations/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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

  1. User clicks "Connect" → connect-calendar returns authUrl + state
  2. Redirect to provider → consent → provider redirects to our callback
  3. Server exchanges code → writes scheduling_credentials row + core oauth_tokens entry
  4. We fetch calendar list, let user pick "checked" + "destination"
  5. Token expires → refresh flow runs silently; on failure, set invalid: true and show re-connect banner

Busy-time aggregation

aggregateBusy({userEmail, rangeStart, rangeEnd}) merges:

  • Confirmed bookings hosted by the user
  • External busy from each selected_calendars entry 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能