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

JT124009 · Heidenreich

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/JT124009/inquiry.eml

    ok
    From: trond.halland@heidenreich.no
    Subject: Forespørsel skyvespjeld ventiler
    Body: 1778 chars
    Attachments: ba694ffa286a493693f654ff7777a6eb.jpg, 4a79d571ebad424fae4803de6e1cec12.png, image706305.gif
    Show full email body
  2. 2

    AI extracts structured JSON

    Step 02

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

    ok
    Norwegiannew inquiry1 item(s)
    Show extracted JSON
    {
      "language": "no",
      "intent": "new_inquiry",
      "customer": {
        "company": "Heidenreich",
        "contact_name": "Trond Martin Halland",
        "contact_email": "trond.halland@heidenreich.no",
        "phone": "+47 90 25 90 89",
        "vat_number": null,
        "address": "Industriveien 6, 2020 Skedsmokorset"
      },
      "items": [
        {
          "line_no": 1,
          "quantity": 4,
          "unit": "stk",
          "product_reference": "DN150 knife gate valve (skyvespjeldventil) with stainless-steel knife, pneumatic actuator, seal suitable for silage media",
          "manufacturer": null,
          "manufacturer_part_no": null,
          "cross_ref_to": null,
          "specs": {
            "dimension": "DN150",
            "pressure_rating": "PN10",
            "material_body": null,
            "material_seal": "suitable for ensilage (silage)",
            "actuation": "pneumatic",
            "voltage": null,
            "torque_or_flow": null,
            "temperature": null,
            "thread_or_connection": null,
            "other": [
              {
                "key": "valve_type",
                "value": "skyvespjeldventil (knife gate valve)"
              },
              {
                "key": "knife_material",
                "value": "syrefast (stainless steel)"
              },
              {
                "key": "media",
                "value": "ensilasje (silage)"
              }
            ]
          },
          "missing_fields": [
            "material_body",
            "specific seal material"
          ]
        }
      ],
      "application_context": "Knife gate valves for silage application. Customer requests best price and lead time.",
      "attachments_referenced": [],
      "delivery": {
        "location": null,
        "deadline": null,
        "incoterms": null
      },
      "previous_reference": {
        "is_update_of": null,
        "notes": null
      },
      "completeness": "complete",
      "missing": []
    }
  3. 3

    Completeness verdict: complete

    Step 03

    All quotable

    ok
    complete
    Rule trace (deterministic)
    Verdict: complete · all items quotable directly
    • item 1: ✓ quotablequotable (sizing + 3 disambiguating specs)
  4. 4

    Customer found in Business Central

    Steps 08 + 09

    BC# C-20008 — Heidenreich

    ok
    BC#: C-20008
    Company: Heidenreich
    Email: trond.halland@heidenreich.no
  5. 5

    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/JT124009).

    ok
  6. 6

    AI drafts RFQ emails to selected suppliers

    Steps 14 + 15

    2 draft RFQ(s) — to SISTAG AG WEY, Bandit AS. Drafts await human approval before send.

    ok
    2 draft RFQs prepared (not sent).
    SISTAG AG WEY · en · drafted by haiku
    Bandit AS · en · drafted by haiku
  7. 7

    Score supplier quotes (2 received)

    Steps 16 + 17

    Winner: SISTAG AG WEY · score 1.00 · 4160.0 EUR · 32d lead

    ok
    SupplierStatusTotalLeadIncotermScoreFlags
    SISTAG AG WEYquoted4,160 EUR32dEXW100preferred_supplier
    BAND-IT Nordic ABquoted35,000 NOK63dDAP15
    Show winning quote line items
    [
      {
        "line_no": 1,
        "sku": "WEY1VNA.150A226",
        "description": "Knife Gate Valve VNA DN150 Wafer, Body: EN-GJL-250, Knife: 1.4301, Seal: EPDM, Aktuator: Pneumatisk dobbeltvirkende SISTAG ACT-DA80",
        "quantity": 4,
        "unit": "stk",
        "unit_price": 1040,
        "total": 4160,
        "notes": "Egnet for ensilasje. FKM-sete mulig mot pristillegg EUR 95/stk"
      }
    ]
  8. 8

    BC quote already drafted

    Steps 10 + 20

    Quote Q-2026-00004 · 1 line(s) · 4160.0 EUR · status=draft

    ok
    Quote#: Q-2026-00004
    Currency: EUR
    Status: draft
    Total ex VAT: 4,160 EUR
  9. 9

    Write quote number back to M-Files

    Step 11

    Wrote Q-2026-00004 to .tmp/jscock_mfiles/JT124009/quote_no.txt

    ok
    Wrote Q-2026-00004 to .tmp/jscock_mfiles/JT124009/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
    Last decision: approve · 08/05/2026, 11:17:39

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