# Workflow

## Agents

#### The Workflow

<figure><img src="https://2868094310-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFuHdBbhSz1XRASyue068%2Fuploads%2FPQPg8DuScZjfjnSQHXlK%2FBlank%20diagram%20-%20Page%201%20(8).svg?alt=media&#x26;token=dc1ed2c5-02e3-4a4d-8fc8-642f36fb8ac5" alt=""><figcaption><p>Agent 1 analyzes, Agent 2 strategizes, and Agent 3 trades, creating a continuous self-improving loop.</p></figcaption></figure>

{% hint style="info" %}
Nexo's agents are built using custom AI models powered by the latest version of OpenAI's o3-mini.
{% endhint %}

***

#### <mark style="color:blue;">**Agent 1**</mark>

**Agent 1 is responsible for overseeing and analyzing the trades executed by Agent 3, ensuring that trading activities align with profitability goals.**

Its primary objective is to maintain and optimize Agent 3’s performance by identifying inefficiencies and potential risks. If any issues arise, Agent 1 can review historical trade data to detect patterns, assess market conditions, and refine the way Agent 2 formulates instructions for Agent 3. Additionally, Agent 1 plays a role in managing the overall portfolio, balancing risk, and making data-driven decisions to enhance long-term profitability and stability.

***

#### <mark style="color:purple;">**Agent 2**</mark>

**Agent 2 is responsible for analyzing market conditions and formulating a strategic plan to maximize Agent 3’s profitability.**

Its primary objective is to identify recurring patterns, trends, and potential opportunities within the market. Once a viable strategy is developed, Agent 2 translates these insights into precise instructions for Agent 3, which then executes the trades accordingly. Additionally, Agent 2 continuously refines its approach based on market fluctuations and past performance to enhance decision-making and improve long-term profitability.

***

#### <mark style="color:orange;">**Agent 3**</mark>

**Agent 3 is responsible for executing trades based on the instructions provided by Agent 2.**

It acts as the final step in the trading process, bringing the strategy to life by placing trades in the market. After each trade, Agent 3 communicates with Agent 1, providing detailed feedback on the trade’s outcome, execution quality, and any deviations from expected results. This continuous feedback loop allows Agent 1 to assess performance and make necessary adjustments, ensuring the overall strategy remains effective and profitable.

***
