> For the complete documentation index, see [llms.txt](https://litepaper.dormint.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://litepaper.dormint.io/architecture/functional-layers.md).

# Functional layers

## **User Interface (UI) Layer**

* **Components**: Web dashboard, Mobile Apps, Telegram Mini-Apps, etc.
* **Functionality**:
  * Provides intuitive interfaces for end-users and contributors
  * Facilitates interaction with AI Agent Constructor, marketplace, and analytics
  * Ensures a consistent and user-friendly experience across all devices

<figure><img src="/files/3FEaYquOoa3yQqpt8taU" alt=""><figcaption></figcaption></figure>

## **AI Agent Constructor Layer**

* **Components**: Drag-and-Drop Canvas, Text-Based Logic Input
* **Functionality**:
  * Enables users to create and customize AI Agents without coding
  * Users arrange nodes visually and describe their logic in plain text
  * Automatically translates user inputs into functional code for AI Agents

## **Node Management Layer**

* **Components**: Pre-Built Nodes, Custom Node Integration, Validation System
* **Functionality**:
  * Hosts a library of pre-built nodes for various wellness functionalities
  * Allows contributors to add new nodes and templates for free
  * Centralized validation ensures all nodes meet quality and security standards before deployment

## **Integration Layer**

* **Components**: API Connectors, Data Integrators, AI Service Links
* **Functionality**:
  * Connects Dormint with external services such as Google Health, Apple Health, social media platforms, and AI services like MidJourney and Anthropic
  * Facilitates seamless data flow and interoperability between different services and AI Agents
  * Expands the capabilities of AI Agents by integrating diverse data sources and functionalities

## **Token Economy Layer**

* **Components**: DOAI Token, Smart Contracts
* **Functionality**:
  * **DOAI Token**: Powers node hosting, premium services, marketplace transactions, and governance participation
  * Manages token distribution, transactions, and revenue sharing through smart contracts

## **Marketplace Layer**

* **Components**: Node Marketplace, Template Library, Revenue Sharing System
* **Functionality**:
  * A centralized marketplace where users can buy, sell, and license nodes and AI Agent templates
  * Contributors earn DOAI by having their nodes/templates used by others
  * Facilitates the exchange of innovations and promotes a collaborative ecosystem

## **Data Management Layer**

* **Components**: Data Storage, Privacy Controls, Analytics Engine
* **Functionality**:
  * Securely stores user data and integrates with health data sources
  * Implements privacy measures to protect sensitive information
  * Provides advanced analytics and reporting for AI Agents and user interactions

## **Backend Infrastructure Layer**

* **Components**: Cloud Hosting, Server Management, Scalability Solutions
* **Functionality**:
  * Hosts and manages the infrastructure required for running AI Agents
  * Ensures high availability, reliability, and performance of the platform
  * Scales resources dynamically based on demand and agent complexity


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://litepaper.dormint.io/architecture/functional-layers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
