We will create a simple flow that will use Google search to convert a Dollar amount to Euro amount.
1- In Flow Designer click the 'Untitled' named button right to logo
2- Click New Project button in the popup window
3- Give your flow a name and press OK
4- Create the following flow by drag-and-dropping the nodes from the node palette, or by right clicking on the empty board. You can search the nodes by name.
Default node names are left as is in this example. But in order to make your flow more readable you can change the node names. For ex: "Get Value" can be renamed to "Read Converted Value" or "Message Box" can be renamed to "Show Euro Amount".
Below is the list of nodes used in this flow:
Trigger -> Inject
Dialog -> Input Box
Browser -> Open Browser
Programming -> Function
Browser -> Open Link
Browser -> Get Value
Dialog -> Message Box
Flow -> Stop
5- Now click the "Input Box" node and change the node's properties as follows:
6- Click "Function" node's menu button and select Edit, then copy paste the below script and press Save
var q = msg.amount +"+dollar+to+euro";
msg.link ="https://www.google.com/search?q="+ q;
7- Click the "Open Link" node and change the URL parameter as follows:
8- Click the "Get Value" node and change the Selector parameter as follows:
Here is the text version for to copy
9- Click the "Message Box" node and change the node's properties as follows:
10- Click Save icon or press Ctrl+s for shortcut.
We have created our flow and now ready to run.
1- Press play icon at the toolbar.
2- Select your robot and press RUN
If you don't see a robot listed here. Please make sure you installed a robot to your computer. You can follow this guide if you haven't. Or make sure you have connected your robot to your workspace. You can follow this guide if haven't.
3- When flow starts running, you will see a message box displayed in your Desktop, asking the amount of Dollars to convert to Euros. Enter an amount and press OK.
4- The Google Search result page will be loaded on the browser started by the flow.
5- A message box on your Desktop will display the result taken from this page by the flow.
If you look at the Flow Designer, you will see that the flow is waiting the Message Box node to finish. After you click OK the flow will continue and finish.
6- The started browser will stay open until you press OK.