All templates

Safeguard

Reads the listing the way a careful buyer would: a score, a verdict, what to fix and questions the seller can answer to raise the score.

Sell your item

The PCIFIC tool, exactly as your customers will see it. Everything around it is your own page.

Saved with the listing

Your look

Try it here. Save your colours and logo once in the dashboard, under Templates, and every page picks them up.

Add it to your site

  1. Put the tag on your page

    Paste it where the tool should appear, once per page. Change the selectors after each colon to your own fields.

    Your page
    <script type="module" src="https://business.pcific.ai/static/templates/kit.js"></script>
    <pcific-safeguard read="title:#title, description:#description, category:#category" fill="safeguardVerdict:#safeguard_verdict, safeguardScore:#safeguard_score" session="{{PCIFIC_EMBED_SESSION}}"></pcific-safeguard>
  2. Make a session on your server

    Each time your server shows the page, it swaps your API key for a session that only works on your shop's address, for an hour. Your key never reaches the browser.

    Node.js on your server
    // On your server, each time you render the page. Never send your API key to the browser.
    const response = await fetch("https://business.pcific.ai/api/v1/embed-sessions", {
      method: "POST",
      headers: { authorization: `Bearer ${process.env.PCIFIC_API_KEY}`, "content-type": "application/json" },
      body: JSON.stringify({"origin":"https://your-shop.example","tools":["safeguard"]}),
    });
    const { session } = await response.json();
    // Put session into the tag: session="${session}"
  3. Check it on your page

    Open the page. If a field is mapped wrongly, the tool says which one and how to fix it, and the tag fires a pcific:problem event you can log. Without a session the tag shows these recorded answers, so you can lay out the page first.

Or hand it to your coding agent

If you build with Claude Code, Codex, Cursor or similar, give it this brief. It has the tag, the server step and how to test it, written for your choices above.

Brief for your coding agent
Add PCIFIC Safeguard to our existing shop with PCIFIC's embed tag. Read our repo guidance first and keep our own save and submit flow.

Reads the listing the way a careful buyer would: a score, a verdict, what to fix and questions the seller can answer to raise the score.

Page: add this once where the tool should appear:
<script type="module" src="https://business.pcific.ai/static/templates/kit.js"></script>
<pcific-safeguard read="title:#title, description:#description, category:#category" fill="safeguardVerdict:#safeguard_verdict, safeguardScore:#safeguard_score" session="{{PCIFIC_EMBED_SESSION}}"></pcific-safeguard>

Change the selectors after each colon in read and fill to match our real fields. Read fields: title:#title, description:#description, category:#category. Fill fields: safeguardVerdict:#safeguard_verdict, safeguardScore:#safeguard_score.

Server: each time the page renders, POST https://business.pcific.ai/api/v1/embed-sessions with our API key from the server environment and {"origin": "<the page's exact origin>", "tools": ["safeguard"]}, then print the returned session into the tag's session attribute. Never send the API key to the browser. Sessions last an hour at most and only work on that origin.

Our look (colours, corners, font, logo) is saved in the PCIFIC dashboard under Templates, so leave the tag's look attributes out unless a page needs to differ.

Read https://business.pcific.ai/docs/safeguard for the current contract.

PCIFIC approves your account before you can make keys. Approved company email domains and accepted team invitations skip the wait. Account approval is the only approval from PCIFIC. To go live, choose Live key on the API keys page and press Activate live key; live calls spend credits bought from PCIFIC. Staff can suspend and restore live-key access (LIVE_KEYS_OFF).

Live PixelTrace groups only take photos from the seller's phone camera, in iPhone Safari or Android Chrome, so arrange a person with a phone first. Opening the link on a computer does not use it up. Test keys can upload and confirm with test-photos and test-confirm.

For native generated output, show the shop's AI notice from aiNotice; an empty notice means the owner chose to show none. Never replace it with a fixed PCIFIC sentence.

Listen for pcific:problem on the tag in development: it names any field mapping that is wrong and how to fix it.

Test from the customer's entry page through the tool, the filled form and our saved listing, including an error and recovery. Do not publish or send emails automatically.