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

Search
Custom AI, without the complexity
Bring all enterprise knowledge together with secure, permissions-aware search.

Agents
Context-aware agents
Build in any framework and give your agents the full context of your company.

Chatbots
Best-in-class retrieval for any AI app
Deliver grounded answers right inside the tools your team works in everyday.
Get started in minutes.
Search API
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)Copy code
Chat API
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)Copy code
Agent API
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)Copy code
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.
Build in your language
Build in your agent framework
Use Glean where you work

Work AI that works.
Get a demo









