Glean Cookbook
Examples and guides for building on the Glean platform — the Indexing API, Platform API, Web SDK, Connector SDK, MCP, and Agents. This repo is the code companion to the Cookbooks section of developers.glean.com. Each recipe includes a runnable scaffold, integration instructions, or a build prompt appropriate to the surface it teaches.
Status: public repository. Individual recipes may be public, unlisted previews, or hidden development work. Visibility alone does not establish that a recipe has been verified.
Build a recipe
This repo is an installable plugin marketplace, so an AI coding host can guide each recipe against
your own Glean instance. Some recipes scaffold a complete project; integration, no-code, and
admin-console recipes stop for the required user action. In Claude Code:
/plugin marketplace add gleanwork/glean-cookbook
/plugin install cookbook
Cursor and Codex read their own manifests from the same repo (.cursor-plugin/, .agents/plugins/)
— install per that host's usual flow.
Then run a recipe, or browse them first:
/cookbook:search-with-discovered-filters # build a specific recipe
/cookbook:browse-cookbook # list what's available and pick one
Fixture-backed presentation demos are opt-in. Launch the coding host with
GLEAN_COOKBOOK_DEMO=true before invoking a supported recipe; otherwise the
plugin does not mention or offer the demo path. Demo runs use bundled sample
data and still hand back the running app as a clickable local URL.
Each recipe checks its prerequisites and asks for the configuration it needs as it goes. Web SDK
recipes leave the local server running and ask you to open its URL in your normal, signed-in browser;
the coding agent must not substitute its isolated browser for your Glean SSO session.
Recipes
| Recipe | Level | Time | Build it |
|---|
| Batch retrieve documents | Intermediate | ~20 min | /cookbook:batch-retrieve-documents |
| Customer 360: an account page built from your own content | Intermediate | ~1 hr | /cookbook:customer-360 |
| Trigger a customer meeting prep request | Beginner | ~20 min | /cookbook:customer-meeting-prep-trigger |
| Embed search & chat in an internal app | Beginner | ~15 min (minimal) | /cookbook:embed-search-chat |
| Approve an agent action from a CLI | Beginner | ~5 min | /cookbook:human-in-the-loop-agent |
| Import a skill from GitHub | Intermediate | ~20 min | /cookbook:import-skill-from-github |
| Build an IT helpdesk page in Lovable | Beginner | ~45 min | /cookbook:no-code-it-helpdesk-lovable |
| Build a PTO lookup page in Replit | Beginner | ~45 min | /cookbook:no-code-pto-lookup-replit |
| Onboarding Hub: a day-one checklist grounded in your own docs | Intermediate | ~45 min | /cookbook:onboarding-hub |
| On-call Copilot | Advanced | ~1.5 hr | /cookbook:oncall-copilot |
| Retrieve a document by URL | Beginner | ~15 min | /cookbook:retrieve-document-by-url |
| Answer an RFP or security questionnaire | Intermediate | ~45 min | /cookbook:rfp-responder |
| Search Glean with discovered filters | Beginner | ~15 min | /cookbook:search-with-discovered-filters |
| Publish a versioned skill bundle | Intermediate | ~20 min | /cookbook:skill-publishing-pipeline |
| Stream a cited Chat response | Beginner | ~20 min | /cookbook:streaming-chat-with-citations |
| Triage one support issue with a Glean Agent | Beginner | ~15 min | /cookbook:triage-support-issue |
| Validate skill publishing | Beginner | ~15 min | /cookbook:validate-and-publish-skill |
Full write-ups for each live at
developers.glean.com/cookbook/{recipe-id}.
Read the code instead