Vyyy
04/07/2026, 9:22 PMAI Evy
04/07/2026, 9:22 PMAI Evy
04/07/2026, 9:22 PMdv — Dynamic Variables: Access your agent's dynamic variables as properties on the dv object. All values are strings.
javascript
const name = dv.customer_name; // "John Doe"
const orderId = dv.order_id; // "78542"
const total = parseFloat(dv.amount) ; // Convert to number if needed
metadata — Call Metadata: Access metadata passed when the call was created via the API.
javascript
const customerId = metadata.customer_id;
const priority = metadata.priority_level;
fetch(url) — HTTP Requests: Make HTTP requests to external APIs. Works like the standard Fetch API.
javascript
// GET request
const response = await fetch("<https://api.example.com/data%22)> ;
const data = await response.json() ;
// POST request
const response = await fetch("<https://api.example.com/submit%22,> {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ name: dv.customer_name })
}) ;AI Evy
04/07/2026, 9:22 PMconsole.log() — Debugging: Log output for debugging. Logs appear in the test output panel when using Run Code, and are also available in call logs.
## Response Variables
Response variables let you extract specific values from your code's return value and store them as dynamic variables for use in other nodes. Specify each variable as a name and a JSON path using dot notation.
## Security Guidelines
Do not treat dynamic variables or metadata as a secret vault. Avoid placing long-lived API keys, database credentials, or other sensitive secrets in dynamic variables or call metadata for use in Code Node. Both dv and metadata values are stored in plaintext with every call record—anything you pass in will be visible in call logs and API responses.
Use fetch() with caution. Enabling outbound HTTP requests from an LLM-invoked tool increases security and operational risk. Prefer read-only requests to low-risk, public endpoints.
Keep production logic in your own backend. For anything involving sensitive credentials, direct writes to production systems, payment actions, regulated data workflows, or business-critical operations that require strict authentication, validation, audit logging, idempotency, or approval controls—use a Custom Function hosted on your own backend.
## Node Settings
- Speak During Execution: When enabled, the agent says something while the code runs
- Wait for Result: When enabled, the agent waits for the code to finish before transitioning
- Timeout: How long the code can run before timing out. Range: 5–60 seconds. Default: 30 seconds
- Global Node: Available as an option
- Block Interruptions: When enabled, the agent will not be interrupted by the user when speakingAI Evy
04/07/2026, 9:23 PMAI Evy
04/07/2026, 9:23 PM