Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -194,7 +194,7 @@ def get_level(action_group: str) -> float:
|
|
| 194 |
return 2
|
| 195 |
# 等級 3
|
| 196 |
combo3 = {
|
| 197 |
-
"自由配-投資規劃", "自由配", "訂製保險組合", "自由配-套餐"
|
| 198 |
}
|
| 199 |
if action_group in combo3 or action_group.startswith("試算"):
|
| 200 |
return 3
|
|
@@ -265,20 +265,20 @@ def recommend_strategy(
|
|
| 265 |
|
| 266 |
# 等級 0
|
| 267 |
if next_action_group in {"其他", "保險視圖、保單明細、資產總覽、保險明細"}:
|
| 268 |
-
return
|
| 269 |
|
| 270 |
# 等級 1:找服務
|
| 271 |
if next_action_group == "找服務(尋求服務與客服)":
|
| 272 |
s = "箭頭提醒「找服務」介面在畫面上方選單"
|
| 273 |
if history[-10:].count("找服務(尋求服務與客服)") > 3:
|
| 274 |
-
s += "
|
| 275 |
return s
|
| 276 |
|
| 277 |
# 等級 2:商品資訊頁
|
| 278 |
if "商品資訊頁" in next_action_group:
|
| 279 |
cnt = sum(1 for ag in history[-10:] if ag and "商品資訊頁" in ag)
|
| 280 |
if cnt >= 3:
|
| 281 |
-
return "顯示入口推動試算"
|
| 282 |
return None
|
| 283 |
|
| 284 |
# 等級 2:好康優惠
|
|
@@ -288,7 +288,7 @@ def recommend_strategy(
|
|
| 288 |
return None
|
| 289 |
|
| 290 |
# 等級 3:挑選組合
|
| 291 |
-
combo3 = {"自由配-投資規劃", "自由配", "訂製保險組合", "自由配-套餐"}
|
| 292 |
if next_action_group in combo3:
|
| 293 |
prompt = (
|
| 294 |
"不知道如何開始嗎?簡單三個問題,讓系統提供最適合你的商品!"
|
|
|
|
| 194 |
return 2
|
| 195 |
# 等級 3
|
| 196 |
combo3 = {
|
| 197 |
+
"自由配-投資規劃", "自由配", "訂製保險組合", "自由配-套餐", "自由配-保障規劃"
|
| 198 |
}
|
| 199 |
if action_group in combo3 or action_group.startswith("試算"):
|
| 200 |
return 3
|
|
|
|
| 265 |
|
| 266 |
# 等級 0
|
| 267 |
if next_action_group in {"其他", "保險視圖、保單明細、資產總覽、保險明細"}:
|
| 268 |
+
return "暫無建議,持續觀察"
|
| 269 |
|
| 270 |
# 等級 1:找服務
|
| 271 |
if next_action_group == "找服務(尋求服務與客服)":
|
| 272 |
s = "箭頭提醒「找服務」介面在畫面上方選單"
|
| 273 |
if history[-10:].count("找服務(尋求服務與客服)") > 3:
|
| 274 |
+
s += "讓右下角的阿發的「Hi 需要幫忙嗎」unhide"
|
| 275 |
return s
|
| 276 |
|
| 277 |
# 等級 2:商品資訊頁
|
| 278 |
if "商品資訊頁" in next_action_group:
|
| 279 |
cnt = sum(1 for ag in history[-10:] if ag and "商品資訊頁" in ag)
|
| 280 |
if cnt >= 3:
|
| 281 |
+
return "顯示試算入口,推動試算"
|
| 282 |
return None
|
| 283 |
|
| 284 |
# 等級 2:好康優惠
|
|
|
|
| 288 |
return None
|
| 289 |
|
| 290 |
# 等級 3:挑選組合
|
| 291 |
+
combo3 = {"自由配-投資規劃", "自由配", "訂製保險組合", "自由配-套餐", "自由配-保障規劃"}
|
| 292 |
if next_action_group in combo3:
|
| 293 |
prompt = (
|
| 294 |
"不知道如何開始嗎?簡單三個問題,讓系統提供最適合你的商品!"
|