Does anyone know how to create contextual chatbot in JS?

I know that the courses around here are for Python LLMs and ML/AI, but I want to design a simple chatbot that uses context to keep conversation going. I already made the chatbot interface. I just need to know how to use OpenAI to add user messages to the first system message.

Hello @immanuelpeter ,

Welcome to the community!
Here we work with python mainly.
Btw You can check this for js: Build and Deploy Your Own ChatGPT AI App in JavaScript | OpenAI, Machine Learning - YouTube

With regards,
Nilosree Sengupta

It didn’t explain how to add context to the initial messages.