chat:commerce-intent

Classify what a customer message is asking for

post/v1/ai/chat/commerce-intent

Request

  • Base URL
    https://api.intura.co (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

messagestring required

The message to classify — WhatsApp, Instagram DM, marketplace chat, live chat, any of them. Bounded by the module's MAX_CHARS.

historystring[] nullable

Previous turns in the conversation, oldest first. The last 4 are read. Worth sending: intent is often only decidable against the turn before it — 'yang merah aja' is an order if a choice was being offered and a product question if it was not.

channelstring nullable

Where the message arrived — whatsapp, instagram, tokopedia, shopee, web. Recorded, not scored: the corpus keeps it beside the text rather than in it, so no model reads it and it never moves a class. Send it so your own logs carry it.

thresholdsobject nullable

Move the routing check for this one call: route (default 0.62), the probability the top class must clear, and margin (default 0.1), the lead it must hold over the runner-up. Either alone is fine; the other keeps Intura's default.

Example request

{
  "message": "kak yang warna merah ready ga? ongkir ke bandung berapa ya",
  "history": [
    "halo kak",
    "ada warna apa aja ya?"
  ],
  "channel": "whatsapp",
  "thresholds": {
    "route": 0.75
  }
}

Response

Successful Response

statusstring

Always success on a 2xx

codeinteger

Mirrors the HTTP status code

Changes

No recorded changes to this operation across all 1 revision of this API.