Google Meet Integration
upLegal uses Google Meet for virtual legal consultations. This integration provides utilities for generating meeting links and scheduling events.Overview
The Google Meet integration is implemented as a lightweight utility library that generates properly formatted Google Meet URLs and calendar events without requiring OAuth or API keys.Setup
No environment variables or API keys are required. The integration uses public Google Calendar and Meet URLs.Generating Meeting Links
Basic Meet Link
Generate a simple Google Meet link:Meeting with Calendar Event
Create a meeting with a calendar invitation:- Creates a calendar event with the specified title
- Sets the correct start and end times
- Includes a description
- Automatically adds a Google Meet link to the event
Implementation
Full Source Code
Usage Examples
In Appointment Scheduling
Generate a Meet link when confirming a booking:In Email Notifications
Include the meeting link in confirmation emails:Displaying in UI
Show formatted meeting links in the dashboard:Calendar Event Format
The calendar link includes these parameters:action=TEMPLATE- Creates a new calendar eventtext- Event title (URL encoded)dates- Start/end in ISO format (YYYYMMDDTHHmmssZ)details- Event descriptionadd- Adds Google Meet automatically
Validation
Validate meeting URLs before saving:Best Practices
- Generate links with calendar events for scheduled appointments
- Use
formatMeetLink()for display to users - Validate URLs with
isValidMeetUrl()before saving - Include meeting links in both confirmation and reminder emails
- Store the full URL in the database
- Test links before sending to clients