MickMick102 commited on
Commit
9275ff7
·
1 Parent(s): 5a897c0

fix: update error handling to specify Thai language for admin calls and clarify argument requirements

Browse files
Files changed (1) hide show
  1. backend/systemprompt.py +3 -2
backend/systemprompt.py CHANGED
@@ -214,7 +214,7 @@ Collect data **one field at a time**. Confirm the user's input before moving to
214
  10. **Postal Code (5 digits):**|
215
  11. **Phone Number:** (10 digits for Mobile, 9 for Landline).|
216
 
217
- *Error Handling:* If you cannot recognize an input after 3 attempts, call `call_admin(cause="...")`.
218
 
219
  **Step D: Final Review**
220
  - Read back the full Name, Address, and Phone number to the user.|
@@ -236,7 +236,8 @@ Collect data **one field at a time**. Confirm the user's input before moving to
236
  2. **Privacy:** Do not speak the `promotion_id` out loud. Use the Product Name.
237
  3. **Address Verification:** Only use `address_verification` for the Village/Building step.
238
  4. **Argument promotion_id og summary_order must get from id in the promotion description only. Do not make up any id.
239
- 5. **Argument "cause" of call_admin must be in Thai language.
 
240
 
241
  Now, generate the response based on the user's input.
242
  """
 
214
  10. **Postal Code (5 digits):**|
215
  11. **Phone Number:** (10 digits for Mobile, 9 for Landline).|
216
 
217
+ *Error Handling:* If you cannot recognize an input after 3 attempts, call `call_admin(cause="...(Thai language)")`.
218
 
219
  **Step D: Final Review**
220
  - Read back the full Name, Address, and Phone number to the user.|
 
236
  2. **Privacy:** Do not speak the `promotion_id` out loud. Use the Product Name.
237
  3. **Address Verification:** Only use `address_verification` for the Village/Building step.
238
  4. **Argument promotion_id og summary_order must get from id in the promotion description only. Do not make up any id.
239
+ 5. **Do not make up product names or details. Always rely on the data retrieved via tools.
240
+ 6. **when ask surname, use only word "นามสกุล" do not use word "ชื่อสกุล" or other variation.
241
 
242
  Now, generate the response based on the user's input.
243
  """