In Customization
Description
客製化
Resource
POST /v1/openai_scenario/in_customization
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name |
Type |
Description |
| message |
string |
用戶輸入 |
| product_id |
string |
商品代碼 |
| taste_list |
list[taste] |
可接受加值列表 |
Request Body Parameters Taste
| Name |
Type |
Description |
| taste_id |
string |
加值代碼 |
| taste_name |
string |
加值名稱(翻譯名稱) |
| taste_item_list |
list[taste item] |
加值項目 |
Request Body Parameters Taste Item
| Name |
Type |
Description |
| taste_item_id |
string |
加值項目代碼 |
| taste_item_name |
string |
加值項目名稱(翻譯名稱) |
Request Example
{
"message": "用戶輸入文本",
"product_id": "商品代碼",
"taste_list": [{
"taste_id": "ice",
"taste_name": "冰量",
"taste_item_list": [{
"taste_item_id": "ice01",
"taste_item_name": "正常"
}]
}]
}
Response Body Parameters
| Name |
Type |
Description |
| intent |
string |
意圖
- agree_recommend
- disagree_recommend
- start_order
- unrecognized
|
| parameters |
object |
返回參數 |
Response Body Parameters Parameters
| Name |
Type |
Description |
| options |
object |
加值內容 |
| error_type |
string |
錯誤類型 |
Response Example
Status-Code: 200
{
"intent": "place_order",
"parameters": {
"options":[{
"taste_id": "ice",
"taste_item_id": "ice01"
}]
}
}