How to develop a suggestions list by using Artifical Intelligence and dotnet api

Hi,

I want to develop an Api (dotnet) which ll use chatgpt and can generate a list of items on the bases of providing data by user.

As soon as user write something in textbox, system should start giving the suggestions.

What I want is that

Enter Lasax 40 mg in google and see what ll be returned back under did you mean.

Google 'll show lasix 40 mg.

I just want to call a web service / Api and want to return the result as google return.

Api 'll have the artificial intelligence and can be trained on provided data.

Hopefully , I am able to explain better

If you feel anything confusing, please let me know

How can I implement this my e-commerce project in react