Skip to main content

Choose how to build your agent

Glean provides several ways to create an agent. Start by choosing a mode, then choose the entry point and starting asset that fit your experience. Independent Agents use a distinct execution model when work must continue with an agent-owned identity.

tip

For most use cases, start with Auto mode. Describe the outcome, review the generated draft, and switch to Workflow mode when you need more predictable execution or manual control.

The build hierarchy​

Modes​

  • Auto mode: Describe an outcome in natural language. Glean plans the work, selects available capabilities, and creates a draft that you can refine and test. See Create agents with Auto mode.
  • Workflow mode: Define a fixed sequence of steps, tools, branches, and hand-offs. See Create your first Workflow agent.

Entry points​

  • Agent Builder: Use the visual builder to configure, inspect, test, and publish agents. It supports Auto mode and Workflow mode.
  • Natural-language Workflow creation: Describe a structured workflow and let Agent Builder generate initial Workflow mode steps. You can then edit the steps manually or with natural language. See Create a Workflow agent using natural language.

Starting assets​

  • Templates: Start with a pre-built agent for a common workflow, then review its instructions, tools, knowledge sources, and requirements. See Agent templates.

Code-based path​

Distinct execution model​

  • Independent Agents: Use an agent-owned identity, supported presence, and approved credentials when a workflow must monitor events or continue without the user who started it. See Independent agents overview.

Decision table​

Choose this pathPredictabilityRequired controlComplexityTechnical experienceIdentity requirementsExecution model
Auto mode in Agent BuilderAdaptiveReview and refine the generated planLow to mediumNo coding requiredRuns with the user or configured agent accessUser-started, scheduled, or supported triggered runs
Workflow mode in Agent BuilderHighConfigure each step, branch, and hand-offMedium to highNo coding required; workflow design experience helpsRuns with the user or configured agent accessExplicit step sequence
Natural-language Workflow creationHigh after refinementStart with generated steps, then edit the workflowMediumNo coding requiredSame as Workflow modeExplicit step sequence
TemplateDepends on the templateCustomize an existing configurationLow to mediumNo coding requiredDepends on the templateDepends on the template
Headless builderAdaptiveManage the agent files and tests in codeMedium to highCoding environment and Glean pluginDepends on the agent configurationAuto mode execution
Independent AgentDepends on the workflowGovern identity, credentials, triggers, and write toolsMedium to highAgent-building and administrative experienceAgent-owned identity or approved service credentials may be requiredContinues without an active user session

The table describes the usual design trade-offs. Features, triggers, tools, identity options, and publishing controls depend on your Glean deployment.

A practical starting sequence​

  1. Describe the outcome and try Auto mode.
  2. Start from a template if a close match exists.
  3. Review the draft with representative inputs and edge cases.
  4. Move to Workflow mode when you need explicit branches, fixed hand-offs, or repeatable step execution.
  5. Choose an Independent Agent only when the workflow needs its own identity or must continue without an active user session.
  6. Use the headless builder when you need a code-based development workflow.

For the feature and deployment details that affect each path, see the Feature and availability matrix.