Chuyển đến nội dung
Skillpedia
Công việc và dự án7.6k · #13200

integrations

Skill này làm gì

Skill này mô tả các dịch vụ lịch và video mà ứng dụng đặt lịch có thể kết nối, cùng cách thiết lập và làm mới từng kết nối. Dành cho lập trình viên thêm tích hợp mới hoặc sửa kết nối bị lỗi.

Khi nào nên dùng

  • ✓Khi bạn kết nối một lịch như Google Calendar hoặc Office 365.
  • ✓Khi bạn thêm một nhà cung cấp họp video mới vào ứng dụng đặt lịch.
  • ✓Khi kết nối lịch ngừng hoạt động và cần kết nối lại.

Liên kết skill

https://github.com/BuilderIO/agent-native/blob/main/packages/scheduling/docs/skills/integrations/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/BuilderIO/agent-native/blob/main/packages/scheduling/docs/skills/integrations/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kết nối Google Calendar của tôi để ứng dụng biết khi nào tôi bận và có thể thêm liên kết video.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Người dùng kết nối qua bước đăng nhập, sau đó ứng dụng lưu quyền truy cập và đọc thời gian bận từ các lịch đã chọn. Quyền truy cập hết hạn sẽ được làm mới tự động, và nếu việc này thất bại, người dùng được yêu cầu kết nối lại.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.

Câu hỏi thường gặp

Những lịch nào được hỗ trợ?

Google Calendar và Office 365, cùng một tùy chọn CalDAV chung được mô tả là dự kiến.

Thời gian bận được lưu trong bao lâu?

Chúng được lưu tạm trong một thời gian ngắn, mặc định khoảng năm phút.

Điều gì xảy ra nếu kết nối không làm mới được?

Kết nối bị đánh dấu là không hợp lệ và một biểu ngữ yêu cầu kết nối lại được hiển thị.

Chi tiết

Mô tả gốc của tác giả

Calendar + video provider integrations — Google Calendar, Office 365, Zoom, built-in video, Google Meet — and how to write new ones.

repo: BuilderIO/agent-native

Độ phổ biến

Sao GitHub
7.6k
Vị trí xếp hạng
#13200
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự