Deploy own Data Anlysis chat bot on own dashboard site

Hi,

New to this so apologies if the question is erratic or Newbee.
I have a dashboard site in ReactJS. The clients log in and see their data in graphs.
We are looking at ramping this up by deploying a chatbot to allow clients to analyse their data. So they can query : “how are my sales doing this month over last month” and the bot would evaluate the data in a given mysql table and respond with the results.

Same as uploading excel data to the data analysis of Chat GPT and asking questions about the data.

However, we wanted to embed this functionality in our own site and ensure it uses the client data to analyse. Specifically because the data is sensitive and we cannot export it or send it outside our system.

I don’t have a clue as to what the first step is even. Could someone shed some light? I would appreciate it.