JavaScript Node

Usage Notes :
JavaScript code generating Rules:
Format for using Built-In variables in the JavaScript Node
identify the type of the variable in a JavaScript Node
Displaying a Message using a Workflow Variable
Eval Function
URL encoding String
Anchor tag in JS node
Generating Phrases from your Bot
Get Intents from Text
Payload
ActionNode
Response
Swap Keys and Values in JSON
Use application/x-www-form-urlencoded Header

LLM Format
JavaScript for an LLM Node
Parsing response:
LLM Nearby Restaurant Locations Prompt
LLM Nearby Tourist Locations Prompt
LLM Nearby Hospital Locations Prompt
LLM Distance and Time between 2 locations Prompt
Analytics
Pie Chart JS Code
Bar Chart JS Code
Table JS Code
Get User Profile Details Action Node
Generate RAG Answer Action
More Examples :
Displaying Information from a Database into a Dynamic Card
For displaying ALL table columns:
For displaying Specific table columns:
For displaying the card Selected by user
Current Date format
Sample JavaScript: (Support integrations)
Adding Dyanmic Arraylist(as String) to JSON Body
ArrayList for Airtable Listing Records
Date Format
Amount in US Format
Date to Epoch
sTable Formatting from JSON in JS Node
Random Number Generator
Flatten JSON from given ArrayList
Join Array with Commas
Unique Array while Iterating through JSON
Last updated
Was this helpful?
