Run an automation using Unattended Robot

  • Release version: Washingtondc
  • Updated February 1, 2024
  • 2 minutes to read
  • Run an unattended robot to execute the unattended automations that are triggered either by a schedule, API, or manually.

    Before you begin

    Create a package. For more information, see Create a package to assign to a bot process.

    Create a robot. For more information, see Creating a robot in RPA Hub.

    Create a bot process. Select the Process Type field as Unattended on the Bot process form, while you’re creating a bot process. For more information, see Configuring a bot process record in RPA Hub and Bot Process form in RPA Hub.

    Ensure that the following conditions are met to execute a robot:
    • The life cycle stage status of the associated bot process must be Published.
    • The life cycle stage status of the executing robot must be In-Use.

    (Optional) To run your bot process on regular intervals, create a schedule within a bot process. For more information, see Create a schedule within a bot process in RPA Hub.

    Create a credential set within a bot process. For more information, see Create a credential set within a bot process.

    Assign a robot to a bot process. For more information, see Assign a robot to a bot process in RPA Hub.

    Assign a process robot credential within a bot process. For more information, see Assign a process robot credential within a bot process.

    Ensure that the licenses are available. For more information, see License distribution in RPA Hub.

    Establish a connection between a robot and ServiceNow RPA Hub instance. For more information, see Set up Unattended Robot.

    (Optional) Create a process parameter within a bot process. For more information, see Create a process parameter within a bot process in RPA Hub.

    Role required: sn_rpa_fdn.rpa_robot and snc_internal
    Note:
    If the Attended Robot tries to connect to an Federal Information Processing Standards (FIPS)-enabled instance, the robot user must have the snc_internal role.

    About this task

    You can also start an unattended bot process manually from the RPA Hub. For more information, see Start an unattended bot process in RPA Hub.

    In this task, you can run an unattended robot in two ways.

    Procedure

    To run an unattended robot, do any one of the following actions.
    OptionAction
    Based on the schedule you define in the bot process
    1. Connect with a robot to execute the bot process. For more information, see Set up Unattended Robot.
    2. Review the schedule within a bot process. For more information, see Create a schedule within a bot process in RPA Hub.

      The Unattended Robot runs the execution based on the schedule defined.

    Based on the API via Start Process subflow Review the Start Process subflow in Flow Designer. For more information, see RPA Hub actions and subflow.

    The Unattended Robot runs the execution based on the subflow that triggers the Start Process in Flow Designer.

    Important:
    A process job record gets created as soon as the unattended robot starts initiating the bot process in the robot machine. The Message field is updated during the different stages of the process that provides insight and visibility regarding the status of your bot process. For more information on the different fields of a process job record, see Process job form in RPA Hub.