Voiceflow PartnersVPVoiceflow Partners
Powered by
chirashiC
Voiceflow Partners•7mo ago•
2 replies
chirashi

How do I access _memory_ from a function?

1) First I tried passing in memory into the input variable of a function, but memory is not available from the variable selector.

2a) Tico says memory already is available from inside a function:
"memory
is an internal object, so we don’t surface it in the variable-picker. The good news is you don’t have to map it – every Function (and JavaScript) step already runs in the same scope, so you can read it directly inside your code."
and said to use:
const history = memory.history;

2b) But when I look in Debug Variables, I don't see memory having a .history so I tried both the above and the below:
const history = memory;

The above are not working for me. How do I access memory from a function? Thanks so much!
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

How do I create a javascript function?
popular-magentaPpopular-magenta / ❓┃ask-a-question
2y ago
How do I wipe out memory?
chirashiCchirashi / ❓┃ask-a-question
6mo ago
How do I get access to voiceflow support?
angelaAangela / ❓┃ask-a-question
4mo ago
How do I retain a response from buttons or a carousel?
efficient-indigoEefficient-indigo / ❓┃ask-a-question
3y ago