> 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/nodes-and-node-based-logic.md).

# Nodes & Node-Based Logic

1. **Modular Building Blocks**
   * Dormint offers a library of **nodes**, each representing a distinct function—data retrieval, AI inference, output to a messaging channel, etc.
   * Connecting these nodes in a visual interface allows you to shape an agent’s logic without writing code.
2. **Configurable Inputs & Outputs**
   * Each node has one or more inputs (e.g., data from wearables) and outputs (e.g., AI-processed insights).
   * Connect nodes to form a sequence or branching logic, defining how data flows within the agent.
3. **No-Code/Low-Code Approach**
   * While advanced contributors can script custom nodes, most agents can be built or modified using Dormint’s drag-and-drop editor plus text-based descriptions.
4. **Scalability**
   * Dormint’s backend automatically scales the resources an AI Agent needs, ensuring performance even with high user demand or large data sets.

## Automated Code Generation

* **Seamless Transition**: User-defined logic through the drag-and-drop interface and text descriptions is automatically translated into executable code.
* **Error Minimization**: Automated processes reduce the likelihood of coding errors, ensuring reliable and efficient AI agent performance.
* **Rapid Deployment**: Facilitates quick creation and deployment of AI agents, enabling users to iterate and optimize their solutions swiftly.

## Centralized Validation

* **Quality Assurance**: All nodes and templates undergo rigorous quality checks and security validations before being made available on the platform.
* **Consistent Standards**: Ensures that every component meets Dormint’s high standards for performance and reliability.
* **Trust Building**: Centralized validation fosters trust among users and contributors by maintaining a secure and dependable ecosystem.

## Token-Driven Incentives

* **DOAI Rewards**: Users earn DOAI tokens by engaging with gamification templates, and completing quests, tasks, and achievements within their AI agents.
* **Contributor Incentives**: Node and template creators receive DOAI tokens based on their contributions' usage and licensing, encouraging continuous innovation.
* **Economic Sustainability**: The token economy supports platform growth by incentivizing active participation and rewarding valuable contributions.

## Marketplace Integration

* **Dynamic Marketplace**: A centralized marketplace where users can buy, sell, and license nodes and AI agent templates.
* **Revenue Sharing**: Contributors earn DOAI tokens whenever their nodes or templates are used, fostering a collaborative and economically sustainable ecosystem.
* **Innovation Hub**: Promotes continuous innovation by allowing contributors to monetize their creations and users to access a diverse range of functionalities.

## Real-Time Analytics

* **Performance Monitoring**: Provides users with comprehensive insights and performance metrics to optimize their AI agents.
* **Data-Driven Decisions**: Advanced analytics help users understand the impact of their AI agents on their wellness goals, enabling informed adjustments and improvements.
* **User Feedback Integration**: Continuously gathers user feedback to enhance agent functionalities and overall platform experience.

## Gamification Templates

* **Pre-Designed Templates**: Offers a library of gamification templates including quests, challenges, and achievements that users can integrate into their AI agents.
* **Customization Options**: Users and creators can modify these templates to suit specific wellness objectives, enhancing engagement and motivation.
* **DOAI Rewards for Completion**: Users receive DOAI tokens for successfully completing gamification tasks, encouraging consistent use and habit formation.


---

# 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/nodes-and-node-based-logic.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.
