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.

14 recipes

01 · Simple recipes

Start with one clear outcome. Learn the API shape, authentication model, and verification loop without assembling a full system.

Search Glean with discovered filters

Use the official TypeScript API client to search across all of your Glean content by default, or discover datasources and common filter fields before applying an explicit selection to permission-aware Platform Search.

Approve an agent action from a CLI

Start a durable agent run from TypeScript, see the exact tool call it wants to make, and approve or reject it before it happens. The agent only sends you a Slack DM.

Stream a cited Chat response

Use the modern Platform Chat API to send a permission-aware question, continue the conversation, and read server-sent events with the official TypeScript API client's createStream EventStream.

Triage one support issue with a Glean Agent

Give a published support-triage Agent one issue URL or description and get an evidence-backed summary, next diagnostic step, and customer-safe response.

Trigger a customer meeting prep request

Register a calendar Trigger through the Platform Triggers API and deliver one signed event to a small receiver that prints a customer-meeting prep request.

Validate skill publishing

Validate a local SKILL.md, test publishing and retrieval in Glean, confirm the downloaded file matches, and delete the test skill.

Build an IT helpdesk page in Lovable

Paste a prompt into Lovable to get a private page that answers common IT questions from your Glean docs.

Build a PTO lookup page in Replit

Paste a prompt into Replit Agent to get a private page that answers PTO and benefits questions from your Glean docs.

02 · Intermediate recipes

Combine capabilities into useful employee and customer workflows while keeping citations, identity, and permissions visible.

03 · Advanced recipes

Coordinate agents, governed actions, human approval, and operational failure paths in end-to-end builds.