# Call OpenRPA (OpenWokrflow) via API

**URL:** <https://discourse.openiap.io/t/call-openrpa-openwokrflow-via-api/1908>\
**Category:** OpenRPA\
**Created:** [November 15, 2024, 9:53am UTC](https://discourse.openiap.io/t/call-openrpa-openwokrflow-via-api/1908 "2024-11-15T09:53:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![D\_ng\_Dinh\_Nghia](https://discourse.openiap.io/letter_avatar_proxy/v4/letter/d/7993a0/32.png) [@D\_ng\_Dinh\_Nghia](https://discourse.openiap.io/u/D_ng_Dinh_Nghia)\
**Post date:** [November 15, 2024, 9:53am UTC](https://discourse.openiap.io/t/call-openrpa-openwokrflow-via-api/1908/1 "2024-11-15T09:53:04Z")

</div>

Hi. my client has a button on their website, they want to execute a remote bot when this button is pressed with the necessary information for the bot to execute. Can I do this via API (called from the client’s website side) to execute a remote bot?

---

<div class="post-metadata">

**Author:** ![AndrewK](https://discourse.openiap.io/user_avatar/discourse.openiap.io/andrewk/32/1476_2.png) [@AndrewK](https://discourse.openiap.io/u/AndrewK)\
**Post date:** [November 15, 2024, 10:40am UTC](https://discourse.openiap.io/t/call-openrpa-openwokrflow-via-api/1908/2 "2024-11-15T10:40:41Z")

</div>

Hi,

Your case looks similar to this topic, please check if it would fit your use case:

> [@HTTP/NodeJS invokation. Pass parameters and return parameters?](https://discourse.openiap.io/t/http-nodejs-invokation-pass-parameters-and-return-parameters/1375):
>
> Hello, not sure what is the correct category for my question. But I’ve started with OpenRPA and I really like the tool, but not sure if this is doable: We have a really old tool that runs in .aspx on a local machine. That tool is basically an interface for a database, that allows us to perform searches and find entries in the database. (Long short story is we can’t run external quering to that DB, what would solve us the problem…) So: My goal is to send an API request via HTTP or nodejs to in…

---

<div class="post-metadata">

**Author:** ![D\_ng\_Dinh\_Nghia](https://discourse.openiap.io/letter_avatar_proxy/v4/letter/d/7993a0/32.png) [@D\_ng\_Dinh\_Nghia](https://discourse.openiap.io/u/D_ng_Dinh_Nghia)\
**Post date:** [November 15, 2024, 11:07am UTC](https://discourse.openiap.io/t/call-openrpa-openwokrflow-via-api/1908/3 "2024-11-15T11:07:53Z")

</div>

@AndrewK, From what I read in your attached post, something about my problem will be solved. Thanks a lot

---

<div class="post-metadata">

**Author:** ![Rutger\_van\_Schoonhov](https://discourse.openiap.io/letter_avatar_proxy/v4/letter/r/3ec8ea/32.png) [@Rutger\_van\_Schoonhov](https://discourse.openiap.io/u/Rutger_van_Schoonhov)\
**Post date:** [November 21, 2024, 9:02am UTC](https://discourse.openiap.io/t/call-openrpa-openwokrflow-via-api/1908/4 "2024-11-21T09:02:25Z")

</div>

@ [D\_ng\_Dinh\_Nghia](https://discourse.openiap.io/u/D_ng_Dinh_Nghia) From the limited information above, it sounds not so hard:  
If you have a nodeRED running somewhere accesssible then this is all it takes:

 ![nodered_api](https://discourse.openiap.io/uploads/default/original/2X/0/0da2131761cc469f87e42e1390e6858d6a8f613f.png)

- a http-in node (POST, to accept arguments in the payload)
- a function to transform the payload in needed in the format for the openrpa call (keys in the payload are arguments for openrpa)
- call openrpa
- return a http-responseCode to the caller of the API. (if your rpa call executes really fast you can connect the response to the outputs of the rpa workflow to indicate success or failure.)

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openiap.io/uploads/default/original/2X/a/a1ca7b164ac9a826839704d9ac82c7b5e6bcf557.png) [@system](https://discourse.openiap.io/u/system)\
**Post date:** [November 28, 2024, 9:03am UTC](https://discourse.openiap.io/t/call-openrpa-openwokrflow-via-api/1908/5 "2024-11-28T09:03:08Z")

</div>

Closed on November 28, 2024, 9:03am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
