Connect ChatGPT with scoped browser sign-in.

The ChatGPT and Codex plugin uses OAuth for the owner-selected brand and Support, Sales or Both agents. It can show setup progress, prepare unapproved knowledge and inspect public widget installation. It cannot approve knowledge, enable calls, read transcripts, change billing or create keys.

Follow the dedicated connected setup guide and confirm the actual tools after sign-in. Keep API keys, passwords and verification codes out of plugin prompts and files. Public directory submission is separate from connecting the custom plugin.

Install the website first, then connect a setup key.

Give your coding agent the canonical setup guide, or run the official kawlnow@0.1.3 npm package in your website repository. Python websites can use kawlnow==0.1.0 from PyPI through uvx, without Node.js. No account connection, workspace ID or browser OAuth is needed to begin. The existing versioned first-party 0.1.1 archive remains available for pinned installations.

The installer prepares an inactive HTML/Vite marker or React/Next.js component. Complete its dependency and shared-layout wiring, preserve existing integrations and run the website checks before asking for a key. Without --write the command prints a preview. An inactive scaffold alone is not a completed integration.

Read the public installation manifest for the current runner and machine-readable workflow. Run the installer’s read-only doctor with the verified production HTTPS origin after the local wiring and project checks. Follow its nextActions until it permits key input; a missing or ambiguous layout, dependency or origin needs review first. Doctor does not read a key, contact an account or establish browser execution.

In Installation, select the intended brand and Support or Sales, then create a revocable setup key that expires after 24 hours. Supply it through the hidden terminal prompt, --api-key-stdin or a trusted agent secret facility. Never put it in arguments, prompts, generated files, website code or logs. The key stays in memory.

Resume with connect using the same installer version that created the local plan, after verifying the real production HTTPS origin. Selected-brand commands keep their public --expect-workspace binding and reject another brand before origin changes or activation. The key discovers the public brand ID, merges the verified origin while preserving existing origins, and activates only installer-owned files. Expiry or revocation does not uninstall the connected widget or end existing calls.

Installation keys can read installation context/status, merge verified public origins and run the bounded published-page verifier. They cannot use MCP, access knowledge, change agent wording, approve sources, enable or start calls, change billing or destinations, manage the team or create keys. Optional browser OAuth supports broader scoped setup and knowledge drafting; full-management tokens are separate.

Deploy when authorised, inspect the widget after hydration and navigation, then verify the actual published page. The verifier checks static markup and policy blocks; dynamic scripts may be inconclusive. It does not establish browser execution, microphone audio or human handover. The owner reviews knowledge, tests privately and decides when customer calls go live.

Prepare the inactive Support installation
npm exec --yes --package=kawlnow@0.1.3 -- kawlnow init --channel support --write --json
Check the local integration before requesting a key
npm exec --yes --package=kawlnow@0.1.3 -- kawlnow doctor --channel support --site-origin https://YOUR_PRODUCTION_DOMAIN --json
Prepare an existing Python shared template
uvx --from kawlnow==0.1.0 kawlnow init --channel support --target templates/base.html --write --json
Check the Python template before requesting a key
uvx --from kawlnow==0.1.0 kawlnow doctor --channel support --site-origin https://YOUR_PRODUCTION_DOMAIN --json
After wiring, resume with hidden key input
npm exec --yes --package=kawlnow@0.1.3 -- kawlnow connect --channel support --site-origin https://YOUR_PRODUCTION_DOMAIN --write

How do you embed the web widget?

Paste the script tag just before the closing </body> tag. It adds a button to the bottom-right corner of the page, and visitors who click it type a topic, allow the microphone and talk to your agent in their browser. The data-helpline attribute holds your public workspace ID, which starts with hl_, and data-channel="sales" loads the sales agent instead of support. The snippet holds no secret keys.

Copy your snippets from the dashboard, or have a coding agent call the get_installation MCP tool. Setup context is also available through the scoped installation REST routes. The data-helpline attribute in the snippet comes from an earlier name for the product and is kept so existing embeds keep working.

