Back to Blog
May 6, 2024

Create an advanced AI FAQ chatbot that recommends sources.

Create an advanced AI FAQ chatbot that recommends sources.

Using Voice Flow's Knowledge Base API: A Tutorial

Are you looking to take your knowledge base to the next level? Voice Flow's Knowledge Base API can help you do just that. In this tutorial, we'll show you how to use the API to include the source of an answer, so you can see exactly where the information came from.

Setting Up Your Knowledge Base

Before we dive into the API, let's take a quick look at how to set up your knowledge base in Voice Flow. The knowledge base is where you'll store all of your articles. You can add articles using the functions provided in the tool.

Making an API Call

To use the Knowledge Base API, you'll need to make an API call. You can find your API key in the integration section of your project. Once you have your API key, you can use it in the call. The call itself expects the API key and a question.

Capturing the User's Question

To capture the user's question, we're using the capture step. This step captures the user's question and saves it into a variable.

Capturing Information from the API Response

Once we've made the API call, we need to capture information from the API response. We're using capture response functions to capture information from the API response and save it into variables.

Summarizing the Answer

The API response includes a number of different pieces of information. On the front end, this is the answer that the user sees. On the back end, the API looks through the pieces of information to determine what's most relevant and then sends that to your model.

Saving the API Response

The entire API response is captured in the response variable. We're saving the content, source name, type, and more into separate variables.

Handling No Answer Found

If no answer is found, we're using a general AI model to answer the user's question.

Formatting the Content

If an answer is found, we're telling an AI model to take the content and reformat it to be more readable to the user.

Providing the User with the Article

If we have a high confidence that the article will answer the user's question, we're using a set step to generate an article name and then using a card step to provide the user with a link to the article.

Conclusion

Using Voice Flow's Knowledge Base API can help you take your knowledge base to the next level. By including the source of an answer, you can provide your users with more detailed and accurate information. If you have any questions, feel free to join our Discord or contact our support team.

Highlights

- Voice Flow's Knowledge Base API can help you include the source of an answer.

- To use the API, you'll need to make an API call and capture information from the API response.

- If no answer is found, a general AI model can be used to answer the user's question.

- If an answer is found, an AI model can be used to reformat the content and provide the user with a link to the article.

FAQ

Q: What is Voice Flow's Knowledge Base API?

A: Voice Flow's Knowledge Base API is an API that can be used to include the source of an answer in your knowledge base.

Q: How do I set up my knowledge base in Voice Flow?

A: You can set up your knowledge base in Voice Flow by using the functions provided in the tool.

Q: What happens if no answer is found?

A: If no answer is found, a general AI model can be used to answer the user's question.

Q: How is the content formatted for the user?

A: An AI model is used to reformat the content to be more readable for the user.

Resources:

- https://www.voc.ai/product/ai-chatbot

Related Articles

E-commerce
Best Places to Sell Clothes Online in 2025: Ultimate Guide for Used, Designer, and Kids’ Apparel

The landscape of online clothing resale has transformed dramatically, reflecting new waves of sustainability, personal entrepreneurship, and the digital empowerment of everyday sellers. Navigating where, what, and how to sell used, designer, or children’s clothes in 2025 isn’t just about cleaning ou

Dec 19, 2025
Read more
E-commerce
How to Resell on Amazon in 2025: The Definitive Deep Dive for Maximum Profit

Amazon’s third-party marketplace is a retail force unrivaled in scale and influence, enabling entrepreneurial individuals and businesses to tap into the world’s biggest online storefront. In 2025, reselling on Amazon remains one of the most lucrative business models available to independent sellers,

Dec 19, 2025
Read more
E-commerce
Alibaba Alternatives in 2025: Finding the Best B2B Sourcing Platforms

In the dynamic arena of global trade, B2B e-commerce platforms have transformed how businesses connect with suppliers, evaluate products, and scale their operations worldwide. While Alibaba has long stood as the hallmark of B2B procurement, savvy buyers now look beyond its familiar territory for alt

Dec 19, 2025
Read more
VOC AI Inc. 160 E Tasman Drive Suite 202 San Jose, CA, 95134 Copyright © 2025 VOC AI Inc.All Rights Reserved. Terms & Conditions Privacy Policy
This website uses cookies
VOC AI uses cookies to ensure the website works properly, to store some information about your preferences, devices, and past actions. This data is aggregated or statistical, which means that we will not be able to identify you individually. You can find more details about the cookies we use and how to withdraw consent in our Privacy Policy.
We use Google Analytics to improve user experience on our website. By continuing to use our site, you consent to the use of cookies and data collection by Google Analytics.
Are you happy to accept these cookies?
Accept all cookies
Reject all cookies