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:
- 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.
- 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.
- 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.