# Introduction
What PandaDesk is, what it does for your customers and your team, and how the pieces fit together.
PandaDesk puts an AI support chat on your website. It answers visitors from your own content (your docs site, files, help-center articles and pinned answers) and hands the conversation to your team when it can't.
## What you get
| Piece | What it does |
|---|---|
| **Chat widget** | One script tag adds a chat bubble to your site. Visitors ask questions and get answers in seconds. See [Install the chat](/docs/install-chat). |
| **AI agent** | Searches your knowledge, answers with what it finds, asks one clarifying question when a detail is missing, and offers your team when the answer isn't there. See [AI agent](/docs/ai-agent). |
| **Knowledge sources** | Crawls your docs or marketing site and imports PDF, Markdown, DOCX and TXT files, so answers come from your own words. See [Knowledge sources](/docs/knowledge-sources). |
| **Help center** | A public help center for each app at `https://pandadesk.app/h/
`: ```html ``` The page shows your real key. Deploy, then open a page of your site. The step completes the first time the chat loads there. See [Install the chat](/docs/install-chat) for framework-specific snippets, the JavaScript API and troubleshooting. ## Next steps - Set [response guidelines, guardrails and scenarios](/docs/ai-agent) for the AI. - Identify logged-in users with [signed identity](/docs/signed-identity). - Invite your team: see [Team and roles](/docs/team-and-roles). - Check **Not answered** regularly and turn common questions into pinned answers or articles. --- # Concepts The handful of terms PandaDesk uses (workspaces, knowledge, hand-offs, conversation statuses, contacts and tokens) and how they relate. A short glossary of the terms you'll see across the dashboard, the docs and the MCP tools. ## Account and workspaces - **Account.** You, signed in with your email. Your plan belongs to your account and covers every workspace you own. - **Workspace** (also called an **app**). One website or product. Each has its own knowledge, chat, help center, inbox, team and settings. Your plan sets how many you can own: 3 on Starter, 10 on Pro. - **Slug.** The workspace's short name in URLs, e.g. `my-app` in `https://pandadesk.app/app/my-app` and `https://pandadesk.app/h/my-app`. MCP tools and CLI commands take it as `workspace`. - **Public key.** The `pk_…` value in your embed snippet. It identifies the workspace and is safe to put in page HTML. ## The chat - **Chat widget** (messenger). The bubble and chat window on your site, added with one script tag. See [Install the chat](/docs/install-chat). - **Allowed websites.** The origins (`https://example.com`, `http://localhost:3000`) where the chat may load. It refuses to load anywhere else. A bare domain also covers its `www.` version. See [Security and privacy](/docs/security-and-privacy). - **Visitor.** Anyone chatting. Without signed identity they're anonymous and get a stable label like "Visitor 4F2A". - **Signed identity.** Your backend signs who is logged in, so the team sees a verified name and email, the person sees their conversations on any device, and [lookups](/docs/lookups) can fetch their own data. See [Signed identity](/docs/signed-identity). ## Knowledge The AI only answers from these: - **Sources.** Websites PandaDesk crawls (re-synced daily) and files you upload (PDF, Markdown, DOCX, TXT). Each page or file becomes a **document**, split into searchable **passages**. - **Articles.** Pages you write in PandaDesk. Published ones appear in your [help center](/docs/help-center) and are used for answers. Drafts aren't. - **Pinned answers.** Your exact wording for a specific question. When a visitor asks that question as written, PandaDesk replies with it directly. Pinned answers also win over other passages when they disagree. - **Not answered** (gaps). Questions the AI couldn't answer, counted and grouped, so you know what to add. - **Search by meaning.** PandaDesk matches questions to passages by meaning as well as by keyword, so "when could I be living there?" can find a page about "the whole process takes six months". ## Conversations - **Hand-off.** The AI passes a conversation to your team: when the visitor asks for a person, accepts the AI's offer, or after two questions in a row it couldn't answer. Your team gets an email alert, and the conversation gets an AI-written summary. - **Statuses:** | Status | Meaning | |---|---| | AI handling | The AI is answering; your team hasn't been needed | | Open | Waiting for your team | | Pending | Your team replied and is waiting for the customer | | Snoozed | Hidden until a time you pick, or until the customer writes again | | Resolved | Done. The customer is asked for a rating. A new message reopens it | - **Private note.** A note on a conversation or contact that only your team sees. Notes are never shown to visitors or returned by the public chat API. - **Contact.** A person who has chatted, with their identity, last visit (page, browser, local time), conversation history and team notes. You can block a contact. See [Contacts](/docs/contacts). - **CSAT.** The 1–5 rating a customer gives after a conversation is resolved. See [CSAT](/docs/csat). ## Usage - **AI answer.** One AI reply to one customer message, however many searches it took. These count against your plan's monthly allowance (1,500 on Starter, 7,500 on Pro, across all your apps). Pinned answers, cached repeats and small talk ("hi", "thanks") are free. When the allowance runs out, new questions go straight to your inbox until the month resets. - **AI answers per day.** A per-workspace safety cap (500 by default), set under Settings → Security. After that many AI answers in a day, new questions go straight to your team. ## Tokens - **Connected app.** A coding agent you approved in the browser (OAuth). It acts as you, in every workspace you belong to, and can create new ones. Disconnect it any time under **Connect AI agent → Connected apps**. - **Personal token** (`pda_…`). For the CLI, scripts and agents that can't open a browser. Created under **Connect AI agent → Use a token instead**, with the same reach as a connected app. It's shown once; revoke it any time on the same page. - **Workspace token** (`pd_…`). An older kind, created by admins under Settings, scoped to one workspace. It still works. - **Signing secret.** Signs webhook and lookup requests so your servers can check they came from PandaDesk. See [Webhooks](/docs/webhooks). - **Identity secret.** Signs your logged-in users for [signed identity](/docs/signed-identity). Keep it on your server only. --- # Connect your AI agent Let Claude Code, Cursor, Codex or Claude Desktop set up and run PandaDesk through the MCP server, plus the PandaDesk skill and CLI. Everything you can do in the dashboard, a coding agent can do from your editor. It can set up a workspace, import your docs, style the chat, add it to your code, check it's live, tune the AI and work the inbox. It connects to the PandaDesk MCP server at `https://pandadesk.app/api/mcp`. You sign in once in your browser; there's no token to copy. ## What your agent can do - **Set up:** create workspaces, import your site and docs, write articles and pinned answers, watch indexing. - **Style:** brand color, greeting, bot name and avatar, starter questions, the bubble and its corner. - **Install:** - get the embed code for your framework; - wire up [signed identity](/docs/signed-identity) for logged-in users; - allow your domains; - check the chat is live. - **Tune:** guidelines, guardrails, scenarios and [lookups](/docs/lookups) for the AI. Test questions before customers ask them. - **Inbox (Pro):** conversations waiting for a person, replies or drafts, notes, labels, assignment, contacts and reports. The full list of tools is in the [MCP reference](/docs/mcp-reference). ## 1. Connect your agent Add PandaDesk to your agent with one command (or one setting). The first time it connects, it opens PandaDesk in your browser. You sign in if needed, check what it's asking for, and click **Allow**. The dashboard's **Connect AI agent** page (also step 2 of Setup for new accounts) shows the same steps. ### Claude Code ```bash claude mcp add --transport http --scope user pandadesk https://pandadesk.app/api/mcp ``` Then in Claude Code type `/mcp`, pick **pandadesk** and choose **Authenticate**. Your browser opens; click **Allow**. Optionally, add the PandaDesk skill, which teaches Claude the setup and inbox playbooks: ```bash mkdir -p ~/.claude/skills/pandadesk && curl -fsSL https://pandadesk.app/skill/SKILL.md -o ~/.claude/skills/pandadesk/SKILL.md ``` ### Cursor Add this to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` in your project: ```json { "mcpServers": { "pandadesk": { "url": "https://pandadesk.app/api/mcp" } } } ``` In **Cursor Settings → MCP**, click **Needs login** next to pandadesk, then **Allow** in the browser. ### Codex ```bash codex mcp add pandadesk --url https://pandadesk.app/api/mcp codex mcp login pandadesk ``` The second command opens your browser; click **Allow**. ### Claude Desktop and claude.ai In **Settings → Connectors**, choose **Add custom connector**, name it PandaDesk and use the URL `https://pandadesk.app/api/mcp`. Click **Connect**, then **Allow** in the browser. ### Terminal (CLI) The CLI uses a token instead of a browser sign-in (see [Tokens](#tokens) below). Log in once; it's saved to `~/.config/pandadesk`: ```bash npx pandadesk login --token pda_YOUR_TOKEN npx pandadesk tools ``` See the [CLI reference](/docs/cli-reference). ## 2. What the approval means When you click **Allow**, the agent acts as you in every workspace you belong to, with your permissions: it can do what you can do in the dashboard, and nothing more. - **Approvals renew themselves.** The agent gets a short-lived access token (one hour) that it renews in the background. It stays connected for up to 90 days of not being used. - **You can disconnect any time.** Every approved agent is listed under **Connect AI agent → Connected apps**. **Disconnect** stops it immediately. - **Only allow what you started.** The app name on the approval screen is how the app describes itself. Only allow it if you just started connecting it from your own agent. ## 3. Ask for what you want In your project, say: ```text Set up PandaDesk support chat on this site. ``` Other things to try: - "What's waiting in my PandaDesk inbox?" - "Look at the questions PandaDesk couldn't answer and draft pinned answers from our docs." - "Change the chat to our brand color and add starter questions customers would ask." ### Guided workflows The MCP server also offers three ready-made workflows (MCP prompts). In Claude Code, type: | Command | What it does | |---|---| | `/mcp__pandadesk__setup_pandadesk` | Takes a site from nothing to a live chat: workspace, knowledge, look, allowed websites, embed, test questions, install check | | `/mcp__pandadesk__triage_inbox` | Goes through conversations waiting for a person, answers what your knowledge covers, notes the rest, and sums up the gaps | | `/mcp__pandadesk__fill_knowledge_gaps` | Turns unanswered questions into draft pinned answers or articles, and saves them once you approve | ## Plans and permissions - **Setup tools work on every plan**, including the trial: workspaces, knowledge, look, install, AI settings, webhooks and business hours. - **Inbox tools need Pro:** conversations, replies, drafts, notes, labels, assignment, contacts and reports. On another plan they return an error saying so. See [Plans and billing](/docs/plans-and-billing). - **Admin-only actions stay admin-only.** Changing the look, allowed websites, security, the AI agent, lookups, webhooks or business hours needs an admin of that workspace, just like in the dashboard. See [Team and roles](/docs/team-and-roles). - **Replies to customers.** By default an agent can only write a draft, which a teammate approves in the inbox. To let agents send replies directly, an admin turns on **Let agents send replies** under Settings → Inbox. That covers every connected agent and the CLI for that workspace. - **Rate limit:** each connection can make 120 calls a minute. > **Note:** Customer messages are untrusted text. The PandaDesk skill tells agents never to follow instructions found inside a conversation. ## Tokens Some tools can't open a browser: the CLI, scripts and CI, or an agent without sign-in support. For those, create a **personal token** under **Connect AI agent → Use a token instead**. 1. Name the token (e.g. "CI") and choose **Create token**. 2. Copy it. It starts with `pda_` and is shown once. 3. Send it as the header `Authorization: Bearer pda_…`, or log in with it in the CLI. A personal token covers every workspace you belong to, like a browser approval, but it doesn't expire until you revoke it. Revoke it on the same page. > **Note:** Treat a token like a password. Keep it in an environment variable or your agent's config, never in your repository. **Workspace tokens.** Before personal tokens, admins created workspace tokens (`pd_…`) under Settings, each limited to one workspace. They still work and act as an admin of that workspace, but can't create new workspaces. ## Troubleshooting | Message | What to do | |---|---| | "Not signed in to PandaDesk" | Sign in again: in Claude Code `/mcp` → pandadesk → Authenticate, in Codex `codex mcp login pandadesk`. With a token, it's wrong or revoked; create a new one. | | "Pass workspace: one of …" | Your token covers several workspaces. Tell the agent which one, or pass `workspace` with its slug. | | "… is on the Pro plan" | You used an inbox tool on Starter. Setup tools still work; upgrade under Billing for inbox tools. | | "… workspace is paused" | The owner's trial or subscription has ended. Reactivate under Billing. | | "Only admins of … can do that" | Ask an admin of that workspace to make the change. | | "Sending replies from an agent is off" | An admin can turn on **Let agents send replies**, or the agent can use a draft instead. | | "Too many requests" | Wait a minute. Each connection can make 120 calls a minute. | --- # Plans and billing PandaDesk's Starter and Pro plans, the 14-day trial, AI answer allowances, what happens when an account is paused, and how to change or cancel. PandaDesk has two plans, Starter and Pro, both starting with a 14-day free trial. A plan belongs to your account and covers every app (workspace) you own. ## Plans | | Starter | Pro | |---|---|---| | Price | $29 a month, or $290 a year | $99 a month, or $990 a year | | Apps (workspaces) | 3 | 10 | | AI answers a month, across all your apps | 1,500 | 7,500 | | People per app | 3 | Unlimited | | Website pages per app | 500 | 5,000 | | Files per app | 50 (250 MB) | 500 (2,500 MB) | | "Powered by PandaDesk" in the chat and help center | Shown, can be turned off | Shown, can be turned off | | Coding agents: setup tools (MCP and CLI) | Yes | Yes | | Coding agents: inbox tools (MCP and CLI) | No | Yes | Yearly billing costs ten months' price for twelve. Both plans include: - the AI agent, the help center and the team inbox; - pinned answers, gap tracking and article drafts; - email alerts for hand-offs; - reports, webhooks, business hours and lookups. There's no free plan. ## The free trial - Your first subscription starts with a **14-day free trial**. - You add a card in Stripe Checkout when you sign up, and it's charged when the trial ends, unless you cancel before then. - The trial is only for an account's first subscription. If you come back after cancelling, billing starts right away. - If the card is removed during the trial, the trial ends without converting. ## AI answers An **AI answer** is one AI reply to one customer message, however many searches it took. These don't count: - pinned answers that match a question exactly; - repeat first questions served from the answer cache, until your content or AI settings change; - greetings, thanks and other small talk. When your monthly allowance runs out, new questions go straight to your inbox for your team until the month resets. Usage resets on the first of each month (UTC); the Billing page shows the date and how many you've used. Each workspace also has a daily safety cap (500 by default) under Settings → Security. ## Who pays - The person who creates a workspace owns it, and their plan covers it. - Teammates you add don't need their own plan to work in your workspaces. - An app's limits come from its owner's plan: apps, people, pages, files, and whether coding agents can use inbox tools. ## When an account is paused Without an active trial or subscription, the account's apps are **paused**: - the chat doesn't load on your site, and the public chat API refuses requests; - the help center (and its `llms.txt`) is offline; - coding agents and the CLI can't use inbox tools; - in the dashboard, every page except Billing and Setup explains the app is paused. Nothing is deleted. Subscribe again under **Billing** and everything comes back as it was. A failed payment doesn't pause you immediately. While Stripe retries the card, your apps keep working. ## Change plan, card or cancel 1. Open **Billing** in the sidebar. 2. Choose **Change plan or billing details**. This opens Stripe's billing portal. 3. Switch between Starter and Pro or monthly and yearly, update your card, or cancel. When you cancel, your plan keeps working until the end of the period you've paid for. During a trial, cancelling means you won't be charged. > **Note:** Prices are in US dollars. Sales tax and VAT aren't added at checkout. --- # Team and roles Invite teammates by email, make them admins or agents, what each role can do, and how seats work on each plan. Each workspace has its own team. Teammates share the inbox and knowledge; admins also control the settings that change how the chat behaves on your site. ## Roles There are two roles: - **Admin.** Can do everything, including settings and managing the team. A workspace can have several admins. - **Agent.** Works the inbox and knowledge, but can't change how the chat behaves on your site. Whoever creates a workspace is its **owner**. The owner's plan pays for the workspace, and the owner is always an admin: nobody can demote or remove them. | | Admin | Agent | |---|---|---| | Work the inbox: reply, assign, label, snooze, resolve, private notes | ✓ | ✓ | | Contacts: view, add notes, block | ✓ | ✓ | | Knowledge: sources, files, articles, pinned answers, unanswered questions | ✓ | ✓ | | Labels and saved replies | ✓ | ✓ | | Reports | ✓ | ✓ | | Chat appearance (color, greeting, bot name, bubble, starter questions) | ✓ | | | Allowed websites, signed-identity mode, identity secret, daily AI limit | ✓ | | | AI agent settings and lookups | ✓ | | | Business hours and auto-close | ✓ | | | Webhooks and the signing secret | ✓ | | | Round-robin assignment and **Let agents send replies** | ✓ | | | Invite and remove teammates, change roles | ✓ | | | Create workspace tokens (`pd_…`) | ✓ | | Coding agents follow the same rules. An agent you connect (by browser approval or a personal token) acts as you, with your role in each workspace, so an agent connected by a teammate can't change admin-only settings. See [Connect your AI agent](/docs/connect-ai-agent). ## Invite a teammate 1. In your workspace, open **Settings** and find **Invite a teammate**. 2. Enter their email, pick **Agent** or **Admin**, and choose **Send invite**. 3. They get an email with a link to join. If they don't have a PandaDesk account yet, they create one on that page (no plan or payment needed). If they do, they sign in and join. The link works once, for 7 days. Until they join, they show in **Settings → Team** as "Invited, hasn't joined yet", and you can **Withdraw** the invite. Sending a new invite to the same address replaces the old link. The invite only works for the address it was sent to: someone signed in with a different email is asked to sign out first. ### Seats The workspace owner's plan sets how many people each app can have, the owner included. Invites that haven't been accepted yet count too, until they're accepted, withdrawn or expire: | Plan | People per app | |---|---| | Starter | 3 | | Pro | Unlimited | See [Plans and billing](/docs/plans-and-billing). ## Change a teammate's role In **Settings → Team**, pick **Admin** or **Agent** next to their name. The change applies straight away, including to any coding agent they've connected. - The owner is always an admin. - A workspace always keeps at least one admin, so you can't make the last admin an agent. - You can make yourself an agent if another admin remains, but only an admin can change it back. From a coding agent, use `invite_teammate` (with a `role`) and `set_teammate_role`. `list_teammates` shows open invites to admins. ## Remove a teammate In **Settings → Team**, choose **Remove** next to their name. They lose access to that workspace immediately. Admins can't remove themselves, and nobody can remove the owner. ## Assignment - Any teammate can assign a conversation to themselves or to someone else. The assignee gets an email, unless they assigned it to themselves. - Admins can turn on **round-robin** under Settings → Inbox. Each new hand-off then goes to the teammate who was assigned one least recently. See [Inbox](/docs/inbox). --- # FAQ Answers to common questions about how PandaDesk's AI answers, hand-offs, plans, coding agents, data and installation work. Short answers to the questions people ask most. Each links to the page with the details. ## The AI ### Does the AI make things up? No. It only answers from your own content: - published articles; - enabled pinned answers; - the websites and files you imported. Every answer must cite passages it found in that content. If a reply doesn't, PandaDesk throws it away before the visitor sees it. In the inbox, **How was this answered?** under any AI reply shows what it searched and cited. See [AI agent](/docs/ai-agent). ### What happens when it can't answer? It says it couldn't find the answer and offers to pass the question to your team. - It hands off right away if the visitor accepts the offer or asks for a person. - It also hands off after two questions in a row it couldn't answer. Your team gets an email, and the question is added to **Not answered** so you can fill the gap. See [Inbox](/docs/inbox). ### Can visitors reach a person directly? Yes. They can choose **Talk to a person** in the chat, or just ask for one ("can I talk to someone?"), in any language. ### Which languages does it speak? It replies in the visitor's language, even when your content is in another one. ### Will it ask follow-up questions? At most one clarifying question in a row, when a detail it needs is missing, like which plan or an order number. If it still can't answer, it offers your team instead of asking again. ### Can it look up a customer's order or account? Yes, with [lookups](/docs/lookups). They call an endpoint on your backend for the signed-in customer only, so you'll need [signed identity](/docs/signed-identity) set up. Answers that used a lookup are never cached or shown to anyone else. ### Does it learn from my team's replies? When **Learn from team replies** is on, PandaDesk turns resolved conversations your team answered into proposed knowledge, without personal details. Nothing is used until you approve it under Sources. It's on by default for new workspaces. See [Knowledge sources](/docs/knowledge-sources). ## Setup and the chat ### Do I need to code to install it? You paste one script tag into your site, before ``. Site builders like WordPress, Shopify and Webflow have a place for custom code. Or [connect your coding agent](/docs/connect-ai-agent) and it adds the snippet for you. See [Install the chat](/docs/install-chat). ### The chat doesn't show up on my site. Why? Check, in this order: 1. **The website is allowed.** Settings → Security → Allowed websites, or Setup step 5. `example.com` also covers `www.example.com`, but `app.example.com` needs its own entry. 2. **The snippet is on the page** with your workspace's `data-key`. 3. **The app isn't paused.** Billing shows your plan. Your browser console also prints why the chat didn't load. A connected coding agent can run `check_install` to test all of this. ### Can I make the chat look like my brand? Yes. Under [Chat appearance](/docs/chat-appearance) you can set: - the brand color and greeting; - the bot name and avatar; - the header text; - starter questions; - the bubble's icon, shape, label and corner. A live preview shows the result. ## Plans and coding agents ### Is there a free trial? Yes: 14 days on your first subscription. You add a card at sign-up and it's charged when the trial ends unless you cancel. There's no free plan. See [Plans and billing](/docs/plans-and-billing). ### What happens if I run out of AI answers? New questions go straight to your inbox for your team until the month resets (on the 1st, UTC). Pinned answers, cached repeats and small talk never count. ### Do I need Pro to use Claude Code or Cursor with PandaDesk? No, for setup: on every plan, coding agents can create workspaces, import knowledge, style the chat, install it and tune the AI. Inbox tools (conversations, replies, notes, contacts, reports) need Pro. See [Connect your AI agent](/docs/connect-ai-agent). ### Can a coding agent reply to my customers? Only if an admin turns on **Let agents send replies** under Settings → Inbox. Otherwise agents write drafts that a teammate approves in the inbox before anything is sent. ## Data and safety ### What do visitors see of my team's notes? Nothing. Private notes on conversations and contacts are only for your team. They're never shown in the chat or returned by the public chat API. ### What about spam and abusive visitors? - **Abuse and spam:** each abusive or spam message gets a calm reply. After three in a conversation, PandaDesk closes it, marks it **Abusive**, and blocks that visitor from chatting for 24 hours. Abuse never emails your team. - **Bots:** when something looks automated, the visitor is asked to pass a quick Cloudflare check before chatting continues. See [Security and privacy](/docs/security-and-privacy). ### What happens to files I upload? PandaDesk extracts their text to make it searchable and then deletes the original upload. If extraction fails, the upload is kept for 7 days so it can be retried. ### How do I remove PandaDesk? 1. Remove the script tag from your site; the chat disappears. 2. To stop paying, cancel under **Billing → Change plan or billing details**. Your apps pause at the end of the period you've paid for. Nothing is deleted, so you can come back later. --- # Install the chat Add the PandaDesk chat to your website with one script tag, allow your domains, and confirm it's live. The PandaDesk chat is one script tag. Add it once to your site's layout and every page gets a chat bubble that answers from your knowledge and hands off to your team. ## 1. Allow your website The chat only loads on websites you've allowed, plus your own PandaDesk help center. Add every origin the chat runs on under **Settings → Security → Allowed websites** (or in the **Allow your website** setup step). - An origin is the scheme, host and port: `https://app.example.com`, `http://localhost:3000`. - `example.com` also covers `www.example.com`, and the other way round. - Wildcards (`*.example.com`) aren't accepted. Add each subdomain you use. > **Note:** If the chat doesn't appear, check the browser console. The loader prints `[PandaDesk] Messenger not loaded:` with the reason, for example that the site isn't allowed. ## 2. Add the snippet Copy the snippet with your workspace's key from the **Install** page in the dashboard: ```html ``` Put it once per page, before `` (or in `
`: it loads asynchronously and never blocks your page). One snippet covers the whole site. ### Next.js (App Router) ```tsx // app/layout.tsx import Script from "next/script"; export default function RootLayout({ children }: { children: React.ReactNode }) { return (