Update handoff/support.py
Browse files- handoff/support.py +2 -1
handoff/support.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
from db import supabase
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
def create_support_handoff(customer_phone: str, bot_number: str, summary: str, metadata=None):
|
|
@@ -21,7 +22,7 @@ def create_support_handoff_result(flow_data: dict, summary: str):
|
|
| 21 |
flow_data["handoff_summary"] = summary
|
| 22 |
|
| 23 |
return {
|
| 24 |
-
"next_state":
|
| 25 |
"flow_data": flow_data,
|
| 26 |
"reply": (
|
| 27 |
"تمام، تم رفع استفسارك لفريق خدمة العملاء.\n"
|
|
|
|
| 1 |
from db import supabase
|
| 2 |
+
from engine.states import HANDOFF_DONE
|
| 3 |
|
| 4 |
|
| 5 |
def create_support_handoff(customer_phone: str, bot_number: str, summary: str, metadata=None):
|
|
|
|
| 22 |
flow_data["handoff_summary"] = summary
|
| 23 |
|
| 24 |
return {
|
| 25 |
+
"next_state": HANDOFF_DONE,
|
| 26 |
"flow_data": flow_data,
|
| 27 |
"reply": (
|
| 28 |
"تمام، تم رفع استفسارك لفريق خدمة العملاء.\n"
|