How do I write {last_response} to a DOC file?
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.
