metropolitan-bronze•2y ago
Can chat users upload files (e.g. PDFs) to Knowledge Base?
I'd like for the chat user to upload a PDF file.
And then call an LLM to search just this uploaded PDF (not the entire Knowledge Base), and answer questions about it.
Is this possible in Voiceflow?
I've seen a couple workarounds using either VoiceGlow or Jotform, but neither fulfill my exact need.

4 Replies
Yes, in Voiceflow, you can upload files such as PDFs to the Knowledge Base to power your AI assistant. Here's a step-by-step guide on how to do it:
1. Create an AI Assistant in Voiceflow.
2. Go to the Knowledge Base.
3. Click on 'Add Data Source' on the top right.
4. Add as many PDFs, URLs, or Text files as you want to power your assistant.
Once uploaded, your AI Assistant will use these documents to answer questions via GPT. The more documents you upload, the better the answers will be. Please note that there is a 10mb file limit per upload.
After uploading some initial documents, you can press 'Preview' on the top of the screen. This will allow you to ask the Knowledge Base questions and see what the responses are. Clicking sources will allow you to see where the answers are being pulled from.
However, as of now, Voiceflow does not support the feature to allow chat users to upload a PDF file and then call an LLM to search just this uploaded PDF. The current functionality allows the creator to upload documents to the Knowledge Base, which the AI assistant can then use to answer questions.
While VoiceGlow or Jotform might offer some workarounds, they may not fulfill your exact need as you mentioned. We appreciate your understanding and hope this information is helpful to you.
metropolitan-bronzeOP•2y ago
Is this feature on the roadmap?
"allow chat users to upload a PDF file and then call an LLM to search just this uploaded PDF"
genetic-orange•2y ago
As this is per-session base, I think you might need to upload the URL somewhere, then hand over the URL to the bot and then use the url in an AI prompt.
I could imagine you can build the upload using the new extensions mentioned here: https://discord.com/channels/1079548823610871889/1101618240163160114/1214705039004799086
Then you could hand over the document to the bot using the dialog API by setting a variable.
And then you could use this in your AI stuff.
Or you can directly send a message to the bot from the extension and transport the document url with the message to your bot.
Check our repo for the new Chat Widget Extensions examples. We have a KB Upload one there.
https://github.com/voiceflow/demos-n-examples
GitHub
GitHub - voiceflow/demos-n-examples
Contribute to voiceflow/demos-n-examples development by creating an account on GitHub.