Example of creating an automation with Google Calendar web trigger

Create an automation with Google Calendar web trigger to display the description of the event in a message box.

Prérequis

Ensure that you meet the prerequisites mentioned in Google Calendar web triggers.

Google Calendar web trigger monitors the Google Calendar for newly created events. When you add an event to the calendar, the trigger initiates the Message Box action to display the event description.

Procédure

  1. Dans le volet de gauche, cliquez sur Automatisation.
  2. Cliquez Créer > Bot de tâche.
    L\'assistant Create Task Bot est affiché.
  3. Saisissez un nom approprié pour le robot dans le champ Nom.
    Tous les robots sont stockés dans le dossier \Bots par défaut.
  4. Facultatif : Vous pouvez ajouter une description pour le robot dans le champ Description.
  5. Facultatif : Vous pouvez utiliser le bouton Choisir pour enregistrer le robot dans un dossier différent.
  6. Cliquez sur Créer et modifier.
    Le robot est créé et le Edit Task Bot est affiché.
  7. Click Triggers > Google Calendar , and then double-click or drag Web trigger to add the web trigger to Triggers section.
  8. Select Created from the Listen to event drop-down.
  9. Enter the email address associated with Google Calendar in the Email Address field.
  10. Click Pick to choose the pre-configured OAuth connection from the Pick an OAuth connection modal.
  11. Click Create variable to create a record variable to save the trigger response data.
    The trigger response data contains all the information about the event in which the change occurred and is saved in key-value pair format. You can also select an existing record variable from the drop-down list.
  12. Enter TriggerData in the Create variable modal to create a new record variable.
    By default, the Use as input check box is enabled.
  13. Click Actions > Message Box , and then double-click or drag Message Box action to add it to the Actions section.
  14. Configure the Message Box action as per steps mentioned in Utilisation de l'action Zone de message.
    Enter $TriggerData{description}$ in Enter the message to display to display the description of the created event in the message box. The description key from the trigger response data contains the body of the created event as the corresponding value.
  15. Click Save to save the automation.
Click Run > Run with triggers to activate the trigger. The trigger then listens for Created event in the monitored Google Calendar instance. When an event is created, the trigger starts the Message Box action. The automation displays the description of the created event in the message box.