Google Calendar - Event Started

(Ramki A) #1

HI, I am wondering how to use Google Calendar ‘Event Started’ trigger. I do get the trigger along with event information, but still wondering how to use it. For now, I just want to print the information and nothing more than that.

(Currently using only Facebook Messenger)

2 questions:

  • How do I print the event information back to the bot? Any pointers to this would be useful? Looking at the forums I can use Webhooks to achieve this, but I am looking at how to use the “Event Started” functionality that is available. (I use the Event Add functionality of Google Calendar integration to post the event.

  • Is there any way in which I can filter the events to a specific user automatically? For example, if 5 people use the bot and add events, then which would be the best place to put the functionality which would do this filter. I can send the Bot ID along with the Add Event information and on Event started trigger check for this and then display the event. But, is there a more efficient way to do this?

Thanks
Ramki.

(Sarah Palombo) #2

Ramki

A few ideas: Let me know if you have further questions.

When you use Google Calendar ‘Event Started’ As a trigger, you can then receive the event details. If you’ve triggered an event to test this, look in your log. You should see all the event details.
In a flow, you can then use the details as an output, You could send a message containing the event details, Send an SMS alert to a user, Send an email if you like (which might not be necessary as a user can receive gmail alerts to notify them of appointments)

You question highlights that your bot users can use the bot to add events to Google Calendar. At which point, you’d be using the google calendar Add event as a task where you can add events to a particular user s calendar. Just use filters on each task i.e If the bot user is Sarah add to Sarah’s calendar (which you choose on the add event screen)

Back to the first point. If you also have a flow with the event started trigger you can alert user(s) when a entry is added.

If i’ve missed anything let me know :blush: