Introduction
When bots are published in the Orchestrator, there are several ways to launch or execute them either on your computer or on your customer's computers if you are an ElectroNeek customer and would like to provide automation services. In this article, you will learn about different options for running the bots you create.
Launching Methods
Through .neex Files
The .neex format allows you to run the created workflow on any computer. After the .neex bot is saved in the machine, it can be run by just double-clicking on it. Remember the Workflow will only start if Bot Runner is installed and running on the computer where the .neex file was saved. Learn more about this method here.
Through Orchestrator SaaS
Bots or workflows need to be first published in Orchestrator. As we mentioned in the introduction, the Bot Runner installed on the machine needs to be linked to the Orchestrator as explained in this document. Finally, on the computer where you want to launch the bot, you need to open Orchestrator and then perform any of the following actions depending on your choices.
-
Run bots manually
Select the Bot Runner and click on “Run now” in the “Workflows” tab of the Orchestrator. Learn more here.
-
Run scheduled bots
Schedule when and how you want your bots to be executed automatically in a machine. See more details in this article.
-
Webhook Links
Copy a link to the bot from Orchestrator to be able to run a workflow through a Web Browser or through a webhook agent.
-
API Request
For this execution method, there are several steps that need to be carried out before executing the bot using a webhook agent, such as Postman.
In the Postman application, you are going to perform a POST action. To do so, you have to enter the following details.
1. Access ElectroNeek API Documentation and copy the URL on top of the page until the word orchestrator:https://api.electroneek.com/v1/orchestrator/
2. Then, in the same documentation copy the Workflow Launch endpoint to complete the URL in step 1. So type /workflow/{id}/launch
. For this particular example, the request needs the Worklfow ID, but other requests may require the Bot Runner IDs or the Launches IDs. For these differences, read the API Documentation for each request in detail.
3. Тhat way, the URL of the API request should look like this:
https://api.na.electroneek.com/v1/orchestrator/workflow/61f3a4afc450b2375397f562/launch
4. Finally, into Postman you need to authenticate the launch using the API Token generated in the Orchestrator. In the "Authorization" tab select "Bearer Token" Type and enter the generated API Token value.
5. Click “Send” and the bot will be executed.