You can update or modify your agent using the conversational chat interface or
the visual flow builder canvas.

## Open agent in edit mode

To begin editing any part of your agent, you must open it in edit mode:

### Console

1. In the Google Cloud console, go to the **Gemini Enterprise
   \> Apps** page.

   [Gemini Enterprise](https://console.cloud.google.com/gemini-enterprise/)
2. Select your app and copy the Gemini Enterprise web app
   URL from the **Dashboard**.

3. Open the web app URL in a new browser tab.

4. In the web app navigation menu, click ![Agents
   icon](https://docs.cloud.google.com/static/gemini/enterprise/docs/images/agent-designer/button_magic_icon.png)
   **Agents**.

   The **Agent Gallery** page appears displaying all the prebuilt
   agents and custom-built agents.
5. In the **Your agents** section, find the
   agent you want to edit, then click
   **Actions menu** and select **Edit**.

   The Workflow Builder canvas opens in edit mode.

## Edit agent details and subagent logic

You can edit your agent's logic, instructions, and configuration in two ways:

- [Using the chat pane for conversational, no-code updates](https://docs.cloud.google.com/gemini/enterprise/docs/agent-designer/edit-agent#edit-using-chat)
- [Using the flow builder for manual control](https://docs.cloud.google.com/gemini/enterprise/docs/agent-designer/edit-agent#edit-using-flow)

> [!IMPORTANT]
> **Important:** The main agent node stores the overall details of your agent. Editing the main node details (name, description, instructions) will also update the overall details for your agent.

### Edit an agent using conversational chat

Use the chat pane to directly interact with Gemini and update the
agent's instructions or behaviors.

### Console

1. Go to the Workflow Builder canvas.
2. In the left chat pane, enter a prompt detailing the changes you want to
   make to the agent's function or behavior.

   Example prompt: `Change the main agent's model to Gemini-2.5-flash and
   update its instructions to be more direct.`

   Gemini updates the agent logic and instructions based on your
   prompt.
3. Click the **Preview** tab and interact with the agent to verify
   and evaluate the changes.

4. Click **Update** to save and relaunch the
   agent.

### Edit an agent using the flow builder

Use the **Flow** tab to visually manage the agent flow, Gemini model,
data sources, and instructions for the main agent or any subagents.

### Console

To edit the main agent, do the following:

1. In the Workflow Builder canvas, click the **Flow** tab.
2. Click the main agent node to open its details pane.
3. Edit the agent's **Name** , **Gemini model** , **Description** , **Instructions** , and **Data sources**.
4. You can also add or remove subagents from this pane.

   > [!WARNING]
   > **Warning:** Removing a subagent may disrupt your agent's flow and control logic.

5. Click **Update** to save and relaunch the agent.

To edit a subagent, do the following:

1. In the Workflow Builder canvas, click the **Flow** tab.
2. Click the subagent that you want to edit.
3. Edit the subagent **Name** , **Gemini model** , **Description** , **Instructions** , and **Data sources**.
4. Click **Update** to save and relaunch the agent.

## What's next

- Learn how to [schedule agent executions](https://docs.cloud.google.com/gemini/enterprise/docs/agent-designer/schedule-agent).
- Learn how to [create an
  agent](https://docs.cloud.google.com/gemini/enterprise/docs/agent-designer/create-agent).
- Learn how to [use an
  agent](https://docs.cloud.google.com/gemini/enterprise/docs/agent-designer/use-agent).
- Learn how to [delete an
  agent](https://docs.cloud.google.com/gemini/enterprise/docs/agent-designer/delete-agent).