feat: add zoominfo contact enrichment app for bookings #27214
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds a ZoomInfo integration to the Cal.com app store that enriches attendee data with B2B intelligence for bookings. When installed, hosts can enrich their booking attendees with contact and company information from ZoomInfo.
Key components:
ZoomInfoServicefor contact enrichment with automatic token refresh/api/integrations/zoominfo/enrich) to enrich booking attendeesZoomInfoEnrichedDataDisplayReact component for displaying enriched data (host-only visibility)Enriched data includes:
Link to Devin run: https://app.devin.ai/sessions/21a7e47574864c00bdb5e6ba91bee53a
Requested by: @PeerRich
Updates since last revision
api/callback.tsto import fromconfig.jsoninstead of removed_metadata.ts__createdUsingCliand__template: "basic"flags to config.jsonworkspace:*dependenciesImportant Notes for Reviewer
ZoomInfoEnrichedDataDisplaycomponent is created but not yet integrated into:apps/web/modules/bookings/views/bookings-single-view.tsx)Human Review Checklist
ZoomInfoService.ts(line 121:as unknown as Prisma.InputJsonValue)Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Environment setup:
ZOOMINFO_CLIENT_IDandZOOMINFO_CLIENT_SECRETenvironment variablesOAuth flow:
Enrichment API:
POST /api/integrations/zoominfo/enrichwith{ bookingUid: "<uid>" }Expected behavior:
booking.metadata.zoominfoEnrichedDataChecklist