POST /api/intent

Detect Intent

Identify user intent from text for conversational AI and chatbots. 15 default intents plus support for custom intents.

$0.02 per request

> REQUEST

POST /api/intent

{
  "text": "I need to cancel my subscription and get a refund for this month.",
  "options": {
    "includeConfidence": true,
    "includeEntities": true
  }
}

> RESPONSE

{
  "result": {
    "intent": "cancellation",
    "confidence": 0.92,
    "reasoning": "User explicitly states they want to 'cancel' and mentions 'refund'",
    "entities": ["subscription", "month", "refund"],
    "supported_intents": ["question", "complaint", "request", "booking", "inquiry", "feedback", "support", "purchase", "cancellation", "information", "greeting", "goodbye", "confirmation", "refusal", "other"]
  },
  "tokens_used": { "prompt_tokens": 98, "completion_tokens": 67, "total_tokens": 165 }
}

> DEFAULT_INTENTS

question complaint request booking inquiry feedback support purchase cancellation information greeting goodbye confirmation refusal other