> For the complete documentation index, see [llms.txt](https://docs.toucanai.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.toucanai.cloud/self-hosting-optional-advanced/architecture.md).

# Architecture

Overview of the components of Toucan AI

Toucan AI is a web application that consists of a frontend and a backend composed of three services (web, worker, data service). It requires a Postgres database, a Redis instance, and a SMTP server.

```mermaid
graph TD
    A[Frontend] --> B[Backend - web]
    B --> SMTP[SMTP Server]
    B --> D[Data service]
    D --> EDB[External databases]
    B --> DB[Postgres Database]
    W[Backend - worker] --> R
    B --> R[Redis]
    W --> DB
```
