If you were building an AI from scratch and wanted it to have a changing mood, what inputs should determine that mood? Would you analyze previous conversations and the user's messages, track the system's internal state, or base it on feedback from its goals, rewards, or costs? I'm also wondering whether mood should be an emergent behavior or simply a configurable personality setting.
2 Answers
A practical starting point would be sentiment analysis over the recent conversation. The AI could track whether interactions have been positive, negative, stressful, or supportive, then use a weighted history so recent events matter more than older ones.
It may be better to treat mood as a controlled setting rather than pretend the system is genuinely emotional. You could expose parameters such as enthusiasm, patience, caution, or persistence, then adjust them using feedback from the agent’s goals, reward function, user ratings, or recent outcomes. That gives you predictable behavior without confusing simulated mood with actual feelings.

That works when conversation history is available, but temporary sessions or brand-new chats would need another source of context, such as a neutral default mood or signals from the current message.