UX Collective

We believe designers are thinkers as much as they are makers. https://linktr.ee/uxc

Follow publication

I built an AI that answers questions based on user research data.

A guide to building an AI with a custom knowledge base using OpenAI API.

Irina Nik
UX Collective
Published in
6 min readFeb 20, 2023

Modern products often have a large amount of user research data from different sources: user research interviews, intercom conversations, customer e-mails, surveys, customer reviews on various platforms, etc.

Making sense of all that data is a challenging task. A traditional way to do that is to maintain a neatly organized database with various corresponding tags.

But what if we can have our personal AI chatbot that can answer any question about our user research data?

By querying a large amount of historic user research data, the chatbot can provide insights and recommendations for a new project, product, or marketing campaign.

Well, now it’s possible with just a few lines of code. You can do that even without a technical background. In this article, I’m going to explain how to do that step-by-step.

This technique was first described by Dan Shipper.

OpenAI API

You are probably familiar with ChatGPT and hopefully are already using it in your working process. If not, I recommend reading my article about AI's impact on design first.

OpenAI also provides an API to send the requests. We need that to be able to send the relevant context to the model. And to keep the information private.

Before we start with API, you can try interacting with GPT-3 model through a user interface in GPT-3 Playground.

OpenAI API Playground

Privacy concerns

There are many privacy concerns when we deal with user data. By default, OpenAI will not use data submitted by customers via our API to train OpenAI models or improve OpenAI’s service offering. But of course, there might be much more security limitations. Check OpenAI documentation for more information and consult with your legal team.

Custom knowledge base

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Responses (14)

Write a response

Nice article, but you forgot to mention that eventually, those data, our private user data, will train the model for free without anyone's consent. https://help.openai.com/en/articles/5722486-how-your-data-is-used-to-improve-model-performance

--

Thank you for sharing it ! It's very interesting.

--

Been wanting to do this for work but im extremely non-technical so as much as you were thorough with your tutorial I still struggled to get set up. Going to have to do a lot more research and reading before I start tackling- thank you anyway!

--