Replymessage unavailable
It is hard to suggest an architecture for something we don't have any details other than you want to integrate AI. Perhaps you need to learn architectural patterns so you can see what can be applied to your needs: https://www.oreilly.com/library/view/architecture-patterns-with/9781492052197/
Also "working with AI" is super ambiguous, we don't know if you mean using an LLM, use a local modal, develop a model, use other statistical methods or what else