RPA Hub

shivdadhan418
Tera Contributor

Hello, does anyone know how to trigger an RPA Robot Bot Process via API Trigger with the new RPA Plugin Version 5.0.2? For some reason the robot is able to be triggered via schedule, but I am not sure why it is not being triggered via an API call or even manually within the RPA Hub? Please advise on how to launch the robot without scheduling, thank you.

 
3 REPLIES 3

Riya Verma
Kilo Sage
Kilo Sage

Hi @shivdadhan418 ,

 

 

Hope you are doing great.

follow these steps:

  1. ensure that you have the necessary permissions to trigger the RPA robot process via API. You may need to check your user roles and permissions within the RPA Hub.

  2. construct the API call to trigger the robot process. The specific details of the API call may depend on the API endpoints and parameters provided by the RPA Plugin Version 5.0.2. You can refer to the documentation or API reference guide for the plugin to gather the necessary information.

  3. Once you have the API call details, you can use a suitable programming language or tool to make the API request. Here's an example using Python and the requests library:

 

import requests

api_url = "https://api.example.com/robot/process"  # Replace with the actual API endpoint
api_key = "your-api-key"  # Replace with your API key, if required

headers = {
    "Content-Type": "application/json",
    "Authorization": f"Bearer {api_key}"
}

# Construct the payload for the API call if required
payload = {
    "process_id": "your-process-id",
    "parameters": {
        "param1": "value1",
        "param2": "value2"
    }
}

# Make the API call
response = requests.post(api_url, headers=headers, json=payload)

# Check the response status and handle accordingly
if response.status_code == 200:
    print("API call successful. The robot process has been triggered.")
else:
    print("API call failed. Please review the API documentation and ensure correct parameters.")

 

Make sure to replace the placeholder values with the actual API endpoint, API key, process ID, and parameters as required by your RPA Plugin Version 5.0.2.

 

 
Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards,
Riya Verma

Hello Riya,

 

Thank you for your quick reply. 

 

I apologize if I was not more specific before but, is there any way to trigger the RPA Robot from Flow Designer as opposed to using a programming language to call the API? We are trying to implement a robot that is initiated from the Flow Designer and RPA Hub to focus on out-of-the-box solutions instead of creating our own scripts.

 

Thank you.