rare-sapphire•16mo ago
Creating Printable Forms
Is there a way I could turn a response in the web chat into a downloadable form or some description?
I’m just messing about with an idea, it’s a chat bot that produces short exam prep tests for kids. I’m thinking along the lines of using a cheap LLM to retrieve some exam questions I’ve placed into a KB and bring them back into variables. Then I want to construct a form in my text block and just drop the exam questions in as variables.
For example : Text Block would be setup as follows:
Vocabulary Test
Q1: {q1Variable}
Q2: {q2Variable} etc, etc
Anyway, the method isn’t too important at this stage, I’m just trying to find out if I could create a printable document from the exam form I am constructing in the text block at all? Is there any way to do that? Innit crudest form I guess the response could just be copy and pasted from the web chat. But I’m wondering if there is a more UI friendly way to do it like when chatGPT creates downloadable docs for you when code interpreter is on?
2 Replies
Currently, Voiceflow does not directly support the creation of printable or downloadable documents from the responses in the web chat. However, you can achieve this by integrating with an external service that can generate documents, such as Google Docs or Microsoft Word Online, via their respective APIs.
Here's a high-level overview of how you might do this:
1. Set up your chatbot to generate the exam questions as you've described, using an LLM to retrieve questions from a KB and storing them in variables.
2. When the exam is ready to be generated, your chatbot could make an API call to the document creation service. This API call would include the exam questions (stored in your variables) as part of the request.
3. The document creation service would then generate a new document containing the exam questions and return a URL to the document.
4. Your chatbot could then provide this URL to the user, allowing them to view and print the document.
Please note that this would require some additional setup and possibly some coding outside of Voiceflow to handle the document creation. You would also need to familiarize yourself with the API documentation for the document creation service you choose to use.
For more details on how to make API calls in Voiceflow, you can refer to our documentation on API blocks. For information on how to use variables, you can check out our guide on variables and data types.
Remember, while Voiceflow is a powerful tool for creating voice and chat experiences, it doesn't directly handle every possible use case. Sometimes, integrating with external services is the best way to achieve your desired functionality.
rare-sapphireOP•16mo ago
Amazing Tico! I will check that out! Let me know how I can buy you a digital coffee ☕️! 🙃