/cookbook:embed-search-chatfrom cookbook
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.
Ships in cookbook. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Build "Embed search & chat in an internal app" following https://developers.glean.com/cookbook/embed-search-chat
Runnable React example with Search Box, Search Results, and Chat
Use nonsecret inputs the user already supplied. Ask only for missing information needed by the selected recipe path, resolving dependent choices before continuing. Do not request credential values in conversation; use the recipe's documented secure sign-in or secret-entry path. Required questions for this recipe are:
Cookie SSO requires the user's normal signed-in browser. Never open or automate the app yourself.
Run the step commands in one shell session, starting in the directory where the project should be
created. A cd in one step still applies to later steps, so do not repeat it. If your tool starts
each command in a fresh process, run each later command from the directory the earlier cd entered.
A step marked (new terminal) runs while an earlier step keeps running: start it in a new shell in
the starting directory, and run the steps after it in that shell.
Copy the React example onto your machine Creates an embed-search-chat folder in whatever directory you run this from. Every command after this one runs inside that folder.
npx -y [email protected] --mode=git gleanwork/glean-cookbook/recipes/embed-search-chat/react embed-search-chat
Install dependencies Installs the pinned Glean Web SDK, React, and Vite dependencies.
cd embed-search-chat && npm install
Find your Glean backend Uses your email once to find the tenant backend and writes VITE_GLEAN_BACKEND to .env.local. If the backend is already known, set that variable manually instead. This is setup-time configuration, not a runtime tenant picker, and it does not request or store an API key.
npm run configure -- --email "<work-email>"
Configure the Web app URL and questions
Open .env.local. Set VITE_GLEAN_WEB_APP_URL to the Web app URL row in Glean Admin > About Glean, such as https://app.glean.com. It is a different value from the backend the previous step wrote, which ends in -be.glean.com. Set VITE_GLEAN_INITIAL_QUERY and VITE_GLEAN_INITIAL_MESSAGE to topics you know your Glean content covers. Both URLs are deployment configuration, not values users enter at runtime.
Open the page Starts Vite and prints a Local URL. Open that URL in a browser where the user is signed in to Glean.
npm run dev
Keep the server running. Capture the exact Local URL it prints and report it as a clickable Markdown link. Do not open or automate the link. Ask the user to click it in their normal browser where they are already signed in to Glean and confirm the page is ready. Then give the first verification action.
Verify search, chat, and the user boundary Confirm autocomplete appears above Search Results, a known query returns accessible content with citations, and Chat answers the configured question. Repeat the check with a second authorized user and confirm neither Search nor Chat reveals content that user cannot access. If a vanity SSO hostname redirects an embedded frame to app.glean.com, confirm the exact Web app URL in Admin > About Glean; never proxy or frame the full app.
Ask me which language to build in before starting: TypeScript, JavaScript.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gleanwork/glean-cookbook --plugin cookbook19 skills in this plugin
/batch-retrieve-documentsRetrieve up to 100 indexed documents you can open in Glean, mixing document IDs and URLs. Documents Glean does not return are listed under warnings./browse-cookbookUse when the user asks what Glean cookbook recipes exist, wants to browse or pick a recipe to build, or asks "what can I build with Glean" — lists the available recipes and points to the matching /cookbook:{recipe-id} command./cookbook-conventionsShared setup, authentication, browser handoff, documentation lookup, Web SDK sizing, and visual conventions for Glean cookbook recipes./customer-360One page per account — status, risks, and a drill-in chat — assembled from whatever your instance already knows about that customer. No CRM export, no separate index./customer-meeting-prep-triggerRegister a calendar Trigger through the Platform Triggers API and deliver one signed event to a small receiver that prints a customer-meeting prep request./human-in-the-loop-agentStart 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.