API
Build your own AI agents on full enterprise context.
Context is the next data platform. Glean provides the foundation for chatbots and agents to become the new tools of work.



Build on Glean



Get started in minutes.
from glean.api_client import Glean
with Glean(api_token="YOUR_GLEAN_API_TOKEN", instance="your-company") as glean:
res = glean.client.agents.create_and_wait_run(
agent_id="agent_123",
input={"query":"Analyze monthly sales performance"}
)
print(res)from glean.api_client import Glean
with Glean(api_token="YOUR_GLEAN_API_TOKEN", instance="your-company") as glean:
res=glean.client.chat.create(
messages=[{“fragments":[{“text”: “Summarize our Q4 goals”}]}]
)
print(res)from glean.api_client import Glean
with Glean(api_token="YOUR_GLEAN_API_TOKEN", instance="your-company") as glean:
res = glean.client.search.search
(query="vacation policy")
print(res)Build your way with open APIs
Indexing SDK
Bring custom, permission-aware data into Glean alongside 100+ out-of-the-box connectors.
Web SDK
Embed Glean’s UI in your apps to power context-aware chatbots and agents where work happens.
Agent toolkit
Build agents in your preferred framework — OpenAI, LangChain, Google ADK, CrewAI, and more — all grounded in the full context of your enterprise.
Remote MCP servers
Run Glean in MCP-enabled IDEs and apps like Cursor, VS Code, Windsurf, and Claude Desktop.
Custom actions
Automate your work with 100+ native actions, or create your own using MCP and the OpenAPI spec.

Explore more resources

The AWARE Framework: The New Rules of AI Security
The AWARE Framework: The New Rules of AI Security

How to get your CISO’s green light on AI agents
How to get your CISO’s green light on AI agents
Glean Security Showcase: Deploy AI Agents with Confidence.
Glean Security Showcase: Deploy AI Agents with Confidence.
FAQs
Developers can build AI agents, chatbots, search experiences, and context-aware enterprise applications on Glean’s search and context platform.
Glean provides APIs and tools for search, chat, agents, indexing, web embedding, remote MCP, and custom actions.
Yes. The Indexing SDK lets teams add custom, permission-aware data alongside Glean’s existing connectors.
Yes. Glean supports agents built with preferred frameworks such as OpenAI, LangChain, Google ADK, CrewAI, and others.
Yes. The Web SDK helps teams embed Glean UI and context-aware chat or agent experiences where work already happens.
Yes. Teams can automate work with native actions, create custom actions using OpenAPI and MCP, and use Glean in MCP-enabled IDEs and apps.
Work AI that works.










