J.S.Cock · AI Inquiry Demo
← All inquiries · Inquiry detail view
End-to-end flow

JT119626 · MATEK-SAMSON REGULERING AS

One inquiry, all stages. Each box below is the actual artifact persisted by the pipeline — not a mockup. The brief asks: "does Kine actually work?". This page is the answer.

10 stages
  1. 1

    Email arrives in M-Files inbox

    Step 01

    Inquiry stored at .tmp/jscock_mfiles/JT119626/inquiry.eml

    ok
    From: mari-ann@matek.no
    Subject: Forespørsel på 2 stk grensebrytere/magnetventiler som tidligere levert på faktura 1208552 i 2021
    Body: 857 chars
    Attachments: image001.png, image002.jpg, image003.png, image004.jpg, Inngående faktura - 1208552, 102728, 50129, J.S. Cock AS, 22.1... _regnskap.pdf
    Show full email body
  2. 2

    AI extracts structured JSON

    Step 02

    1 item(s) detected · language=no · intent=reorder

    ok
    Norwegianreorder1 item(s)
    Show extracted JSON
    {
      "language": "no",
      "intent": "reorder",
      "customer": {
        "company": "MATEK-SAMSON REGULERING AS",
        "contact_name": "Mari Ann Skjelbred",
        "contact_email": "mari-ann@matek.no",
        "phone": "+47 95 04 19 66",
        "vat_number": null,
        "address": "Porsgrunnsvegen 4, 3733 Skien, Norway"
      },
      "items": [
        {
          "line_no": 1,
          "quantity": 2,
          "unit": "stk",
          "product_reference": "Limit switches with brackets — same as line 4 and 5 of invoice 1208552 (delivered in 2021)",
          "manufacturer": null,
          "manufacturer_part_no": null,
          "cross_ref_to": "invoice 1208552 lines 4 and 5",
          "specs": {
            "dimension": null,
            "pressure_rating": null,
            "material_body": null,
            "material_seal": null,
            "actuation": null,
            "voltage": null,
            "torque_or_flow": null,
            "temperature": null,
            "thread_or_connection": null,
            "other": [
              {
                "key": "device_type",
                "value": "grensebryter (limit switch)"
              },
              {
                "key": "with_bracket",
                "value": "yes"
              },
              {
                "key": "history_reference",
                "value": "invoice 1208552 from 2021"
              }
            ]
          },
          "missing_fields": [
            "all specs — must look up invoice 1208552 lines 4 and 5 in JS Cock history"
          ]
        }
      ],
      "application_context": "Reorder of limit switches previously delivered in 2021. Customer asks for an updated quote with the same specs as the original invoice.",
      "attachments_referenced": [],
      "delivery": {
        "location": null,
        "deadline": null,
        "incoterms": null
      },
      "previous_reference": {
        "is_update_of": "invoice 1208552 lines 4 and 5 (2021)",
        "notes": "Customer expects internal lookup of the historical invoice."
      },
      "completeness": "partial",
      "missing": [
        "delivery location",
        "deadline",
        "specs from prior invoice 1208552"
      ]
    }
  3. 3

    Completeness verdict: partial

    Step 03

    Missing: delivery location, deadline, specs from prior invoice 1208552

    ok
    partial
    • delivery location
    • deadline
    • specs from prior invoice 1208552
    Rule trace (deterministic)
    Verdict: complete · all items quotable directly
    • item 1: ✓ quotablemanufacturer part-no or cross-ref present (catalog-resolvable)
  4. 4

    AI drafts follow-up email to customer

    Step 04

    Drafted in no, awaiting human approval.

    ok
  5. 5

    Customer found in Business Central

    Steps 08 + 09

    BC# C-20002 — MATEK-SAMSON REGULERING AS

    ok
    BC#: C-20002
    Company: MATEK-SAMSON REGULERING AS
    Email: mari-ann@matek.no
  6. 6

    Match items against the J.S.Cock catalog

    Steps 12 + 13

    Top-5 candidates per item via TF-IDF over 18.8k SKUs (see Matches tab on /inquiry/JT119626).

    ok
  7. 7

    Score supplier quotes (1 received)

    Steps 16 + 17

    Winner: SAMSON Norge AS · score 0.95 · 8360.0 NOK · 21d lead

    ok
    SupplierStatusTotalLeadIncotermScoreFlags
    SAMSON Norge ASquoted8,360 NOK21dDDP95
    Show winning quote line items
    [
      {
        "line_no": 1,
        "sku": "4746-1",
        "description": "SAMSON Type 4746 NAMUR limit switch with bracket SBR-100",
        "quantity": 2,
        "unit": "stk",
        "unit_price": 4180,
        "total": 8360,
        "notes": "Current revision -1 replaces discontinued -0 (2021). Physically and electrically compatible; no panel changes required."
      }
    ]
  8. 8

    BC quote already drafted

    Steps 10 + 20

    Quote Q-2026-00002 · 1 line(s) · 8360.0 NOK · status=draft

    ok
    Quote#: Q-2026-00002
    Currency: NOK
    Status: draft
    Total ex VAT: 8,360 NOK
  9. 9

    Write quote number back to M-Files

    Step 11

    Wrote Q-2026-00002 to .tmp/jscock_mfiles/JT119626/quote_no.txt

    ok
    Wrote Q-2026-00002 to .tmp/jscock_mfiles/JT119626/quote_no.txt. The DMS now has a back-reference from the inquiry document to the BC quote.
  10. 10

    Human approval (sales engineer)

    Step 21

    In production this becomes a real review UI in Week 2-3. Demo: approve / edit / reject from the page.

    pending

Process map: see how this aligns with JS Cock’s diagram →