Execute custom JavaScript code within conversational pathways
Example
For instance, in the example shown, any caller under 25 will have their request automatically rejected.To easily generate extraction code for your pathway variables, you can click the “Generate variable extraction code” button, and it will automatically insert into the editor. In the example above, the following will be inserted:
Response.json()
.
Example response:
processed_total
, discount_applied
, final_price
, customer_tier
) become available as variables you can reference in later nodes using {{processed_total}}
, {{discount_applied}}
, etc.
For additional questions or advanced use cases, please reach out to hello@bland.ai or through our support channels.