Skip to content
Cognolo

Cognolo is in early access, and its hosted service isn’t open yet. This guide describes how the dashboard and the runtime are built to work. Some parts, such as the GitHub App and the code reader, have so far been tried only on sample code. Ask about early access

Guide › Setting up › Install in your app

Add the button

Where the assistant’s button goes, when the install adds it for you, and how to move it.

What it’s for
Adds the button people click to open the assistant. It floats in a corner of your app’s pages, for people who are signed in.
Who does it
Usually nobody: the install adds it when it can. If not, your developer adds one line.
You’ll know it worked when
You see the assistant’s button in a corner of your app after signing in.

Asking someone else to do it

Copy this and send it to your developer, or paste it into an AI coding assistant working in your app:

Please add the Cognolo assistant button to our app: put `<CognoloAssistantPanel />` (from `components/cognolo-assistant.tsx`) in the layout our signed-in pages share, right after `{children}`. Details are in Cognolo’s guide, “Add the button”.

For your developer

The button and its panel are in components/cognolo-assistant.tsx, as <CognoloAssistantPanel />. It goes in the layout your signed-in pages share, right after {children}, so it shows on every signed-in page and never to someone signed out.

  • npx cognolo init adds it for you when it can tell which layout is for signed-in pages, and only if your app doesn’t show the assistant already. It adds one import and that one line, and writes the file only if it hasn’t changed since it was read.
  • Otherwise add it yourself. The checklist says where. Make the change always leaves this to you for now, as it can’t see your app’s files.
  • It floats in a corner of the screen, so it needs no room in your design. If something else sits in that corner, add side="left" in components/cognolo-assistant.tsx.
  • To put it in your own header instead, like a menu item, move the line there and style the button to match.

Where the panel opens, and how it looks, can also be set on the Look page: see How the assistant looks.

Next

Add the settings.