Skip to main content
Cookbooks

Recipes for building on Glean

Runnable patterns that go from problem to a working demo to scaffolded starter code — with the architecture, auth, and permissions laid out for each.

End-to-end build

Build an engineering portal

The end-to-end showcase — index a developer catalog into Glean, then embed permission-aware search and chat back into the portal your team already uses.

Open the build guide
Combines three recipes
1
Index a developer catalog
Connector SDK
2
Embed search into the portal
Web SDK
3
Ground chat in the catalog
Client API
10 recipes
Call a Glean agent from an A2A client

Discover a published Glean agent's A2A card and run it from any A2A client — multi-turn, streamed, permission-aware.

Acme Answers: a company knowledge Q&A page

The hello-world of Glean apps: one page, one input, one permission-aware cited answer — built two ways, with the Web SDK and with the Chat API.

Connect Glean MCP to your AI tools

Point Claude Code, Cursor, and Claude Desktop at your Glean MCP endpoint and run one enterprise task from each — same context, three surfaces.

Embed search & chat in an internal app

Put permission-aware Glean search and chat directly inside an internal app with the Web SDK, so your team gets answers where they already work.

Index a custom data source

Bring an unsupported source into Glean with the Indexing API — documents, permissions, and people — and see it live in search. This recipe seeds the Acme corpus every other recipe searches.

Multi-step agent with governed tools

Build a Glean agent that plans, retrieves, and acts through a governed custom tool — with a safe fallback when the tool is denied.

IT helpdesk deflection page — no code, on Lovable

Prompt Lovable into an IT helpdesk deflection page on the Glean Chat API — zero hand-written backend, permissions enforced by Glean.

PTO & benefits lookup — no code, on Replit

Prompt Replit Agent into a working HR lookup tool on the Glean Chat API — zero hand-written backend, permissions enforced by Glean.

Permissions-aware RAG

Use Glean's Platform API as the retrieval layer for your own LLM app — every chunk ACL-filtered per user before it ever reaches the model.