Architecture
Overview
Arif AI is built on a layered architecture with clear separation of concerns. Each layer has a specific responsibility and communicates with adjacent layers through well-defined interfaces.
System Architecture
Layers
| Layer | Responsibility |
|---|---|
| Client | Frontend components users interact with (chat widget, onboarding wizard, form extensions) |
| API | RESTful endpoints built on the Mjara API framework |
| Service | Core business logic, orchestration, and tool management |
| Integration | External service connectors (MCP, RAG, Mjara Drive) |
| Data | Persistence layer with MariaDB via Mjara ORM |
Each layer is described in detail in the following pages.