KavanahKavanah

AI Agents

Auto-Planning

AI builds your sprint

Smart Triage

Auto-prioritize & assign

Agent Workflows

Automate any process

Risk Detection

Flag blockers early

Platform

Boards & Views

Kanban, timeline, list

Team Spaces

Shared project hubs

Team Chat

Communicate in context

Smart Alerts

AI-curated notifications

Learn

Courses

Two free courses

Blog

Tips and updates

Documentation

Guides and references

Support

Help Center

Get answers fast

Community

Connect with others

Trust & Compliance

SOC 2, ISO, HIPAA, GDPR

PricingApps
Log inGet started

Docs

Documentation

User GuideDeveloper API
+
+

GETTING STARTED

IntroductionCreate an accountYour first project

CORE FEATURES

Task ManagementTime TrackingClient PortalTeam CollaborationTeam AvailabilityMember Skills & AssignmentThe Weekly Team WorkflowThe Deal RoomThe Deal BlotterRequest Intake PagesKVN MethodologyKnowledge Base

DEV & AI

Dev IntegrationSpecs into tasksAI EmployeesAgent Memory, Follow-ups & Scheduled RunsAgent Autonomy & GovernanceAutomations

INTEGRATIONS & APPS

IntegrationsDesktop AppClaude CodeBuilding AppsBrowser Extensions & Privacy

GETTING STARTED

IntroductionCreate an accountYour first project

CORE FEATURES

Task ManagementTime TrackingClient PortalTeam CollaborationTeam AvailabilityMember Skills & AssignmentThe Weekly Team WorkflowThe Deal RoomThe Deal BlotterRequest Intake PagesKVN MethodologyKnowledge Base

DEV & AI

Dev IntegrationSpecs into tasksAI EmployeesAgent Memory, Follow-ups & Scheduled RunsAgent Autonomy & GovernanceAutomations

INTEGRATIONS & APPS

IntegrationsDesktop AppClaude CodeBuilding AppsBrowser Extensions & Privacy
Listen
0:00 / ~12:48
+
+
Claude CodeNextBrowser Extensions & Privacy
KavanahKavanah

© AW3 Technology, Inc. All rights reserved.

Building Apps

A Kavanah app adds your own capability to the workspace in two ways: as tools the AI agent can call, so anyone can just ask for it in chat, and as screens of your own rendered inside Kavanah that can look native down to the viewer's theme. You build the app in the developer console, host the logic yourself, install it, and both become part of the workspace.

How an app is put together

Kavanah hosts the manifest; you host the code. The manifest declares what your app can do — its tools, their inputs, and the scopes it needs. When the agent decides to use one of your tools, Kavanah sends a signed HTTPS request to an endpoint you run, and your response goes back to the agent as the tool result. There is no code editor in Kavanah and nothing runs on our servers: an app is always a small web service you deploy anywhere.

This is why apps stay useful as they grow — your tool can call your own database, a vendor API, or an internal system that Kavanah has never heard of. Kavanah supplies the agent, the governance and the audit trail; you supply the capability.

Build it end to end

  1. 1Open the developer console. Go to /apps and click Developer console (admins only). Choose New app, then Create app — you get a starter manifest you can edit as a form or as raw JSON.
  2. 2Declare a tool. Give it a name, a description the agent will read to decide when to use it, an input schema, and the scope it needs. The description is the most load-bearing field you will write: it is how the model knows what your tool is for.
  3. 3Host the endpoint. Deploy a small HTTPS service using @kavanah/app-sdk and point execution.tool_endpoint_url at it. The SDK verifies the signature and dispatches to your handler.
  4. 4Test from the console. Each tool card has Send test call, which signs and sends the exact payload the live agent would — same body shape, same headers, plus a test flag. If that works, the agent path works.
  5. 5Install it. Private apps skip review entirely and are installable in your own workspace immediately. On the install screen, grant the scopes and tick Allow the Kavanah agent to use this app's tools.
  6. 6Turn the agent switch on. In Settings → AI Agent, enable Community app tools. This is a workspace-wide master switch, it is off by default, and until it is on the agent cannot see any app tool no matter what an install granted.
Three switches must all be on before the agent will call your tool: the per-install agent access toggle, the workspace-wide Community app tools setting, and a generated signing secret for the install. If a tool you just built never gets called, check those three first — in that order.

What the agent sees

Your tools are namespaced app__<slug>__<tool> so they can never collide with a built-in, and they are offered to every member's agent in the workspace — an install is workspace-wide, not per-user. Kavanah exposes the tools from the exact app version you installed, so a publisher cannot add tools or swap your endpoint on an already-installed workspace; upgrading is an explicit re-install.

Every app tool is treated as an external write: it is excluded from the agent's safe autonomous mode, governed by your workspace action policy (so it can be set to require approval), recorded in the action ledger, and withheld from restricted personas and read-only runs. Tool output is fenced as untrusted, validated against your declared output schema, and size-capped.

Calling Kavanah back

Each install can mint a per-app API key (kvn_app_…). It authenticates as the app, not as the person who installed it, so it has no workspace permissions at all — its granted scopes are the entire authorization. That means it can reach only the endpoints Kavanah has opened to apps:

  • tasks, projects, clients, discussions, project-files and time-tracker — read with …:read, create and update with …:write.
  • Nothing destructive. No delete endpoints — and no whole-bundle project write either, since omitting a project from it would erase that project's work. Destructive changes go through an agent tool instead, where your workspace's action policy can park them for approval.
  • Member-level visibility. An app sees no more than a plain member of the workspace — a project the install cannot see returns 404, so private work stays private.
  • No borrowed credentials. An app key never carries the installing user's connected accounts, so it cannot reach their Google Drive or any other linked service.
Calling back with the app SDK
import { KavanahClient } from "@kavanah/app-sdk";

const kavanah = new KavanahClient({
  apiKey: process.env.KAVANAH_APP_KEY!,   // kvn_app_...
  baseUrl: "https://kavanah.ai",
});

const tasks = await kavanah.listTasks("all");
await kavanah.createTask({ title: "Follow up", projectRef: "1" });

Anything outside that list returns 403 by design. The authoritative surface is every operation marked x-app-scope in the OpenAPI spec:

GET/openapi.yaml

Screens: putting your own UI inside Kavanah

An app can do more than hand tools to the agent — it can render its own pages inside Kavanah. Declare them in the manifest's ui array. Each entry is a page you host, loaded in a sandboxed iframe, and it can look indistinguishable from the rest of Kavanah.

Declaring screens
"ui": [
  {
    "id": "overview",
    "type": "page",
    "mount": "nav",
    "title": "Pipeline overview",
    "description": "Deals by stage, straight from our CRM.",
    "entry_url": "https://example.com/kavanah/overview",
    "scope": "clients:read"
  },
  {
    "id": "settings",
    "type": "settings",
    "mount": "app_settings",
    "title": "Connection settings",
    "entry_url": "https://example.com/kavanah/settings",
    "height": 420
  }
]
  • id — lowercase, URL-safe, unique in the app. It appears in the page URL: /apps/<slug>/<id>.
  • type and mount — where it renders. page/nav is a full screen reachable from Apps; settings/app_settings renders inline in your app's row on the Apps page. Each type accepts only the mounts that make sense for it — the console's dropdown is generated from the same table the validator uses, so it cannot offer an invalid pairing.
  • entry_url — https, a public host, and not a Kavanah URL. A surface must be a separate origin; that separation is what the sandbox depends on.
  • scope — optional. If set, the screen is hidden unless the workspace granted that scope, and it must be one your app requests.
  • height — optional starting height in px. Your page can resize itself at runtime, so this only governs first paint.

Making it look native

Kavanah does not ship its React components — a cross-origin iframe could not import them, and freezing them into a public package would stop us improving them. What you get instead is the design-token contract: load one stylesheet, and the host pushes Kavanah's live values for colors, radii, elevation and the type scale. Your screen then matches whatever the viewer is actually using — dark or light, their accent, even their font-size accessibility preference — and follows along when they change it.

A complete surface page
<!doctype html>
<html>
  <head>
    <link rel="stylesheet" href="https://kavanah.ai/kavanah-app-ui.css">
  </head>
  <body class="kvn-root">
    <div class="kvn-page">
      <h1 class="kvn-title">Pipeline</h1>
      <div class="kvn-card">
        <div class="kvn-card__header">
          <h2 class="kvn-card__title">Open deals</h2>
          <span class="kvn-badge kvn-badge--accent">12</span>
        </div>
        <button class="kvn-btn kvn-btn--primary" id="sync">Sync now</button>
      </div>
    </div>

    <script type="module">
      import { connectKavanah } from "https://esm.sh/@kavanah/app-sdk/ui";

      const kvn = await connectKavanah();
      kvn.autoResize();

      // Send the signed token to YOUR backend — never trust the client fields.
      const res = await fetch("/api/deals", {
        headers: { Authorization: `Bearer ${kvn.token}` },
      });

      document.getElementById("sync").onclick = () => {
        kvn.toast("Sync started", "success");
      };
    </script>
  </body>
</html>

The stylesheet gives you buttons, cards, inputs, tables, badges, tabs, alerts, empty states, spinners and skeletons — every class prefixed kvn-, every value driven by a --kvn-* custom property. Use those properties in your own CSS too; that is how custom UI stays in step with the theme. Everything has a sensible fallback, so a screen opened directly in a browser tab still renders correctly while you develop.

Knowing who is looking

Your page is on your own origin, so nothing the browser tells it can be trusted — a query parameter naming a workspace is an invitation to read someone else's data. Kavanah therefore mints a short-lived surface token, signed with the same install signing secret you already use to verify tool calls. Send it to your backend and verify it there. The verified claims are the only authority.

Verifying on your server
import { verifySurfaceToken } from "@kavanah/app-sdk";

