Adventures In AI: Can you Get Chat GPT To Answer Questions On Your Sites Data Only?

Can you Get Chat GPT To Answer Questions On Your Sites Data Only?

My adventures in the world of AI and Chat GPT are continuing at a pace, it’s a fascinating space.

I was thinking to myself, “Can I make Chat GPT answer questions based upon data that comes from my site only”.  I don’t want the system to go off and use data from the wider internet only my qualified answers.

My rationale behind that is can AI be used as a customer support bot for a site and answer visitors questions without human intervention.

The quick answer is yes, we prime the request with a document of data and ask Chat GPT to answer only on that document.

UPDATE – You can see my demo here wpaics.neilmatthews.com

What I Did

I created a custom post type called AI Content, and I add all of my frequently asked questions and answers to that post type.

I fronted the requests with a gravity forms form, and created code to handle the request and send it to chat GPT.

I then present the answer to my site visitor.

If I don’t have an answer I send a request to myself via email so I can answer that person manually then add a new FAQ entry to answer that in the future, so my AI customer service bot gets more intelligent.

The Prompts

I sent the following prompts to chat GPT.  Prompts are a series of commands where you tell chat GPT what to do.

System Prompt – this tells chat GPT how to handle the incoming data

You will be provided with a series of FAQs delimited by triple quotes and a question. Your task is to answer the question using only the provided FAQs and to cite the passage(s) of the FAQs used to answer the question. If the FAQs does not contain the information needed to answer this question then simply write: “Sorry I cannot answer that, I’ll ask my owner to answer your question.”

User Prompt – the data I send to chat gpt

{all of the faq data} QUESTION: {whatever is input in the form}

Chat GPT interprets that and sends me a reply.

Video Demo

Wrap Up – Can you Get Chat GPT To Answer Questions On Your Sites Data Only?

I’m enjoying my investigations into AI and chat GPT, if you want more posts like this do let me know.

If you are interested in creating your own AI powered customer support solution, give me a shout, I have built a prototype that can be reused for most support solutions I believe.

Photo by Phillip Glickman on Unsplash

Get A No Obligation Quote

Do You Need Help With Your WooCommerce Site?

Click through to the next page and complete the form to get a free no obligation quote to fix any issue you are having with your WooCommerce site.