# Fronted & Backend Infrastructure

## **🖥️ Backend Infrastructure**

The backend infrastructure of What AI is the core engine that powers interactions between the AI system, blockchain platforms, and external DeFi protocols. It manages the entire transaction flow, ensuring that user commands are interpreted accurately, transactions are executed securely, and feedback is provided promptly.

* **AI Command Interpretation**: The backend uses advanced Natural Language Processing (NLP) to interpret user commands issued in plain text. For instance, a command like "Swap 2 ETH for DAI" is parsed by the NLP engine to understand the user's intent and initiate the corresponding blockchain transaction.

* **Smart Contract Interactions**: What AI relies on pre-deployed smart contracts to perform various DeFi operations, such as token swaps, liquidity provision, and staking. The backend interacts with these smart contracts, executing user commands seamlessly and securely on the blockchain.

* **External Protocol Integrations**: The backend is integrated with multiple external DeFi protocols, enabling What AI to offer a wide range of services. These integrations allow users to interact with decentralized exchanges, lending platforms, and other blockchain services, all through simple text commands.

* **Transaction Monitoring and Notifications**: The backend continuously monitors the blockchain for transaction confirmations. Users are kept informed throughout the process, receiving real-time notifications about the status of their transactions, ensuring a transparent and trustworthy experience.

## **💻 Frontend Infrastructure**

The frontend infrastructure of **What AI** is designed to offer users a simple and intuitive interface, making blockchain interactions as easy as sending a text message. The platform is deployed on WhatsApp, allowing users to interact with What AI through a familiar chat-based interface.

* **User-Friendly Interface**: The frontend provides a clean, straightforward chat interface where users can issue commands in plain text. This design ensures that even users with minimal technical knowledge can easily navigate and utilize What AI’s features.

* **Real-Time Interaction**: As users send commands, the frontend communicates with the backend to process these requests. Feedback is delivered in real-time, allowing users to see the results of their transactions almost instantly.

* **Cross-Platform Compatibility**: While initially launched on WhatsApp, What AI's frontend is designed to be flexible and adaptable, with potential for expansion to other platforms in the future. This ensures users can interact with What AI from their preferred communication tools, providing a seamless and consistent experience across different devices and platforms.

Together, the frontend and backend infrastructures of What AI create a powerful yet user-friendly system that simplifies complex blockchain operations. By combining sophisticated AI technology with a straightforward interface, What AI makes blockchain accessible to everyone, empowering users to confidently manage their digital assets.


---

# Agent Instructions: 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://what-ai.gitbook.io/what-ai/technological-architecture/fronted-and-backend-infrastructure.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.
