Create an agent before starting a chat.
Create agent