For AI assistants: this page as plain markdown is at https://docs.voicelogica.ai/raw/workflow-nodes/code.md, and https://docs.voicelogica.ai/llms.txt lists the docs by topic, one file each, small enough to read whole. Read those rather than this HTML page.
Run Custom Code
Run Custom Code runs JavaScript or Python in the graph. Prefer a short transform - not a long HTTP client when Connect To External Service exists.

What you configure
Section titled “What you configure”{{) for previous outputs. The returned object is stored in result by default. Variables are written into the code before it runs: put text in quotes ("{{node_1.customer_name}}") and numbers or objects without them ({{node_3.api_response}}). There is no args object.{{node_X.name}} downstream.First setup
Section titled “First setup”- Add Run Custom Code after a node that produces data.
- Pick language, write the function, declare parameters you need later.
- Save & go live.
Troubleshooting
Section titled “Troubleshooting”Why does the Run Custom Code node say Code is required?
The code editor of Run Custom Code is empty. Write JavaScript or Python that returns an object, then add a Parameter for each key of that object you want to use in later nodes.
What does the red «Failed N× in a row» strip on a Run Custom Code node mean?
The node failed on its last N real runs (calls or events, not test runs), so the workflow stopped at it each time. After 3 failures in a row, the company’s notification emails (or the admin) get one email with the workflow, the node and the error, at most once a day per node.
- Open the node and read the error in the email.
- Fix the code, then run Test on the workflow.
- Save & go live. The strip goes away after the next successful real run.
