# gmAI Framework

Fueled by pre-trained AI models that continuously ingests real-time data streams, gmAI arms developers with powerful APIs and SDKs to effortlessly integrate AI capabilities into their dApps.

gmAI consists of 3 main components, each playing a crucial role in its functionality:

* Data
* Decentralized Computing
* Dapps for AI&#x20;

<figure><img src="/files/ZdLgdKpHf2mrJf24phmx" alt=""><figcaption></figcaption></figure>

Equipped with comprehensive understanding and insights into the entire ecosystem of Solana protocols, along with a deep familiarity with their publicly available source codes, gmAI can:

* Answer the most complex and nuanced questions related to Solana & Web3 space
* Execute on-chain swaps on user's command (fully trustless & non-custodial)
* Perform a series of on-chain transactions on a pre-set objective

Example:&#x20;

* Swap from asset A to asset B, stake asset B in protocol X for optimized yield.
* When yield on protocol Y is higher, move staked assets automatically from X to Y.

And pretty much any other possible action, as long as it is on-chain.


---

# 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://docs.gm.ai/introduction/gmai-framework.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.
