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

JT900003

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.

12 stages
  1. 1

    Email arrives in M-Files inbox

    Step 01

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

    ok
    From: ole@fjordlaks.no
    Subject: pris ventiler
    Body: 70 chars
    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": null,
        "contact_name": "Ole",
        "contact_email": "ole@fjordlaks.no",
        "phone": null,
        "vat_number": null,
        "address": null
      },
      "items": [
        {
          "line_no": 1,
          "quantity": null,
          "unit": null,
          "product_reference": "ventiler",
          "manufacturer": null,
          "manufacturer_part_no": null,
          "cross_ref_to": null,
          "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": []
          },
          "missing_fields": [
            "quantity",
            "dimension",
            "pressure_rating",
            "material_body",
            "actuation",
            "thread_or_connection"
          ]
        }
      ],
      "application_context": "Til anlegget — ingen detaljer oppgitt.",
      "attachments_referenced": [],
      "delivery": {
        "location": null,
        "deadline": null,
        "incoterms": null
      },
      "previous_reference": {
        "is_update_of": null,
        "notes": null
      },
      "completeness": "partial",
      "missing": [
        "customer.company",
        "items[].quantity",
        "items[].specs",
        "delivery.location",
        "delivery.deadline"
      ]
    }
  3. 3

    Completeness verdict: partial

    Step 03

    Missing: customer.company, items[].quantity, items[].specs, delivery.location, delivery.deadline

    ok
    partial
    • customer.company
    • items[].quantity
    • items[].specs
    • delivery.location
    • delivery.deadline
    Rule trace (deterministic)
    Verdict: partial · 1 of 1 items need clarification
    • item 1: × needs follow-upno quantity
  4. 4

    AI drafts follow-up email to customer

    Step 04

    Drafted in no, awaiting human approval.

    ok
  5. 5

    Customer reply received

    Step 05

    From ole@fjordlaks.no — fixture .tmp/jscock_customer_replies/JT900003_full.txt

    ok
  6. 6

    AI re-extracts and merges with original

    Step 06

    Reply JT900003_full → verdict partial → complete. 4 field(s) newly resolved, 0 still missing.

    ok
    before: partialafter: complete
    Newly resolved
    • customer.company
    • delivery.location_or_deadline
    • item[1].dimension_or_part_no
    • item[1].quantity
  7. 7

    Customer found in Business Central

    Steps 08 + 09

    BC# C-20012 — Fjordlaks AS

    ok
    BC#: C-20012
    Company: Fjordlaks AS
    Email: ole@fjordlaks.no
  8. 8

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

    ok
  9. 9

    AI drafts RFQ emails to selected suppliers

    Steps 14 + 15

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

    ok
    2 draft RFQs prepared (not sent).
    WEY Valves AG · en · drafted by haiku
    Bandit AS Norway · en · drafted by haiku
  10. 10

    Score supplier quotes

    Steps 16 + 17

    No supplier replies received yet — scoring waits for at least one.

    skip
  11. 11

    Draft quote in Business Central

    Steps 10 + 20

    Waiting for the supplier quote to land before drafting.

    skip
  12. 12

    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 →