Intent Detection API
Classify user text into predefined intents such as purchase, complaint, or location inquiry.
🟢 Endpoint
POST https://kubus.co.id/api/v1/chat/intent/batch
🔐 Headers
Use your API key to authorize requests. Replace YOUR_API_KEY with your actual key.
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Manage Your API Keys
📦 Request Body
Configured Entity Groups
No entity groups configured yet.
Example request body:
{
"entity_group":"marketing",
"texts": [
"Saya mau beli headset bluetooth.",
"Dimana saya bisa ambil pesanan?",
"Tolong refund transaksi saya."
]
}
✅ Response
A successful request returns a list of intent classifications:
{
"results": [
{
"intent": "purchase_intent",
"text": "Saya mau beli headset bluetooth."
},
{
"intent": "ask_location",
"text": "Dimana saya bisa ambil pesanan?"
},
{
"intent": "complaint",
"text": "Tolong refund transaksi saya."
}
],
"status": "success"
}
Notes
- This API identifies common customer intents in Indonesian language.
- Maximum 10 texts per batch.
- Common intent types include:
purchase_intent,ask_location,complaint, and more. - Ensure your API key is valid and not expired.