Hey @kahmed23 - Welcome to the forums!
This right here is an example of chat completions. Single request and response; you are not storing conversations as context to retrieve. I would highly suggest you take a look and use OpenAI Assistants API to achieve what you are looking for. Take a look at my previous post to get started with implementation.