Security

Security and privacy

Where the chat may run, how visitors and tokens are verified, how abuse is limited, and what happens to your data.

This page covers what PandaDesk does to keep your chat, your customers' conversations and your account safe, and the settings you control.

Where the chat can run

The chat only loads on websites you allow, under Settings → Security → Allowed websites (or step 5 of Setup).

  • Each entry is an origin: scheme, host and port, like https://app.example.com or http://localhost:3000. Wildcards aren't accepted.
  • example.com and www.example.com count as the same site. Allowing one allows the other.
  • Requests from any other origin are refused.
  • The browser itself also refuses to show the chat window anywhere else: the chat page sends a Content-Security-Policy: frame-ancestors header listing only your allowed websites and PandaDesk itself.
  • Your public help center on PandaDesk always works.

The workspace key in the snippet (pk_…) is public by design. The allowed-websites list is what stops someone from putting your chat on their site.

Knowing who you're talking to

By default, a name or email your site passes to the chat is shown as Unverified: anyone could have typed it.

With signed identity, your server signs the logged-in user with your workspace's identity secret (HMAC-SHA256), and PandaDesk marks them Verified. A signature is valid for one hour after its timestamp, with 2 minutes allowed for clock differences.

Settings → Security → Identity mode:

Mode Unsigned names and emails
Report only (default) Kept, labelled Unverified
Enforced Dropped

Signed identity is also what lets a visitor see their past conversations on another device. Only verified visitors can use lookups that are marked signed-in customers only.

Keep the identity secret on your server only. Admins can see and rotate it.

Rate limits

What Limit
Chat messages 20 a minute per chat session; 60 a minute per IP address
Starting chat sessions 30 a minute per IP address
Checking for new messages 600 a minute per IP address
"Talk to a person" 5 a minute per session
Typing signals 40 a minute per session
Ratings 10 a minute per session
Leaving an email after a hand-off 5 per 10 minutes per session
AI search box in the help center 6 a minute and 60 a day per IP address
MCP and CLI 120 calls a minute per token
Sign-in 20 attempts per 15 minutes per IP address, and 10 per email
Sign-up 5 an hour per IP address

There's also a daily cap on AI answers per workspace (Settings → Security) and the monthly AI answer allowance of your plan.

Bot checks (Cloudflare Turnstile)

Most visitors never see a bot check. A chat session has to pass one before its next message only when something looks off:

  • it was opened by an automated client, such as a headless browser or a script;
  • more than 8 new chat sessions came from the same address within 10 minutes;
  • it sent more than 20 messages in a minute;
  • its conversation already has an abuse or spam strike.

The check appears inside the chat. Once passed, the message is sent automatically, and that session is trusted from then on.

Abuse and spam

The AI handles abuse itself, without emailing your team:

  1. An abusive or spam message gets one calm reply asking the visitor to keep it respectful.
  2. After 3 such messages in a conversation, the AI stops replying and closes the conversation, marked Abusive in your inbox.
  3. That visitor can't send messages for 24 hours.

Closed-as-abusive conversations never ask for a rating. You can also block a contact yourself; see Contacts.

Prompt injection

Customer messages, earlier conversation and your knowledge are all given to the AI as untrusted material, kept separate from its instructions.

  • The AI is told never to follow instructions found in them, never to reveal its own instructions or your settings, and to keep helping with real questions.
  • Attempts to steer it are flagged in the conversation's How was this answered? details.
  • Answers must cite your own content, or they're thrown away before the customer sees them.

Private notes

Notes on conversations and contacts are stored separately from messages. Nothing that serves the chat or the help center reads them, and nothing that serves the AI. An automated check in PandaDesk's own tests confirms this.

Tokens and passwords

  • Passwords are stored as salted scrypt hashes. Sign-in cookies are HTTP-only.
  • Coding agents sign in through your browser (OAuth 2.1 with PKCE). You approve each one; it gets a one-hour access token that renews itself and stops after 90 days without use. Approvals are listed under Connect AI agent → Connected apps, where Disconnect cuts access immediately. PandaDesk stores only hashes of these tokens.
  • Personal and workspace tokens (pda_…, pd_…), for the CLI and scripts, are shown once, stored only as a hash, and can be revoked on the Connect AI agent page or in Settings at any time.
  • Agents can't reply to customers on their own unless an admin turns on Let agents send replies. Until then they draft and a teammate approves.
  • Webhooks and lookups are signed with your workspace's signing secret, use HTTPS, and never call private or internal network addresses.
  • Lookup auth headers you save are never shown again, only their last four characters.

Your data

  • Storage: conversations, contacts, knowledge and settings are stored in PandaDesk's own Postgres database, on PandaDesk's servers.
  • Search: your content is turned into vectors by a model running on PandaDesk's own servers, not by a third party.
  • AI answers: questions and the relevant passages of your content are sent to an AI model through OpenRouter to write the answer.
  • Email: notification emails, such as hand-offs and replies to customers, are sent through PandaDesk's email provider.
  • Uploaded files:
    • An uploaded file is kept only until its text has been extracted, then deleted. The extracted text stays as knowledge.
    • Files that fail to extract are kept 7 days so you can retry them, then deleted.
  • Chat sessions: a visitor's chat session lasts 90 days in their browser.

With your coding agent

allow_website and remove_website manage allowed websites. update_security sets the identity mode and the daily AI cap. get_identity_secret returns the identity secret, and rotates it with --rotate true. All of these are admin tools, on every plan. Keep secrets in environment variables, never in code.

View as Markdown