> For the complete documentation index, see [llms.txt](https://docs.frequencychain.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frequencychain.org/13.-ai-integration-and-intelligent-systems/13.1-architectural-role-of-ai-in-frecx.md).

# 13.1 Architectural Role of AI in FreCx

The AI layer is positioned as an off-chain computation and intelligence framework that interacts with multiple components of the FreCx ecosystem.

It consumes data from:

* blockchain transaction activity
* node performance metrics
* energy data inputs
* application-level interactions

This data is processed through machine learning models and analytical systems. The output of these systems is then fed back into the blockchain through structured interfaces, enabling smart contracts and applications to act on intelligent insights.

This architecture ensures that:

* blockchain execution remains deterministic
* AI provides optimization without compromising trust
* data-driven decisions can be verified through on-chain actions

<figure><img src="https://1067227230-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLwgYv3BMBEDsxgxyrgOJ%2Fuploads%2FZmwFZy5jWymhO58cdTcP%2FArchitectural%20Role%20of%20AI%20in%20FreCx.jpg?alt=media&amp;token=24418def-66f6-433c-b5a9-2dc2557df7e5" alt=""><figcaption></figcaption></figure>


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.frequencychain.org/13.-ai-integration-and-intelligent-systems/13.1-architectural-role-of-ai-in-frecx.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
