You can create an agent in Workflow Builder by describing your agent's
function in plain language.

Gemini Enterprise generates a workflow scaffold based on your
description, including steps, conditions, and actions. You can then refine the
generated workflow in the visual flow builder.

## Before you begin

Before using this feature, make sure that a Gemini Enterprise
administrator has enabled the Workflow Builder feature toggle in your
app's feature management settings. For more information, see [Manage web app
features](https://docs.cloud.google.com/gemini/enterprise/docs/manage-web-app-features).

## Create an agent using a natural language prompt

### App

1. Open your Gemini Enterprise web app in a browser.
2. In the sidebar, click **Agents**.
3. Click **Create agent**.
4. In the **Describe your agent** field, enter a description of your
   agent's function. For example: "Prioritize messages and draft
   professional replies" or "Summarize my emails from yesterday."

   > [!TIP]
   > **Tip:** Provide enough context about the workflow's purpose, boundaries, and expected behavior. You can prompt Gemini to ask clarifying questions to refine the workflow.

5. Click **Submit** or press **Enter**.

   Gemini Enterprise generates a workflow scaffold in the
   flow builder. The generated workflow is a starting point. You can add,
   remove, or reconfigure steps to match your requirements. For more
   information, see
   [Edit an agent with natural language prompts](https://docs.cloud.google.com/gemini/enterprise/docs/workflow-builder/edit-workflows.md.txt#natural-language).
6. Click any step in the flow builder to view and edit its configuration
   in the configuration panel.

7. To test your workflow, click the **Preview** tab.

8. When the workflow is ready, click **Turn on** to make it live.

   Turning on a scheduled workflow starts it on the configured schedule.
   Turning on an event-triggered workflow begins listening for the configured
   events.
   Note: Not all node types can be added or edited with natural language
   prompts. If editing with natural language is not supported for nodes in
   your workflow, you can continue to edit those nodes manually.

## What's next

- Learn how to [use agent templates](https://docs.cloud.google.com/gemini/enterprise/docs/workflow-builder/use-agent-templates.md.txt).
- Learn how to [edit an agent with natural language](https://docs.cloud.google.com/gemini/enterprise/docs/workflow-builder/edit-workflows.md.txt).
- Learn how to [configure Agent node connectors and actions](https://docs.cloud.google.com/gemini/enterprise/docs/workflow-builder/workflows.md.txt#configure-agent-actions).