Actions
JavaScript Code
Execute custom JavaScript code in your automation. Use this action to run advanced scripts, modify elements, interact with APIs, and perform operations not covered by standard automation blocks.
Inputs
☐ Prompt / Description (Required)
A clear and concise instruction describing what this step should do. This helps the AI debug the automation if website changes impact execution.
Good Example: "Run a script to log 'Hello world!' in the console and proceed to the next block."
Bad Example: "Execute some JavaScript that does something useful on the page."
Why it’s bad? Too vague, lacks specificity about the intended script execution.
☐ JavaScript Code Editor (Required)
Write the JavaScript code to be executed within the webpage.
Ensure that the script ends with bytespaceNextBlock()
to continue execution.
Usage Example
Notes
- The Prompt / Description is required to help AI debug and re-adjust the script if needed.
- The script should always end with
bytespaceNextBlock()
to ensure workflow execution continues. - Ensure the JavaScript is compatible with the webpage environment and doesn’t cause unexpected behavior.