দ্রুত শুরু: প্রথম উত্তর
একটা মেসেজ পাঠান আর উত্তরটা পড়ুন।
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
}
পরের মেসেজটা একই conversation_id দিয়ে পাঠালে এজেন্ট আগের কথাগুলো মনে রাখে।
