Call API from Attended Robot

Hello, all,

Has anyone create an Attended robot, which is triggered by the end-user from Assistant, which calls API as part of the automation workflow? There is a lack of documentation how to implement API calls from Attended robot and what are the best practices in setup.

All infrastructure (DB, Orchestrator, Assistant, Studio) is on-prem and running on 2022.10 version.

Best regards,
Lukas Ramašauskas
Robotics Solution Architect

maybe you can mention the API / System

there are several options like

  • HTTP Request
  • Custom implementation with HTTPClient

and others

You can give the robot account permissions to the API within Orchestrator. An attended user is still a robot account.

Steps:

Orchestrator Setup:

Create an attended robotic related to the person.
Store API credentials securely (if wished).

UiPath Studio Development:

Input: Use Assistant forms or arguments for user input.
HTTP Request: Use the “HTTP Request” hobby to make the API call.
Credentials: Retrieve API keys/tokens from Orchestrator.
Output: Process the API reaction and display relevant information in Assistant.

UiPath Assistant:

Publish your robotic to Orchestrator.
The person will see the system in Assistant and may cause it.

Best Practices:

Security: Store API keys securely in Orchestrator credentials.
Error Handling: Implement retries and manage API-precise errors.
User Experience: Design person-friendly enter mechanisms and provide clean comments in Assistant.

1 Like