Skip to content

In Order

Description

點餐中。

Resource

POST /v1/openai_scenario/in_order

Authorization

採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login

Request Body Parameters

Name Type Description
message string 用戶輸入
store_id string 商店代碼
pickup_time string 取貨時間
(optional)
EXAMPLE "15:30"

Request Example

{
    "message": "用戶輸入文本",
    "store_id": "TWX001",
    "pickup_time": "15:30" 
}

Response Body Parameters

Name Type Description
intent string 意圖
  • agree_recommend
  • disagree_recommend
  • start_order
  • unrecognized
product_id string 商品代碼
original_language string 原始語言
quantity int 數量
error_type string 錯誤類型
  • noise
  • ambiguous
  • out_of_scope
error string 錯誤訊息
(此資訊僅會在OPENAI回傳錯誤格式出現)

Response Example

Status-Code: 200

{
    "intent": "agree_recommend", 
    "item_code": "H001",
    "original_language": "zh",
    "quantity": 1
}