Calls start only from an allowed origin once customer calls are on. New workspaces start with no origins and calls off, but you can test either agent from the dashboard first. For the full setup order, from approving knowledge to switching on customer calls, follow the guide to adding a voice agent to your website.

  • Add each origin exactly, with its scheme, host and any port but no path, such as https://www.example.com. List www and the bare domain separately if your site uses both.
  • Use HTTPS. Plain http works only for localhost and 127.0.0.1.
  • Each agent takes up to 10 origins, set separately for support and sales.
  • Keep it a classic script. The widget reads document.currentScript, so it does nothing in a tag with type="module".
  • Both widgets can share a page. They stack in the bottom-right corner, and a duplicate tag for the same agent is ignored.
  • The npm-compatible package provides a JavaScript loader and React component that retain one widget per origin, brand and channel for the document lifetime. Its button label and colour come from the saved settings.
  • The call panel loads in an iframe from app.kawlnow.com with microphone access allowed. Audio streams over WebRTC between the visitor’s browser and OpenAI, which processes the conversation. No call audio is recorded, and the transcript is saved as text.
  • If your site sets a Content Security Policy, allow https://app.kawlnow.com in script-src, connect-src and frame-src. The widget adds its styles in an inline style element, so a style-src that blocks inline styles leaves the widget unstyled and out of place, and a policy that requires Trusted Types stops the widget appearing.
  • If your site sends a Permissions-Policy header, allow the microphone for the widget’s origin as well, as in microphone=(self "https://app.kawlnow.com"). Test on a staging page with your real headers first.
Support agent embed
<script
  src="https://app.kawlnow.com/widget.js"
  data-helpline="YOUR_WORKSPACE_ID"
  async>
</script>
Sales agent embed
<script
  src="https://app.kawlnow.com/widget.js"
  data-helpline="YOUR_WORKSPACE_ID"
  data-channel="sales"
  async
></script>

Which credential should you use?

Choose the smallest credential that covers the work. Installation keys use four installation REST operations. Scoped OAuth works with permitted REST routes and MCP tools. Full-management workspace tokens cover advanced management within one brand. Send bearer credentials only in the Authorization header from a trusted tool or server.

Create a 24-hour installation key in Installation after preparing the local website. For OAuth, use your MCP client’s browser sign-in and explicitly choose the brand and Support, Sales or Both agents. Create a full-management token under Developers only when its broader permissions are needed.

  • Management tokens start with hl_sk_; installation keys start with hl_setup_. They are different credentials with separate authorization. Neither belongs in website code, prompts, URLs or logs.
  • Legacy management tokens grant full access to one brand, including approvals, transcripts and other tokens. Installation keys and browser OAuth grants have their own narrower permissions and are not interchangeable with management tokens.
  • The owner can revoke installation keys in the dashboard. A full-management token can revoke a management token with DELETE /api/manage/keys/{id}. Revoke OAuth setup connections separately in Developers. Revocation takes effect on subsequent authorised requests.
  • Creating or revoking a token, switching customer calls or human handover on or off, or changing allowed origins emails the owner’s sign-in address. Notices are rate-limited, and approvals, new sources and other setting changes don’t send one, so check Active tokens and your settings from time to time.
  • Keep tokens in server-side code or trusted tools. The widget never needs one.
Choose a credential by its permissions
ConsiderationUse it forBoundaries and expiry
Installation keyGET workspace/setup and POST setup/configure|verify through REST; discover the brand, merge verified origins and check installation.One brand and one Support or Sales agent, 24 hours, revocable. No MCP, knowledge, wording changes, approval or call enablement.
Setup OAuthPermitted REST routes and MCP tools for safe setup, eligible knowledge reads and unapproved drafts.Explicit brand and agent consent. Access lasts 10 minutes; explicit offline_access and a compatible client allow refresh within an absolute 24-hour grant. No approval, enablement or private transcripts.
Management tokenAdvanced brand settings, exact-revision knowledge approval, conversation summaries and insights over REST/MCP. Complete transcripts and key management use REST.One brand, full management permissions subject to owner-only controls and call-readiness checks. Keep it in trusted tools and revoke it when no longer needed.
Check a full-management token from a trusted terminal
curl 'https://app.kawlnow.com/api/manage/workspace' \
  -H 'Authorization: Bearer YOUR_WORKSPACE_TOKEN'

Which REST endpoints does the management API have?

Call https://app.kawlnow.com with your token in the Authorization header and send JSON bodies. The widget SDK is optional, and management requests use HTTPS. Kawl Now does not send outbound webhooks, so read GET /api/manage/workspace for new conversations.

POST /api/manage/sources always saves a new source unapproved and ignores any approved value you send. Approve it with a separate call to PATCH /api/manage/sources/{id} with {"approved": true, "reviewedRevision": EXACT_READ_REVISION} after a person has read the full text. The voice agent searches only approved sources. GitHub imports and refreshes are always saved unapproved.

Human handover is an early release. Once a UK or US team phone number for an agent has been verified in the dashboard, escalationEnabled in that agent’s settings switches handover on or off, and whoever answers hears a private briefing before the caller is connected. Numbers are verified and changed only in the dashboard, and customer routing is still being tested, so keep your usual contact options on your site.

The OpenAPI 3.1 file at https://app.kawlnow.com/api/openapi describes the Kawl Now Management API, version 0.4.0, and documents the complete current operation list. The 18 examples below cover common management and setup operations; available routes depend on the credential.

  • GET /api/manage/workspace returns your workspace ID, both agents’ settings, usage, sources, the latest 100 conversations, each marked if it was a dashboard test, and your token list.
  • PATCH /api/manage/settings updates the support agent and its widget, changing only the fields you send. An allowedOrigins list replaces the saved one, so include every origin you want to keep.
  • PATCH /api/manage/sales-settings does the same for the sales agent.
  • POST /api/manage/sources adds a document with a title, content and channel.
  • GET /api/manage/sources/{id} returns a source with its full text.
  • PATCH /api/manage/sources/{id} approves a source with {"approved": true, "reviewedRevision": EXACT_READ_REVISION}, withdraws approval with {"approved": false}, or changes its audience separately with the exact reviewedRevision. Read the whole source before approving or widening its audience.
  • DELETE /api/manage/sources/{id} removes a source.
  • POST /api/manage/github imports or refreshes one eligible GitHub text file for support, sales or both; github/scan and github/import select several files at a pinned commit.
  • GET /api/manage/conversations/{id} returns a conversation with its transcript.
  • GET /api/manage/insights returns the support agent’s automatic insights, or the sales agent’s with ?channel=sales. They group recurring questions, reported issues and themes from what callers said in up to the latest 30 completed customer calls in the last 30 days, with exact quotes. Dashboard tests aren’t included, and until a report is ready, the response’s state field says why, such as empty or queued.
  • POST /api/manage/keys creates a token and returns it once.
  • DELETE /api/manage/keys/{id} revokes a token, which stops working straight away.
  • POST /api/manage/notifications/test queues a test email to the owner’s sign-in address, at most once a minute.
  • POST /api/manage/website scans public HTTPS pages into complete unapproved drafts; website/scan and website/import let you select pages first.
  • POST /api/manage/documents imports a bounded batch of selectable-text PDFs as unapproved drafts.
  • GET /api/manage/setup reads setup status for one Support or Sales agent.
  • POST /api/manage/setup/configure merges verified public origins; installation keys cannot change agent wording.
  • POST /api/manage/setup/verify checks published static markup and definite policy blocks without starting a call.
Add a source
# Add a support document, unapproved, for review.
curl -X POST 'https://app.kawlnow.com/api/manage/sources' \
  -H 'Authorization: Bearer YOUR_WORKSPACE_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"channel": "support", "title": "Invite a teammate", "content": "Your checked answer goes here."}'

# Response 201: {"id": "SOURCE_ID"}
Review and approve it
# Read the full text back so a person can check it.
curl 'https://app.kawlnow.com/api/manage/sources/SOURCE_ID' \
  -H 'Authorization: Bearer YOUR_WORKSPACE_TOKEN'

# Once it has been checked, approve it.
curl -X PATCH 'https://app.kawlnow.com/api/manage/sources/SOURCE_ID' \
  -H 'Authorization: Bearer YOUR_WORKSPACE_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{"approved": true, "reviewedRevision": 1}'

# Response 200: {"ok": true}

Which tools does the MCP server provide?

The MCP server is at https://app.kawlnow.com/api/mcp and uses the Streamable HTTP transport. Every JSON-RPC message is its own POST, and the server answers each request with a single JSON object rather than an event stream. Protected operations carry your authorised credential; public initialization, setup-tool discovery and get_installation_guide do not expose account data. It supports protocol version 2026-07-28, which has no sessions, and the 2025-11-25 initialize handshake for older clients. Its serverInfo names kawl-now, title Kawl Now and version 0.1.0, separate from the REST API version.

For ordinary setup, connect an OAuth-capable remote HTTP client to the public MCP URL, complete browser consent and inspect the tools your grant exposes. Installation keys cannot connect to MCP. The canonical guide gives client-specific commands and URL-only configurations; do not copy a full-management token into a setup connection.

The official MCP Registry lists this remote service as com.kawlnow.www/kawl-now. That verified publisher name differs from the client configuration key and serverInfo name kawl-now. The service version is 0.1.0, the REST API version is 0.4.0, and the published npm installer is kawlnow@0.1.3. The Python installer is kawlnow 0.1.0 on PyPI; these installers are not local MCP servers.

The token example below is for trusted full-management clients. Add "type": "http" when your client requires it, such as Claude Code. Pass channel: "sales" to use the Sales agent where supported; Both is a knowledge audience or explicit OAuth grant, not a widget channel. tools/list returns only the tools permitted by the supplied credential.

  • get_workspace reads both agents’ settings, usage, sources, recent conversations and connection status.
  • update_agent takes settings and an optional channel with full-management access. An allowedOrigins list replaces the saved one. Enabling calls requires approved knowledge, saved agent settings, allowed origins and a completed private dashboard test. Handover requires a phone number already verified in the dashboard. Scoped setup uses configure_setup instead.
  • add_knowledge takes a title, content and an optional channel, and always saves the document unapproved.
  • sync_github takes a repo, path and support/sales/both audience, and imports or refreshes an eligible GitHub file unapproved. Bind a refresh with sourceId.
  • list_knowledge lists sources with their channel and approval status.
  • get_knowledge takes a source id and returns its full text for review.
  • approve_knowledge takes a source id and approved set to true or false; approval requires reviewedRevision from the full source readback.
  • list_conversations lists up to 100 recent conversations with their topic, status, length, test flag, summary and feedback, but not full transcripts.
  • conversation_insights takes an optional channel and returns the same automatic insights as GET /api/manage/insights: recurring questions, reported issues and themes from up to the latest 30 completed customer calls in the last 30 days, with exact quotes.
  • get_installation takes an optional channel and returns the embed snippet, allowed origins and whether customer calls are on.
  • import_website scans public HTTPS pages and saves complete unapproved sources for Support only, Sales only or Both.
  • get_installation_guide returns public OAuth-connected setup instructions without reading an account or requesting a key.
  • get_setup_status reads one agent’s setup checklist and published installation result.
  • configure_setup saves setup-safe fields and merges verified public origins without enabling calls.
  • verify_installation checks static published markup without proving audio or browser execution.
  • scan_website previews up to 250 public HTML pages without saving sources.
  • import_website_pages saves selected preview pages as complete unapproved drafts.
  • scan_github previews up to 500 eligible files at a pinned commit.
  • import_github_files imports up to 100 selected preview files without executing code.
  • set_knowledge_audience changes a source to support, sales or both using the exact reviewedRevision; approval stays unchanged.
  • knowledge_gaps compares sampled caller questions with current approved knowledge; full management access is required.
Advanced full-management MCP config from Developers
{
  "mcpServers": {
    "kawl-now": {
      "url": "https://app.kawlnow.com/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_WORKSPACE_TOKEN"
      }
    }
  }
}

What limits apply during the pilot?

