Javascript
Overview
Configurations
Field
Description
Execution Flow
Example Syntax for Variable Usage
const userName = input.user_name; // Data from the previous node
const apiKey = secret.apiKey; // Secure API Key from Secret Variables
const agentType = agent.type; // Retrieve agent-level variable
const sessionId = context.sessionId; // Workflow-wide session dataExample Use-Cases
Use-Case 1: Formatting API Response Data
Use-Case 2: Applying Conditional Business Logic
Use-Case 3: Calculating Discounts Based on Order Total
Best Practices & Key Takeaways for Developers
Last updated

