Skip to content

feat(calendly): extend tools with booking, availability, no-shows, and routing forms - #6545

Merged
waleedlatif1 merged 3 commits into
stagingfrom
feat/calendly-tools-expansion
Aug 11, 2026
Merged

feat(calendly): extend tools with booking, availability, no-shows, and routing forms#6545
waleedlatif1 merged 3 commits into
stagingfrom
feat/calendly-tools-expansion

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Adds 12 Calendly tools: get user, get event invitee, book meeting, list event type available times, list user busy times, list user availability schedules, create scheduling link, mark/unmark invitee no-show, list organization memberships, list routing forms, list routing form submissions
  • Every request shape and output field is verified against Calendly's OpenAPI spec — the docs site is a JS-rendered SPA, so I pulled the underlying Stoplight nodes rather than guessing
  • Fixes list_webhooks dropping the scope query param the API requires — every call with scope unset was returning 400
  • Fixes list_event_types only ever sending active=true, which made inactive event types unlistable
  • user / organization filters now accept a bare UUID or a full URI consistently across every operation
  • json array params (eventGuests, events) are normalized whether they arrive as an array or a JSON string
  • Optional filters and pagination fields moved to advanced mode; removed non-TSDoc section comments per CLAUDE.md

Type of Change

  • New feature
  • Bug fix

Testing

  • 15 unit tests over the tool request builders, plus 5 block/tool alignment tests that fail on condition drift
  • Confirmed the tests go red when their fixes are reverted
  • type-check, lint, tool-metadata:check, and integration-catalog:check all pass
  • Not exercised against live Calendly credentials

Notes

  • POST /invitees requires a paid Calendly plan; free plans get a 403
  • Booking omits questions_and_answers, location, and tracking — their schemas resolve to an empty __bundled__ map in the spec, so I left them out rather than guess
  • Still unexposed (reported, not added): admin_managed and user_availability_schedule on event types, group on scheduled events and webhooks

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Aug 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview Aug 11, 2026 6:05pm

Request Review

@cursor

cursor Bot commented Aug 11, 2026

Copy link
Copy Markdown

PR Summary

Cursor Bugbot is generating a summary for commit cef1ee3. Configure here.

@greptile-apps

greptile-apps Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

The PR substantially expands the Calendly integration and corrects existing request-building behavior. The follow-up specifically replaces unsafe typing in the block/tool alignment tests with real repository types and explicit union narrowing.

  • Adds booking, availability, no-show, membership, and routing-form operations.
  • Extends Calendly block configuration, request builders, outputs, generated metadata, registry entries, tests, and documentation.
  • Uses SubBlockConfig and ToolConfig directly in the alignment test, with no remaining unsafe casts or any annotations.

Confidence Score: 5/5

The PR appears safe to merge because the previously reported alignment-test type-safety issue has been fully addressed and no blocking failure remains.

No blocking failure remains.

Important Files Changed

Filename Overview
apps/sim/blocks/blocks/calendly.test.ts The previous type-safety issue is resolved using concrete block/tool types and safe narrowing for function-valued options and conditions.
apps/sim/blocks/blocks/calendly.ts Expands the Calendly block’s operations, fields, parameter normalization, and tool access configuration without leaving a follow-up-eligible defect.
apps/sim/tools/calendly/calendly.test.ts Adds request-builder coverage for the expanded Calendly operation set and corrected query behavior.
apps/sim/tools/calendly/index.ts Exports the newly added Calendly tools through the typed integration barrel.

Reviews (3): Last reviewed commit: "fix(calendly): normalize webhook organiz..." | Re-trigger Greptile

Comment thread apps/sim/blocks/blocks/calendly.test.ts Outdated
Comment thread apps/sim/tools/calendly/list_event_types.ts
Comment thread apps/sim/tools/calendly/create_webhook.ts
…d routing forms

Adds 12 tools verified against the Calendly OpenAPI spec: get_user,
get_event_invitee, create_event_invitee, list_event_type_available_times,
list_user_busy_times, list_user_availability_schedules,
create_scheduling_link, create/delete_invitee_no_show,
list_organization_memberships, list_routing_forms, and
list_routing_form_submissions.

Also fixes issues found while validating the existing tools:

- list_webhooks dropped the scope query param the API requires, so every
  call with scope unset returned 400
- list_event_types could only send active=true, making inactive event
  types unlistable
- user and organization filters now accept a bare UUID or a full URI
  consistently across every operation
- json array params (eventGuests, events) are normalized whether they
  arrive as an array or a JSON string
@waleedlatif1
waleedlatif1 force-pushed the feat/calendly-tools-expansion branch from cef1ee3 to 9ebed91 Compare August 11, 2026 17:59
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

Comment thread apps/sim/tools/calendly/list_organization_memberships.ts
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cursor review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

1 issue from previous review remains unresolved.

Fix All in Cursor

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit a62e4e2. Configure here.

@waleedlatif1
waleedlatif1 merged commit c365b14 into staging Aug 11, 2026
28 of 29 checks passed
@waleedlatif1
waleedlatif1 deleted the feat/calendly-tools-expansion branch August 11, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant