First, I used 's trick of prompt-injecting ChatGPT to get it to describe itself. I used this description as the prompt to condition how it should respond to dialogue. I used the Memory class from Langchain to create a sliding memory window of 2 lines.