

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.
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)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)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)Build your way with open APIs


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.













