orsh For engineers Full docs

How Sorsh fits into your tool

For engineering teams at Sorsh customers. Six short steps; the full reference is in the integration guide.

Prefer to watch? The same walkthrough as a 1 min 40 s video, with captions.
  1. Step 1

    The free audit needs nothing from you

    During the free audit, workers answer a few tasks on a Sorsh page through one link. No code, no install, no access to your systems.

    You only come in if your team wants Sorsh inside your own labeling tool. The rest of this page is for that.

    What the free audit needs from engineering
    Code changesInstallsAPI keysAccess to your systems
    Nothing. Workers use a Sorsh link.
  2. Step 2

    Add two lines to your tool

    Load the SDK, then point Sorsh.embed at the field workers type into and the button they submit with.

    Plain ES5, no build step, no dependencies, no cookies. It works in single-page apps: it waits for the field to appear.

    Prefer markup? Add data-sorsh-answer and data-sorsh-submit and leave out the selectors.

    <!-- 1. load the SDK from your Sorsh instance -->
    <script src="https://pilot.sorsh.in/sdk/sorsh-sdk.js"></script>
    
    <!-- 2. wire it to your answer field and submit button -->
    <script>
      Sorsh.embed({
        endpoint:    "https://pilot.sorsh.in",
        pilotKey:    "pk_xxx",     // worker access code from Sorsh
        contributor: function(){ return CURRENT_USER_ID; },
        answer:      "#answer",    // your answer field
        submit:      "#submit"     // your submit button
      });
    </script>
  3. Step 3

    Or skip the code: the browser extension

    For a pilot, workers can install the Sorsh browser extension instead. Each worker sets the answer field once, and the extension captures the same data from your existing pages.

    No change to your tool. Ask your Sorsh contact for it. The SDK is the better long-term option.

    Two ways in
    SDKTwo lines in your tool. Best for the long run.
    ExtensionZero code. Each worker sets it up once.
  4. Step 4

    What gets sent

    One request per submitted answer, straight from the worker's browser to your Sorsh instance. Nothing to run on your servers.

    • Event types and timing in the answer field: typing, deletes, cursor moves, pastes with their length, leaving and returning. Never the characters typed.
    • The worker ID and task labels you choose.
    • The answer text, so it can be checked. Sorsh doesn't store it, and you can send it empty to score on behavior alone.
    {
      "contributor_id": "w_1042",
      "task_id": "t_17",
      "final_text": "Air gets thinner as you go up…",
      "events": [
        { "t": 0,     "type": "focus" },
        { "t": 900,   "type": "char" },
        { "t": 1500,  "type": "blur" },
        { "t": 41200, "type": "focus" },
        { "t": 41300, "type": "paste", "len": 174 }
      ]
    }
    Shortened. The full event list is in the docs.
  5. Step 5

    What you get back

    Each answer gets a trust score from 0 to 100 and a verdict: clear at 70 and above, review from 40 to 69, high risk below 40. The reasons come in plain words.

    Keep the result out of the worker's view, so nobody learns what gets flagged. Your team reviews everything in the Sorsh console and the audit report.

    {
      "trust_score": 10,
      "verdict": "high_risk",
      "reasons": [
        "100% of the answer arrived via paste",
        "tabbed away, then pasted a block on return (copy-from-LLM pattern)"
      ]
    }
    The real response for the request in step 4 (shortened)
  6. Step 6

    Security and data

    • Every submission needs your worker access code. Without it the request is refused.
    • Operators sign in with Google or an emailed one-time code. Console credentials travel in request headers, never in URLs.
    • Each customer gets its own Sorsh instance and database.
    • Answer text isn't stored. Deletions, exports and data views are logged with who did them.