Getting started

Quickstart: your first reply

Send a message and read the answer.

curl https://aiagent1.skotechlabs.com/api/v1/chat \
  -H "Authorization: Bearer sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "conversation_id": "customer-42",
    "message": "Delivery charge koto?"
  }'
{
  "reply": "ঢাকার ভেতরে ডেলিভারি চার্জ ৳60, ঢাকার বাইরে ৳120।",
  "status": "answered",
  "conversation_id": "9b1e6c2a-…",
  "message_id": 1841,
  "intent": "delivery",
  "needs_human": false,
  "sources": [{ "type": "faq", "id": 12, "label": "FAQ: Delivery charge koto?" }],
  "credits_used": 1,
  "credits_remaining": 2099
}

Send the next message with the same conversation_id and the agent remembers the conversation.