you could look at the “assistant” function, it’s well setup for that kind of work. you first create a thread and run, then you can add messages to this sames “thread_id” until the session end on your side, but according to the documentation a thread expire 60 days from it’s creation.