Hi Rachana,
There's a Showcase application for demostrating the use of OpenAI. You can take a look at the following feature to give you an idea about how to implement the functionality you want:
I hope this information is helpful to you, best regards!