Voiceflow PartnersVPVoiceflow Partners
Powered by
breezyB
Voiceflow Partners•2y ago•
3 replies
breezy

How do I write {last_response} to a DOC file?

I have a unique situation where I would like to write the last response from the bot to a DOC file. I have tried:
1. In Voiceflow using a button to call a new URL (PHP file) and have that PHP file create the DOC file and then write to it, but I lose all of the output formatting when I pass the {last_response} to the PHP file.
2. Using a button to call javascript and have javascript create the DOC file and then write to it, but I can't import modules into the Voiceflow javascript so I can't get it to work.
3. Embedded the bot on a PHP page and then added the javascript to create the DOC file and then write to it to that PHP page, but I can't get the {last_resposne} to the javascript.

I've looked around for solutions, should I try using "PUT" and write the {last_response} to a database and set up a script that will pull the data from the database and create the DOC file? It feels like that is adding extra steps and that there is a more concise solution, but I'm a newb and unsure of which approach to pursue/implement. Thanks for any advice/direction you can provide.
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 add a source link to a response in Voiceflow?
BehzadBBehzad / ❓┃ask-a-question
2y ago
How do I save the response generated from a KB to a variable?
sad-indigoSsad-indigo / ❓┃ask-a-question
3y ago
How do I retain a response from buttons or a carousel?
efficient-indigoEefficient-indigo / ❓┃ask-a-question
3y ago
Unable to retrieve tagged file response
resonant-amethystRresonant-amethyst / ❓┃ask-a-question
2y ago