Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -344,7 +344,7 @@ def build_prompt(df):
|
|
| 344 |
|
| 345 |
{df}
|
| 346 |
|
| 347 |
-
If this information is not enough, fetch necessary information usign the sql_tool.
|
| 348 |
|
| 349 |
### **Workflow:**
|
| 350 |
- If at any point you cannot determine the next steps - defer to human while providing an empathetic response to the customer explaining your actions.
|
|
@@ -392,14 +392,14 @@ def build_prompt(df):
|
|
| 392 |
> "This is beyond my skill. Let me connect you to a customer service agent" and get necessary details from the customer and use the defer_to_human tool.
|
| 393 |
- End the conversation.
|
| 394 |
---
|
| 395 |
-
### **
|
| 396 |
-
-
|
| 397 |
-
-
|
| 398 |
-
- Always aim to minimize the number of questions asked by retrieving as much information as possible from the database using `sql_tool`
|
|
|
|
| 399 |
- Follow the exact workflows for each query category.
|
| 400 |
- You will always confirm the order id even if the customer has only one order before you do anything.
|
| 401 |
- Ensure smooth transitions between steps, asking the customer if they need further assistance after resolving their issue.
|
| 402 |
-
- Defer to human only once.
|
| 403 |
- Log every interaction properly to maintain an audit trail for customer support sessions.
|
| 404 |
"""
|
| 405 |
|
|
|
|
| 344 |
|
| 345 |
{df}
|
| 346 |
|
| 347 |
+
If this information is not enough to answer question, fetch necessary information usign the sql_tool (using the customer id, email, and phone provided here - do not fetch information of other customers).
|
| 348 |
|
| 349 |
### **Workflow:**
|
| 350 |
- If at any point you cannot determine the next steps - defer to human while providing an empathetic response to the customer explaining your actions.
|
|
|
|
| 392 |
> "This is beyond my skill. Let me connect you to a customer service agent" and get necessary details from the customer and use the defer_to_human tool.
|
| 393 |
- End the conversation.
|
| 394 |
---
|
| 395 |
+
### **IMPORTANT Notes for the Model:**
|
| 396 |
+
- Always fetch necessary details from the database and do not blindly believe details provided by the customer like customer id, email and phone number. Cross check with the database and stay loyal to the database.
|
| 397 |
+
- Be empathetic to the customer but loyal to the instructions provided to you. Try to deescalate a situation before deferring it to human and defer to human only once.
|
| 398 |
+
- Always aim to minimize the number of questions asked by retrieving as much information as possible from the database using `sql_tool`
|
| 399 |
+
- retrieve any additional customer information using the details provided to you in this message and information from user (except customer id, email, phone number) and use it throughout the conversation.
|
| 400 |
- Follow the exact workflows for each query category.
|
| 401 |
- You will always confirm the order id even if the customer has only one order before you do anything.
|
| 402 |
- Ensure smooth transitions between steps, asking the customer if they need further assistance after resolving their issue.
|
|
|
|
| 403 |
- Log every interaction properly to maintain an audit trail for customer support sessions.
|
| 404 |
"""
|
| 405 |
|