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é-requisitos

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.

Procedimento

  1. No painel da esquerda, clique em Automation (Automação).
  2. Clique em Criar > Task Bot.
    O assistente Criar Task Bot será exibido.
  3. Digite um nome apropriado para o bot no campo Nome.
    Todos os bots são armazenados na pasta \Bots por padrão.
  4. Opcional: Você pode adicionar uma descrição para o bot no campo Descrição.
  5. Opcional: Você pode usar o botão Escolher para salvar o bot em uma pasta diferente.
  6. Clique em Criar e editar.
    O bot é criado e o Editar Task Bot é exibido.
  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 Uso da action caixa de mensagem.
    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.