Alert or notification when bot in queue

Hi Team,

We have a requirement, suppose 2 bots are scheduled and when a 2nd bot run time start and 1st bot is still running and 2nd one is going on queue, so we want to know if any alerts or notification we can send to business and admin team that the 2nd bot is not started as per scheduled time and it will run after 1st one is completed.

Absolutely! In UiPath, you can handle this scenario by implementing a notification mechanism within your automation workflow. Here’s a high-level overview of how you might approach this:

  1. Monitoring Bot Execution:

    • Keep track of the execution status of each bot. This could be done by setting flags or updating a database/log file with the status.
  2. Integrate with Orchestrator:

    • If you’re using UiPath Orchestrator, you can leverage it to schedule and monitor bot executions. Orchestrator provides APIs that allow you to retrieve the status of running jobs.
  3. Notification Logic:

    • Implement a notification logic in your workflow. This could be in the form of sending emails, messages, or alerts to the business and admin team.
  4. Example Workflow Steps:

    • At the beginning of the workflow, check if the first bot is still running or has completed.
    • If the first bot is still running, trigger the notification logic to inform the business and admin team about the delay.
    • Once the first bot completes its execution, proceed with the execution of the second bot.
  5. Exception Handling:

    • Implement robust exception handling in your workflow to capture any errors or unexpected behavior.
    • If an error occurs, trigger notifications accordingly.
  6. Logging:

    • Use logging activities in UiPath to keep detailed logs of bot executions. This can be useful for troubleshooting and auditing.
  7. Notification Methods:

    • UiPath provides activities for sending emails, messages (e.g., Microsoft Teams, Slack), or other custom notifications.
    • You can also integrate with third-party services for notifications.