What scripts can do
- Access the current customerβs phone number and session variables as input
- Fetch any external HTTP API and parse the response
- Return structured output data and an outcome string
- Map output fields to session variables for use in downstream nodes
Script structure
Every script exports a singleonExecute function:
Parameters
input
Contains the current session context and output from previous script nodes:
config
Contains secrets configured for the script node:
Return value
Scripts must return a tuple[data, outcome]:
