How would you design a scalable backend system for a user-facing chatbot that processes queries and returns structured data?