Run bot with API and pass variables to bot

Hello everyone!
I’m learning ElectroNeek. I have been able to do some things. But now I ran into a problem that I haven’t been able to solve.
I have a bot that enters a website, I enter user/pass and it logs in, then it selects some options and uploads a file. I was able to run the bot with the api, but I don’t understand how to deliver the variables to the bot.
I need to pass 4 variables that are the url of the site, one ID to select on the site after login and 3 more variables, which are used to select from a combo box and then upload a file.
I would appreciate your guidance. Thanks!

@Mnowajewski Lets consider, below is the payload you are going to pass while executing bot via API.

{
url1 : “www.url1.com”,
url2 : “www.url2.com”,
url3 : “www.url3.com”,
url4 : “www.url4.com”,
id : “id1”,
var1 : “value1”,
var2 : “value2”,
var3 : “value3”
}

Now, in the studio, use below syntax to get these values passed in API Payload
webhook_data.{payload Key Name}

Example: Create a variable called urlone in studio like this urlone = webhook_data.url1

Same way You can use other payload data
Idnum = webhook_data.id1
variable1 = webhook_data.var1

1 Like

Thanks @Kudlappa_Gouder you are the best!
Regards,
Mario.

Is there a docs entry somewhere for available built-in variables?

Ideally it would show in intellisense too, but that might be a bit difficult to not clutter the editor (unless they’re wrapped in a single top class object maybe?). It would help with discoverability of those “hidden” variables.