How Can I take a user input and install in a variable?

I am creating a workflow where I want to take input from user, store it in a variable and continue based on it.

How can I add an Input Dialog to ask for user’s input?

You have two options.

  1. In OpenCore, you can create “human workflows” using the form designer and either Node-RED workflows or custom code in agents. (See example here: Example Workflows | OpenIAP Documentation)

  2. Inside OpenRPA, you can launch a form dialog to present data to the user or ask for user input. The results of those will be stored in variables in the robot workflow (Basic Activities | OpenIAP Documentation)

In most cases, people end up going with option 1, since you are decoupling the workflow from the user and can even make the human input part of a “human in the loop” workflow. Option 2 will require the user to be at the computer.
The downside of option 1 is you need to be running an agent at all times to handle the “backend” of the form. Normally that is fine, since this is also where you will be doing most of your work item processing anyway, but if you have not started on that part, or never intend on using work items, you want to keep that in mind.

Option 2 can also be a little difficult to get started with since Forge Forms, who made the underlying UI framework, never documented it, so you will need to be willing to search this forum or their Git issue tracker for examples on how to do more complex things besides the example you will find in the snippet menu.

(If you do not see invoke form, you need to install it. Run the openrpa.msi installer again and select to install the form module.)