Google Calendar clone

hi everyone,

Im building a AI receptionist, in which it allows the use of google calendar plug in , to check and see when the caller can book a job or appointment etc.

We use a CRM, servicem8, which we book the jobs in, it has the option to connect to a Google external calendar, using a webcal link, if i make booking in google it will not allow my CRM to book a job in on that day/time.

The issue is, the Webcal data is not inserted into the primary google cal, its just a second one, and when testing my AI with a google plugin, it seems to allow users to book in days which actually has a job booked.

It seems the google plugin uses the primary cal data only, not the webcal data (unless the webcal data does not have a busy or free status) , im not sure if the webcal data is “busy” or “free” or if thats a option to change, so i assume it wont be able to be changed.

i have managed to clone the webcal data and insert it into my primary cal, and editing the event to be “busy” which works perfect though issue will be when i edit the job or cancel it, it wont update my primary cal. (i only edit the data in CRM)

from what i have read, its possible with google sheets and checking ID numbers etc

is anyone able to assit in detail how this could work?

So in short, id like to Clone events from Calendar A (a webcal connected to google cal) to primary cal b or another cal account for example. but if Cal A event gets deleted or the time or day is edited, to ensure to update Cal B.

Thanks