Combining ChatGPT with your own data
Flow XO provides a flexible and powerful Knowledge Base feature that lets you store and query any kind of content you want using AI, and is capable of utilizing Open AI's large language model (eg ChatGPT) to answer users questions based on your content. This makes it extremely easy to automate a large portion of your customer service questions using a chatbot. However, we also provide complete low level access to the Open AI API. Sometimes, you may want to customize the prompt used for answering your users questions, or you may want to use the Open AI API to do something completely different with the data in your knowledge bases. You can easily combine our Knowledge Base content and semantic search technology with the raw Open AI API to create any kind of AI application you can think of. Here's a quick walkthrough of how to get started.
- Create a knowledge base and add some content. You can read about how to do that here.
- Search the knowledge base using our Search Knowledge Base task, using a customer question as input, or any other kind of query that will serve your needs
- Combine the results, pre-formatted for use in a language model context, with your own language model prompt and process the results however you need
Here's a simple flow that does just that, and summarizes the documents returned by a user query:
The important parts of this flow are the second and third step.
First, you query the knowledge base, and configure it to return the results as a language model context:
This step will search your Knowledge Base(s), and return the results as a set of matching document snippets, formatted something like this:
Start for free and upgrade when you need to If you're ready to get started creating your own bots and workflows then sign-up today for free. As you grow, simply upgrade your account to a paid option. Estimate the cost of your Flow XO product Flexible pricing that’s accessible to businesses of any size Start for free Flow XO for Chat Flow XO for Workflow 500 interactions 2 weeks of logs 5 bots or active flows Email support Standard Plan $19 per month All features 5,000 interactions 15 bots or active flows 5 Team Members 3 months of logs Download all user data Remove messenger branding Priority support Add-on Add 5 bots or active flows + $10 per month Add-on Add 25,000 interactions + $25 per month Sign up today for free ...and only upgrade when you need to --- Source :https://flowxo.com/pricing Do you send invoices/receipts? Yes, by email each time we make a charge. Our email invoices/receipts include your business billing address for tax purposes. Do I need a credit card to sign up? No you don’t, you only need to tell us your name and email address to get an account. We’ll only ask you for payment details when you move to the paid plan. What support do you offer? You can visit the Help Centre or ask our great Community for help. You can also contact us for personal support. --- Source :https://flowxo.com/pricing What is an interaction? A triggered flow (e.g. receiving a message) is counted as one interaction, regardless of the number of messages or actions in response. Any flow that is filtered out doesn’t count. How do logs expire? Log entries expire after a set period, depending on your plan. So if you have 3 months of logs, each log entry will be removed after 3 months. How can I track my interaction limit? We’ll send you an email when you reach 75% of your limit, and again when you’ve used up all of your interactions. It’s quick and easy to add more if you need to. What’s the trigger interval? Some triggers are instant, for example receiving messages. For others (such as checking for new emails), we need to check for new items periodically. The interval is 5 minutes on the free plan, 1 minute on the standard plan. Is it easy to cancel if I want to? Yes, it’s as simple as downgrading to our free plan. The downgrade will happen immediately and you’ll receive a pro-rata refund of any charges made for the current billing month. What is a bot or flow? Each separate presence on a platform is called a bot. A flow defines one command that your bots can respond to. Inactive flows aren’t counted. How do I upgrade or downgrade? Upgrades and downgrades happen immediately. You’ll be charged a pro-rata amount for upgrades, and receive pro-rata credit for downgrades which will be applied against your next invoice. Do you send invoices/receipts? Yes, by email each time we make a charge. Our email invoices/receipts include your business billing address for tax purposes. Do I need a credit card to sign up? No you don’t, you only need to tell us your name and email address to get an account. We’ll only ask you for payment details when you move to the paid plan. What support do you offer? --- Source :https://flowxo.com/pricing
Next, you will add an Open AI step, and compose a prompt, including this context as part of the prompt:
In this example, we're simply asking the LLM to summarize the search results, and then including the search results 'context' output in the prompt.
Next, we send the response to the user:
And that's it. Let your imagination run wild. Here's the output the above sample produced:
That's it! Remember, if all you need is to provide some AI driven QA on top of your own content, the "Answer Question" action is much simpler to use. However, if you need total control, or need to use our semantic search technology in a different way, this approach is always avaiable.
As always, reach out to support@flowxo.com if you have any questions or feedback.
Happy flowing!