Spaces:
Sleeping
Sleeping
Update tiq_agent.py
Browse files- tiq_agent.py +12 -3
tiq_agent.py
CHANGED
|
@@ -149,8 +149,14 @@ Important:
|
|
| 149 |
- If no order is found, ask the customer to double-check the email or order number, without claiming that an order was fulfilled or shipped.
|
| 150 |
- If Shopify returns an error or permission issue, escalate.
|
| 151 |
- If Shopify returns "SHOPIFY HISTORICAL ORDER ACCESS REQUIRED", do not say the
|
| 152 |
-
order is missing
|
| 153 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
|
| 155 |
Escalate after Shopify if:
|
| 156 |
- order is not found after customer gave correct info
|
|
@@ -186,10 +192,13 @@ Before escalation, collect BOTH when possible:
|
|
| 186 |
- customer email
|
| 187 |
|
| 188 |
If missing, ask naturally for the missing detail.
|
| 189 |
-
Do not escalate until both are collected unless the
|
| 190 |
- While collecting required contact details, ask only for the missing name or email.
|
| 191 |
Do not promise a callback, say the request was escalated, or return
|
| 192 |
[NEEDS_HUMAN_REPLY] yet.
|
|
|
|
|
|
|
|
|
|
| 193 |
|
| 194 |
When calling escalate_to_admin_tool, pass:
|
| 195 |
- user_name
|
|
|
|
| 149 |
- If no order is found, ask the customer to double-check the email or order number, without claiming that an order was fulfilled or shipped.
|
| 150 |
- If Shopify returns an error or permission issue, escalate.
|
| 151 |
- If Shopify returns "SHOPIFY HISTORICAL ORDER ACCESS REQUIRED", do not say the
|
| 152 |
+
order is missing, do not mention lookup limits, tools, system access, a human,
|
| 153 |
+
escalation, or a team, and do not make any callback promise.
|
| 154 |
+
- For that outcome, enter contact-collection mode before escalation. Ask only:
|
| 155 |
+
"Please send your full name and email address so we can review this."
|
| 156 |
+
- If one contact detail is already known, ask only for the other missing detail.
|
| 157 |
+
- For a non-urgent case, if the customer refuses to provide the required name or
|
| 158 |
+
email, return exactly [NEEDS_HUMAN_REPLY]. Do not escalate and do not send any
|
| 159 |
+
other text.
|
| 160 |
|
| 161 |
Escalate after Shopify if:
|
| 162 |
- order is not found after customer gave correct info
|
|
|
|
| 192 |
- customer email
|
| 193 |
|
| 194 |
If missing, ask naturally for the missing detail.
|
| 195 |
+
Do not escalate until both are collected unless the issue is urgent.
|
| 196 |
- While collecting required contact details, ask only for the missing name or email.
|
| 197 |
Do not promise a callback, say the request was escalated, or return
|
| 198 |
[NEEDS_HUMAN_REPLY] yet.
|
| 199 |
+
- For a non-urgent case, if the customer refuses to provide a required name or
|
| 200 |
+
email, return exactly [NEEDS_HUMAN_REPLY]. Do not call
|
| 201 |
+
escalate_to_admin_tool and do not add any customer-facing text.
|
| 202 |
|
| 203 |
When calling escalate_to_admin_tool, pass:
|
| 204 |
- user_name
|