I would like to run a scenario when a google calendar event starts. I see two options here:
-
Detect new calendar events that match a certain filter, then copy the date/time from the calendar event to the schedule for the scenario. I have tried this but I cannot find a way of modifying the scenario properly. I can use “Make/Get scenario” and “Make/Update scenario”, but I cant work out how to transpose the JSON structure and I cant find any documentation here. Moreover, I think it would break if I created more than one calendar event, and it would need to run on a polling schedule which is inefficient
-
Create a webhook trigger on the Google calendar so it sends a start notification to run the scenario. I looked at the Google documentation for this and I cannot make sense of it. This would be the best solution I think.
Has anyone had experience of this before?