# Create Google A2A-compatible AI Agents with MOOF

### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

* This guide assumes you are already familiar with how to create a standard AI agent on MOOF.
* Ensure that you are logged in to the MOOF application via [https://app.moof.fun/login](https://app.moof.fun/login) before proceeding.
* For optimal performance, we recommend using modern web browsers based on Chromium (e.g., Google Chrome) or Mozilla Firefox.

**Note:** This login flow follows the same process as [Create a normal AI agent](how-to-use-moof/create-basic-ai-agents) , we will continue from the final step of the standard AI agent project (Simple Calculation Agent).

<figure><img src="https://663575534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5LJLrBQMuqz2udA8Ak4I%2Fuploads%2Fy8a4JMZPNO7csJm7mRKm%2Fimage.png?alt=media&#x26;token=8b2a9a81-3c50-491d-b374-6770af1e2465" alt=""><figcaption></figcaption></figure>

### Google A2A Module Setup

**Config A2A hosting and Agent Card**

*   **Replace Agent with A2A Host Agent:**

    For A2A-compatible setups, you may be working with a swarm of agents. In this case, replace the standard **Agent** with an **A2A Host Agent**, which is responsible for managing and coordinating the entire swarm.

<figure><img src="https://663575534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5LJLrBQMuqz2udA8Ak4I%2Fuploads%2FjdU0vNChMDFkUdi9KU38%2Fimage.png?alt=media&#x26;token=a06a86f3-f731-44c6-9bad-8d068259357f" alt=""><figcaption></figcaption></figure>

* **Adding Agent Cards:**\
  Each **Agent Card** is assigned a specific task and operates under the direction of the **A2A Host Agent**, which coordinates their execution within the system. Choose the kind of agent you want to integrate into the hosting setup (In this example, we will use the **Default Agent** configured for **currency exchange** tasks )

<figure><img src="https://663575534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5LJLrBQMuqz2udA8Ak4I%2Fuploads%2FKhs7nLz54RJgxdoK4FTS%2Fimage.png?alt=media&#x26;token=8a411a76-24a7-492d-8ccb-f9e6bf11d614" alt=""><figcaption></figcaption></figure>

**Connect the Moo-dule and Launch the Playground**

* You will now see the **A2A Host Agent** acting as the **Agent General**, overseeing and coordinating all tasks. Each **Agent Card** functions as a utility module that you’ve added to handle specific operations within the system.

**Note:** You will notice that the **Calculator tool** is still present, which means you can easily add any other tools into the A2A system as needed.

<figure><img src="https://663575534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5LJLrBQMuqz2udA8Ak4I%2Fuploads%2Fl3Ohiff88Anzqlprn0e3%2Fimage.png?alt=media&#x26;token=bd2c1334-90e1-4276-b86f-d16b2e2de290" alt=""><figcaption></figcaption></figure>

*   By launching and testing your setup, you will gain a clearer understanding of how the A2A system operates as a whole.\


    <figure><img src="https://663575534-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5LJLrBQMuqz2udA8Ak4I%2Fuploads%2FwUVnyuiLYiuI92RxRwxJ%2Fimage.png?alt=media&#x26;token=ad1ff57c-67b4-4d4c-80c0-ab962eb77eb5" alt=""><figcaption></figcaption></figure>
