Skip to content

ashish-kd/Google-Calendar-Handoff-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“… Google Calendar Handoff Automation

This Google Apps Script automates the handoff process by:

  1. Detecting new calendar events.
  2. Creating a shared Google Drive folder for handoff.
  3. Sending a Google Form to a participant.
  4. Storing form responses as a PDF in the shared folder.
  5. Notifying participants via email.

πŸ“Œ Features

βœ… Detects new events with at least two participants.
βœ… Creates a Google Drive folder for the handoff.
βœ… Sends a Google Form to a participant for details.
βœ… Converts form responses into a PDF.
βœ… Stores the PDF in the shared folder.
βœ… Notifies participants via email.


πŸš€ Setup Instructions

1️⃣ Deploy the Script

  1. Open Google Apps Script.
  2. Create a new project.
  3. Copy and paste the script into the editor.

2️⃣ Enable Required Services

  • In Apps Script Editor, go to:
    • Services > Enable Google Drive API
    • Services > Enable Google Calendar API

3️⃣ Set Up Triggers

  • Calendar Event Trigger

    • In Triggers > Add a trigger for onCalendarEventCreated
    • Choose Event Source β†’ From Calendar
    • Choose Event Type β†’ On event creation
    • Set Calendar ID (your Google account email).
  • Form Submission Trigger

    • In Triggers > Add a trigger for onFormSubmit
    • Choose Event Source β†’ From form
    • Choose Event Type β†’ On form submit.

πŸ›  How It Works

  1. Calendar Event Created

    • Detects new event with at least 2 attendees.
    • Creates a Google Drive folder for the handoff.
    • Shares the folder with Participant A.
    • Sends a Google Form to Participant B.
  2. Participant B Submits the Form

    • Captures form responses.
    • Converts responses into a PDF.
    • Saves the PDF inside the shared folder.
    • Sends an email to both participants with the folder link.

πŸ“§ Notifications

  • Participant A gets access to the shared folder.
  • Participant B receives the form.
  • Once the form is submitted, both get an email with the handoff details and folder link.

⚠️ Error Handling

  • Logs errors in Apps Script Logs (Logger.log()).
  • Skips event processing if:
    • There are fewer than 2 participants.
    • Form responses are missing.
    • Google Drive folder cannot be created.
  • Ensures duplicate triggers are not created.

πŸ”— Links


About

Google Calendar Handoff Automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published