Bringing Chat GPT AI to The Database

pexels tara winstead 8849295 scaled

If you have not tried Chat GPT then you must check it out – it is absolutely mind blowing!  

It is one of the most amazing things I have ever seen.   

I tried “respond to this email:” and pasted in an email I had received… the result was excellent – almost ready to send. Then I tried “write a poem about Josie and Bryce getting married” and it did! I tried several more and it did a great job every time. Not perfect, but very impressive technology. 

So, we had a chat in the Gurus office about how we could use Chat GPT in our databases.  

And this is what we have come up with: 

(To give you some context you may, or may not know, that we have created a cloud database platform over the past 10 years that allows us to create online databases rapidly – we can create the tables, fields, views, imports, exports, notifications, reports etc. in a few hours. Just through configuration. Then extend it (if necessary) to do almost anything. You get the idea.) 

To incorporate Chat GPT we will add a new field type called “AI Response”. We then configure the new field to tell the database which data we are going to pass in and (optionally) some text to prefix it to guide the AI.  When the record is saved we pass the text from the chosen field to Chat GPT and the resulting text into the response field. 

Here is an example how it could be used: 

  1. The database checks an email box for incoming emails. 
  1. When it gets one it automatically adds it to the database.  
  1. It passes the text “Reply to this email:” along with the email text to the Chat GPT API.  
  1. It puts the response into the new AI Response field. 
  1. When the user opens the record they can see the incoming email, the Chat GPT response, already written, and they just review/edit that response before hitting Send. 

Another example is for a client that gets asked a lot of technical questions: 

  1. The question from the client is entered into a field called “Question”. 
  1. We pass the question to Chat GPT and the result is put into the “Answer” field. 
  1. The expert user reviews the question and the suggested answer which they edit and finalise.  

In both examples Chat GPT will probably not get it 100% right in all scenarios but even if it needs editing first it is a significant time saving. Having it in the database helps in a several ways: 

  1. No need to log on to Chat GPT and switch windows.  
  1. It is done automatically, no need for copying and pasting. 
  1. All answers / replies are logged.  
  1. All changes are tracked. 
  1. Everything is in one place. 

If that sounds interesting and you would like to know more about our cloud database platform or Chat GPT integrations please get in touch.