ratty-blush•2y ago
How do I add Knowledge Base API to my Voiceflow project?
How do I add Knowledge Base API to my Voiceflow project? I am trying to make my bot ask clarifying questions like Pete did in his most recent video to the Voiceflow YouTube channel. There was a step in which he got an API key and a link from an Integration called Knowledge Base API. How do I add this integration to my project?
4 Replies
To add the Knowledge Base API to your Voiceflow project and enable your bot to ask clarifying questions, follow these steps:
1. Create Your Agent: Start by creating a new agent in your workspace. You can choose between a 'Chat' or 'Voice' agent depending on your project's needs.
2. Access the Knowledge Base: Navigate to the Knowledge Base section within your project. Here, you can add data sources such as PDFs, URLs, or text files by clicking on 'Add Data Source'. The documents you upload will empower your AI agent to provide answers through GPT. Remember, there's a 10mb file limit per upload.
3. Preview Your Knowledge Base: After uploading your documents, use the 'Preview' feature to test how your Knowledge Base responds to questions. This will also show you the sources of the answers.
4. Integrate the Knowledge Base in Your Agent Design: When designing your agent, you can drag steps from the menu into your agent and specify whether to use the Knowledge Base to answer prompts. This allows for a more dynamic interaction, including the ability to ask clarifying questions.
5. Get Your API Key: If you're planning to use Voiceflow's APIs for production, you'll need an API key for your agent. This can be found under the Integrations tab in your project settings.
By following these steps, you'll be able to integrate the Knowledge Base API into your Voiceflow project, enhancing your bot's ability to interact and ask clarifying questions based on the data you've provided.
For more detailed guidance, you can visit our documentation on creating an agent and getting an API key.
ratty-blushOP•2y ago
This doesn't answer my question... you're just telling me how to trigger a KB fallback. I'm asking about the Knowledge Base API
@NiKo | Voiceflow ?
sensitive-blue•2y ago
There is a single API key now in integrations. You can use this as the KB API. Tico's (and vf's) documents are out of date.
You use the API step and API key from integrations page within your assistant. You can get the KB Query API info from: https://developer.voiceflow.com/reference/post_knowledge-base-query