Claude API Doesn't Remember — Maintaining Context in Multi-Turn Conversations
The API is stateless. You need to accumulate assistant messages in the messages array for the chatbot to remember the previous conversation. I confirmed this through a direct comparison experiment.