Voiceflow PartnersVPVoiceflow Partners
Powered by
radical-limeR
Voiceflow Partners•2y ago•
4 replies
radical-lime

Using variable defined in JavaScript function

I have the following function, which I use in Javascript step. At the end of the function the variables tageHauptsaison, tageNebensaison and tageAussersaison are defined. In the next step I want to use a talk step to show the variables. I defined the variables {tageHauptsaison}, {tageNebensaison} and {tageAussersaison} and used them in the talk step. If I run the bot these varaibles always have the value 0. If i run the JavaScript in the Browser its working properly.
Script1.png
Script2.png
ScriptinVoiceflow.png
Voiceflow Partners banner
Voiceflow PartnersJoin
Exclusive community for Voiceflow Solutions Providers & Content Creators.
13,076Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
jacklyn

# Let your agents search the web 🔎 Hey everyone! We just released the web search tool for the agent step! Your agents can now automatically search the web for information, letting your agent supplement the LLM's knowledge and the data in its knowledge base with live, up-to-date information. Plus.... * You can restrict searches to specific domains, so your agent only searches sites that you own * This is a tool, so you remain in control of when the agent searches the web * Results are automatically summarized in a way that your agent can automatically understand Under the hood, we're using OpenAI's web search API. Give it a try, and let us know what you think! https://docs.voiceflow.com/changelog/native-web-search-tool

jacklyn · 4mo ago

jacklyn

jacklynbiggin's Thread

jacklyn · 4mo ago

hurt-tomato

connor_maclean's Thread

hurt-tomato · 4mo ago

Similar Threads

Javascript Code not returning as a variable
Cr4shBarcodeCCr4shBarcode / ❓┃ask-a-question
9mo ago
Using Function Block in WhatsApp chat
naughty-peachNnaughty-peach / ❓┃ask-a-question
2y ago
How do I create a javascript function?
popular-magentaPpopular-magenta / ❓┃ask-a-question
2y ago
Handling API response in JavaScript: extract and convert JSON data to a Variable
sacred-emeraldSsacred-emerald / ❓┃ask-a-question
2y ago