Skip to main content

Building Agents with Glean

Glean provides multiple ways to build AI agents that can search and reason over your organization's knowledge. This guide helps you choose the right approach and get started with building agent-powered applications.

Choose Your Approach

Comparison & Decision Guide

ApproachComplexityFlexibilityTime to DeployBest For
Direct APIHighMaximumMediumCustom integrations, multi-language
LangChainMediumHighFastPython ecosystem, rich tooling
MCPLowMediumFastIDE integration, standardized tools
Glean Agent ToolkitMediumHighMediumCross-platform compatibility, multi-framework tools

Questions to Consider

  1. What's your technical background?

    • Non-technical → Agent Builder
    • Python developer → LangChain
    • Multi-language → Direct API
  2. Where will the agent run?

    • IDE/Editor → MCP
    • Web application → Direct API
    • Multiple frameworks → Glean Agent Toolkit
  3. How much customization do you need?

    • Simple Q&A → Agent Builder
    • Complex workflows → Direct API
    • Multi-framework tools → Glean Agent Toolkit

Authentication & Setup

All approaches require Glean API credentials:

  1. Get API Token: Request a user-scoped API token
  2. Required Scopes: chat, search, agents (depending on usage)
  3. Environment Setup: Configure your Glean instance and token

Need a No-Code Solution?

For creating agents without writing code, use Glean's built-in Agent Builder:

Glean Agent Builder

Create agents with drag-and-drop interface, pre-built templates, and custom instructions. Perfect for business users and rapid prototyping.

The Agent Builder provides a visual interface for creating agents directly in Glean. Agents created this way can still be accessed programmatically via the Agents API for integration with your applications.

Next Steps