Each account’s first 50 conversations are free, and the allowance doesn’t renew. Support, sales and dashboard tests share it, and a conversation counts when its voice session starts. After the free allowance, calls lasting at least 15 seconds cost £2.50 GBP each, plus applicable tax. Shorter calls are free, with no per-minute or overage charges.

  • Browser calls end at a hard limit of 10 minutes for free calls or 30 minutes for paid calls.
  • Each workspace allows 3 calls starting or in progress at once, and 12 new calls a minute.
  • A brand holds up to 500 knowledge sources of up to 50,000 characters each, with titles up to 140 characters and a shared account storage limit of 10 MiB.
  • GitHub previews list up to 500 eligible text and source-code files, with up to 100 selected files, 1 MB each and 20 MB total. Public website scans discover up to 250 pages. PDF batches accept up to 25 files, each at most 2 MiB, 100 pages and 50,000 extracted characters.
  • Product names can be 80 characters, agent names 60, greetings 500, instructions 4,000 and button labels 30. The voice setting takes marin or cedar.

What happens when a request fails?

REST errors return JSON such as {"error": "Source not found."}. Over MCP, tool execution failures return a result with isError set to true, while protocol failures use JSON-RPC error codes. Authentication failures return an OAuth JSON error and WWW-Authenticate challenge, and ingress rate limits can return plain JSON before JSON-RPC parsing. Inspect the HTTP status, challenge and response shape before handling the result.

Call-start failures depend on agent readiness, allowed origins, capacity and billing. After the shared free allowance is used, eligible customer calls require active billing. Installation and management requests do not start a conversation; inspect the actual widget and complete a private dashboard test separately.

  • 400: invalid JSON, or a field that fails validation.
  • 401: a missing, malformed or revoked token.
  • 403: a settings update that sets humanNumber, since team numbers are verified and changed only in the dashboard; one that turns on escalationEnabled before that agent’s team number is verified; or an MCP request with another website’s Origin header.
  • 404: an unknown endpoint, an unavailable source or conversation, a missing GitHub file, or an expired import preview that needs a fresh scan.
  • 409: a stale reviewed revision, an incomplete call-readiness check, a conflicting update or a missing test-email destination. Read the error and current state before retrying; complete missing setup or review work first.
  • 413: the request exceeds that endpoint’s body or byte limit. Document batches have separate bounded multipart limits.
  • 429: a request, import, verification or test-email budget was reached. Wait for the indicated reset or free the required capacity.
  • 500: an unexpected server error. Read current state before retrying a write whose outcome is uncertain.
  • 502: GitHub couldn’t return the file.
  • 503: a required service or capacity is temporarily unavailable.

Reference

Each reference page covers one part of the web widget, the REST API or the MCP server.

Common questions

Does Kawl Now have an API?

Yes. Kawl Now has a REST management API documented in OpenAPI 3.1 and a remote MCP server. Installation keys permit narrow REST setup; scoped OAuth permits setup and knowledge drafts over REST/MCP; full-management tokens permit advanced brand management and exact-revision approval. The widget uses public brand identifiers, never a secret key.

Is there a Kawl Now SDK or JavaScript widget API?

Yes. The official kawlnow@0.1.3 package is published on npm with a local installer, JavaScript loader and React/Next.js component. A separate kawlnow 0.1.0 Python installer is published on PyPI for HTML templates and runs without Node.js. Runnable starters are available at /install. The older first-party 0.1.1 archive remains available; resume any installation with the same CLI version that prepared it. The widget SDK is separate from REST/MCP management, and outbound webhooks are not provided.

Should you use the REST API or the MCP server?

Use REST from server-side scripts with the OpenAPI contract, and MCP from a compatible agent client that discovers permitted tools. Both work on the same brand records, but credential scope controls access. Installation keys use REST only; setup OAuth works over both; full-management access is needed for private conversation data, with complete transcripts returned by REST.

What should you do if a workspace token leaks?

Revoke it under Developers or with DELETE /api/manage/keys/{id}, and it stops working at once. A token can create others, so also revoke any token under Active tokens that you don’t recognise. Then create a new token for your tools, and check for changes you didn’t make: both agents’ greetings, instructions and allowed origins, and which sources are approved. Kawl Now emails the workspace owner when tokens are created or revoked, but approvals and instruction changes send no email.