Skip to main content
Most of a ShieldLabs integration is glue code: load the snippet, identify your signed-in users, verify a webhook, turn a Risk Score into a decision. The prompts below are written so you can paste one into your AI assistant, fill in the placeholders, and get working code back. Each one already carries the product facts the model needs, so it does not guess.
Two ways to give your AI tool the full context.
  • Every page in these docs has a menu in the top-right to Copy page, View as Markdown, or open it directly in ChatGPT or Claude with the page preloaded, and to connect the docs to Cursor or VS Code.
  • The entire documentation set is published as a single file at /llms-full.txt (with a short index at /llms.txt). Paste either URL into your assistant to load all of ShieldLabs as background before you ask.

Install the snippet

Replace the placeholders, then paste into ChatGPT, Claude, or Cursor.

Verify a webhook

Turn the Risk Score into a decision

Read a user’s history

Install with AI from the analytics dashboard

In the analytics dashboard, Integration > Install has Install with AI: a ready-made instruction to paste into your AI assistant, already filled in for the selected domain and stack. It carries your domain and Public Key, the snippets for anonymous visitors and signed-in users, and the Content-Security-Policy header for a site that sends one. It tells the assistant where the snippet goes, to pass a hashed user ID on signed-in pages, and how to check the install. Copy it with the copy button on the card or with Copy installation guide at the top of the tab, and select Show the whole prompt to read it first. See Integration for the rest of the screen.
Integration > Install for example.com in the analytics dashboard: Copy installation guide at the top, the stack picker with JavaScript selected, the Anonymous visitors, Authenticated users and Content-Security-Policy cards collapsed, and the Install with AI card (Alternative) open, with Open in Cursor, a copy button, Show the whole prompt and the start of the prompt: # Install ShieldLabs on example.com, Integrate ShieldLabs into our JavaScript app with the CDN snippet below.Integration > Install for example.com in the analytics dashboard in the dark theme: Copy installation guide at the top, the stack picker with JavaScript selected, the Anonymous visitors, Authenticated users and Content-Security-Policy cards collapsed, and the Install with AI card (Alternative) open, with Open in Cursor, a copy button, Show the whole prompt and the start of the prompt: # Install ShieldLabs on example.com, Integrate ShieldLabs into our JavaScript app with the CDN snippet below.

Install with AI in the analytics dashboard.

Keep the model honest

When you paste generated code back, sanity-check it against the real product:

Snippet

The real exports, framework examples, and what the browser collects.

Webhooks

The snake_case event payload, X-Shield-Signature verification, and handlers in Node, Go, and Python.

Risk Scoring

The Risk Score from 0 to 100, its bands, and the signals breakdown to branch on.

Server API

History and profile endpoints with full request and response shapes.
If a model invents an endpoint or a field that the webhook reference and the Server API do not list, such as a Description value, it is guessing. The webhook and the History API carry identifications, and High-Risk Events are available in the analytics dashboard, the API and webhooks. Re-prompt the model with the page above (Copy page, then paste) and it will correct.