const result = await verifySurfaceToken(token, process.env.KAVANAH_INSTALL_SECRET!, {
  audience: "my-app-slug",          // always pass this
});
if (!result.ok) return new Response("Unauthorized", { status: 401 });

const { workspace_id, install_id, surface_id, granted_scopes } = result.claims;
// result.claims.user_id exists only if you set execution.include_actor_identity
The token expires in five minutes and the host refreshes it silently, so read kvn.token at the moment you make a request rather than caching it. It proves who is embedding you — it is not a Kavanah API credential. Calling back into Kavanah still needs your kvn_app_… key.

What a screen can and cannot do

  • It can resize itself, raise a Kavanah toast (prefixed with your app name, so users always know it was you), send the user to an in-app page, ask for a fresh token, and close itself when it is in a panel.
  • It cannot navigate the browser away from Kavanah, open modal dialogs over the app, read the page that embeds it, or touch the viewer's Kavanah session. Navigation requests are matched against a fixed list of in-app destinations; anything else is ignored.
  • Screens come from the version you installed, exactly like tools. A publisher cannot repoint an embedded screen at a different server on workspaces that already installed it.
  • An admin can switch a single app's screens off from the Apps page without uninstalling it — useful if a screen misbehaves but you want to keep the keys and the signing secret.

To try one: open the developer console, select your app, and use Preview on the screen card. It runs the real handshake against your real install, so anything that would break in production breaks there — a blocked frame, a page that never calls connectKavanah(), a rejected token.

When a screen doesn't appear

Four things account for nearly every blank or stuck surface, in the order they are worth checking:

  • Your host blocks embedding. This is the most common one and it is silent — the frame simply never renders. Check for X-Frame-Options: DENY or a restrictive Content-Security-Policy: frame-ancestors on your page. A Vercel project with Deployment Protection enabled does exactly this: it answers 302 to a login redirect and sends X-Frame-Options: DENY, so a protected preview or team deployment can never be a surface. Turn protection off for that project, or host the surface somewhere public. Verify with curl -sI <your entry_url> — you want a 200 and no framing headers.
  • No signing secret on the install. Kavanah refuses to embed a surface it cannot mint a token for, and says so. Generate one from Apps → Installed → Connect.
  • You published a new screen but did not re-install. Surfaces come from the version the workspace consented to, so a screen added in a new version reads as Surface not found until someone re-installs and approves it. That is deliberate.
  • The page never calls connectKavanah(). Without the handshake the host has no one to send the context to, and gives up after 15 seconds.
A cold start is not a failure. A serverless surface that has not been hit in a while can take several seconds on first load; Kavanah keeps a loading state up until your page reports content, so let it finish before assuming something is broken.

Scopes

Scopes are how an app states its intent up front and how a workspace consents to it. There are two families. Data scopes — tasks, projects, clients, messages, files, time_entries, each :read or :write — control both what the REST key can call and whether a tool is exposed at all. Action scopes — such as external_send, finance or destructive — mirror the agent's action categories and act as a ceiling that the workspace action policy still governs at call time.

Grants are re-checked on every single request, not frozen at mint time. Narrowing an install, disabling it, or uninstalling immediately narrows or cuts off every key and tool it ever issued.

Or ask the agent to build it

Everything above can be driven from chat by a workspace admin. Tell the agent what the app should do and where it will be hosted; it drafts a manifest that already passes the validator, shows it to you, creates the app, and generates the complete starter project for the server half — one handler per tool, the signed-request route at the path your manifest declares, a page per screen, and a README with the deploy steps. Once you have deployed it, the agent can install the app, grant scopes, check that the endpoint answers, send a signed test call and show you exactly what your server replied, publish new versions, and roll one back.

  • Two things it will not do. It cannot mint the install's signing secret or an API key — both are shown once, on the Apps page, and belong in your app's environment rather than in a chat transcript — and it cannot switch on app tools for the agent (Settings → AI Agent).
  • A drafted manifest may carry a placeholder endpoint (https://example.com/…) if you have not named a host yet. The manifest's warnings and the generated README both say so; publish a version with the real URL before installing.
  • Test calls run your real handler. When the agent sends a test call, your server executes the tool with test: true in the payload and an X-Kavanah-Test header. Handle that flag if the tool has side effects you would not want from a test.

Publishing

  • Private — auto-approved and installable in your own workspace right away. This is the path for internal tools, and most apps never need anything else.
  • Public — submit for operator review before it can be listed for other workspaces.

Current limits

  • Two screen mounts are live. nav (a full page under Apps) and app_settings (inline on the Apps page) render today. task_panel, project_panel and dashboard_widget validate and are stored, but nothing displays them yet — declare them only when you are ready for them to appear.
  • Only lifecycle webhooks fire. Install, enable, disable and uninstall events are delivered; data events such as task.created are accepted in the manifest but not yet sent, and delivery is best-effort rather than queued.
  • Schemas use a subset of JSON Schema. Object types, properties and required fields are enforced; $ref is rejected, and formats, enums and numeric bounds are not enforced at runtime.