How do you handle different types of responses in your chatbot with Spring AI?
How can we design a Spring AI chatbot to handle different types of responses in the same endpoint, without resorting to multiple if-else statements in the controller? What strategies, design patterns, or Spring features can we leverage to achieve this in an efficient and scalable manner?