System-Message

LangBot Day 3: Giving Your Chatbot a Personality with Prompt Templates
reading time: 7 minutes

Recap: On Day 1 we built a CLI chatbot with ChatOpenAI. On Day 2 we gave it memory so it remembers the conversation. But LangBot still has no personality — every session starts with a blank slate, and the model defaults to its generic “helpful assistant” tone. Today we change that.


The problem: a chatbot with no identity

Right now, LangBot’s response to any first message is unpredictable. Ask “What do you do?” and you get whatever the base model decides. There is no way to control: