AutomaApp / automa

A browser extension for automating your browser by connecting blocks
https://www.automa.site
Other
10.72k stars 1.09k forks source link

I want to use JavaScript code to trigger a workflow and populate the required variables, it triggers the workflow but still pops up a window requiring me to manually fill in the variables! #1728

Open ddd0819 opened 1 month ago

ddd0819 commented 1 month ago

I want to use JavaScript code to trigger a workflow and populate the required variables, it triggers the workflow but still pops up a window requiring me to manually fill in the variables! how can I specify the variables through JavaScript code?

here is my JavaScript code:

window.dispatchEvent(new CustomEvent('automa:execute-workflow', {detail: { publicId: '123456789',data: {variables: {search_key: 'hello',total: 10,filter_time:'2024-01-01',filter_like:0,filter_fans:0}}}}));

ddd0819 commented 1 month ago

The problem has been solved, I misunderstood the meaning, I thought the variable will be automatically filled into my pop-up window to help me fill in the corresponding variable value, it turns out that it is also necessary to get the value of the variable through JavaScript.

lslcoded commented 1 month ago

get the value of the variable through JavaScript.

how get the value of the variable through JavaScript ? thnk you tell me how to get