Create a web trigger to monitor events on a ServiceNow instance and initiate next actions in your automation.. Once you configure the web trigger, add actions to create the automation work flow and instruct the bot what to do.

Map your trigger to a ServiceNow URL and configure the trigger to run the automation by receiving real time notifications from the event table that is available on the ServiceNow instance. The bot listens to the event changes in the ServiceNow instance. When an event occurs, the web trigger is activated and initiates the automation action that is configured in the bot editor.

Prerequisites

  • You must have a Bot Creator or Citizen Developer license.
  • You must have View my bots permission.
  • You must have all the EVENT TRIGGERS permission for the role.
  • You must have Check in and Check out permission on the folders of where the automation resides.
  • You must be logged in to your Control Room.
  • You must establish an OAuth connection before using them to build an automation. For more information, see Create OAuth connection.

Procedure

  1. On the left pane, click Automation.
  2. Click Create > Task Bot.
    The Create Task Bot wizard is displayed.
  3. Enter an appropriate name for the bot in the Name field.
    All the bots are stored in \Bots folder by default.
  4. Optional: You can add a description for the bot in the Description field.
  5. Optional: You can use the Choose button to save the bot in a different folder.
  6. Click Create & Edit.
    The bot is created and the Edit Task Bot is displayed.
  7. Click Triggers > ServiceNow, and then double-click or drag Web trigger to add the web trigger to Triggers section.
  8. Enter the ServiceNow instance URL in the ServiceNow URL field.
  9. Enter the table title from the ServiceNow instance in Event Type (table) field.
  10. Select the one or multiple events to listen from the Listen to event drop-down.
    The following events are supported:
    • When new record is inserted
    • When existing record is updated
    • When existing record is deleted
    • When existing record is queried
  11. Click Pick to choose the preconfigured OAuth connection from the Pick an OAuth connection modal.
    Only Control Room managed OAuth connections are supported. See Use OAuth connection for more information.
  12. Optional: Add variables to the trigger in the Response option. For more information about variables, see Variables overview.
    Note: If you use an existing variable for response, ensure that Use as input check box is enabled for the variable.
  13. Optional: Add more triggers as required in the Triggers section.
  14. Double-click or drag an appropriate action from the Actions palette to the Action section.
    For information about actions, see Actions to build automations.
  15. Click Save to save the bot.