Help Needed: Building a Teams Chatbot to Start/Stop UiPath Jobs via Orchestrator API

Hi UiPath Community,

I’m working on a use case where I need to build a chatbot integrated with Microsoft Teams that can start and stop UiPath jobs using the Orchestrator API. Here’s the flow I’m aiming to implement:


:white_check_mark: Use Case Overview:

  • The client logs into Microsoft Teams and interacts with the chatbot.
  • The chatbot presents two options: Start Job or Stop Job.
  • If the user selects Start Job:
    • The bot asks for the process name.
    • Based on the input, the bot fetches a list of matching processes from Orchestrator.
    • The user selects the desired process from the list.
    • The bot triggers the job using the StartJobs API.
  • If the user selects Stop Job:
    • The bot asks for the Job ID or shows a list of running jobs.
    • The user selects the job to stop.
    • The bot calls the StopJob API.

:wrench: Technical Stack:

  • Bot Framework: Planning to use Python or Node.js with Microsoft Bot Framework.
  • UiPath API: Using Cloud Orchestrator APIs with OAuth2 authentication.
  • Teams Integration: Via Bot Framework and Azure Bot Service.

:red_question_mark: Help Needed:

  1. Best practices for securely integrating UiPath API with a chatbot.
  2. How to fetch and display process names dynamically from Orchestrator.
  3. Suggestions for handling job selection and confirmation in Teams UI.
  4. Any sample projects or references that follow a similar architecture.

:folded_hands: Any guidance, examples, or suggestions would be greatly appreciated!

Thanks in advance,
Vignesh N

Hello @nvignesh456!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff