Create your first auto mode agent
Auto mode is the recommended way to build your first agent. You describe the outcome you want in plain language, and Glean plans the steps, selects the tools, and generates a draft. You then review, test, and save it. This tutorial builds a company research agent that produces a short briefing.
Use auto mode for open-ended tasks such as research, analysis, summarization, and drafting. If you need a fixed, repeatable process with manual control over every step, see Create your first workflow mode agent instead.
Prerequisites
Confirm that:
- Agents are enabled for your organization.
- You have permission to create agents.
- Auto mode is available in your Glean environment.
- Any connectors or tools your agent depends on are already configured for your organization.
If you do not see Agents in the left navigation, or Create agent is unavailable, agents may not be enabled for your account. Contact your administrator or Glean Support.
Step 1: Create the agent
- In Glean, open the Agent library.
- Click Create agent. Auto mode is selected by default.
Glean opens the agent builder with the Builder Assistant on the left and configuration tabs for instructions, tools, resources, triggers, and settings.

Step 2: Describe the agent
In the Builder Assistant, describe what you want the agent to do. Be specific about the task, the inputs, and the output format. For this tutorial, enter a prompt such as:
Research a company I name and write a one-page briefing. Include a short
overview, recent news, and three talking points for a sales call. Format
the result with headings and bullets.
Builder Assistant generates a first draft from your description. The more specific your prompt is, the better the first draft usually is.
New to agent builder? Use a conversation starter as your foundation, then edit it to match your workflow, audience, and connectors.
Step 3: Answer clarifying questions
After you describe the agent, Builder Assistant may ask follow-up questions to capture details such as:
- What the agent should do and what it should not do.
- What inputs it needs.
- Which systems it should read from or write to.
- How to structure the final output.
Answer each question so Glean can refine the draft.
Step 4: Review and scope the draft
Open the configuration tabs to review what Builder Assistant created:
- Instructions — the behavior and output expectations of the agent. The editor is markdown-first, so you can structure guidance with headings and lists, the way you would write an operating guide for a teammate.
- Tools — the apps and capabilities the agent can use. Grant access only to what the agent needs. For supported apps, you can grant access at the app level instead of selecting each tool.
- Resources — the documents, folders, and collections the agent relies on. Add only high-quality, relevant sources.
- Triggers — when the agent starts. For an interactive agent, keep a manual run with a chat message or an input form.
If the agent uses write tools, confirm that the selected tools match your intended workflow and governance requirements before you test it.
Step 5: Preview and debug
Before you share the agent, test it in Preview.
- Click Preview.
- Run the agent with a realistic input, such as a company name.
- Review the result and confirm that the agent understands the task, asks for the right inputs, uses the expected tools and resources, and returns useful output.
Use Debug to inspect how the agent reached its result, including the path it took, tool calls, and intermediate steps. After each run, refine the configuration and test again until the behavior matches your intent.

For the company research prompt in this tutorial, a successful run returns a briefing like this:
Acme Corp — Sales briefing
Overview
Acme Corp is a mid-market logistics software company serving regional
carriers. It sells a routing and fleet-visibility platform.
Recent news
- Launched a new real-time tracking module last quarter.
- Announced a partnership with a major 3PL provider.
- Hiring across sales and customer success, signaling expansion.
Talking points for the call
- Ask how they measure on-time delivery today.
- Connect their expansion hiring to onboarding and enablement needs.
- Reference the 3PL partnership as a growth signal worth supporting.
You know the agent works when it asks for a company name, reads from the expected sources, and returns a briefing in this structure.
If the agent stalls or returns low-quality output, narrow its resources, shorten its instructions, remove tools it does not need, or switch the reasoning mode or model if your environment offers a choice.
Step 6: Save and share
When the behavior looks right, click Save. Before you share the agent with your team, confirm that:
- The name clearly describes the agent.
- The description explains what it does.
- The tools and resources are scoped correctly.
- The trigger behavior is correct.
- You tested the agent in Preview.
Saving makes the latest version available based on the sharing settings you choose.
Next steps
- Set your agent to run on a schedule or when an event occurs. See Activate and manage triggered agents.
- Explore the full set of auto mode capabilities, including skills, subagents, and artifacts, in Create agents with auto mode.
- Build a fixed, step-by-step process with Create your first workflow mode agent.
- Launch an agent from a tested starting point with Start from a template.
See also
- Create agents with auto mode — the complete auto mode reference, including tools, triggers, and advanced capabilities
- Writing effective prompts — write instructions that produce reliable results