Update app.py
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def handle_save_user_data(data):
|
|
117 |
return
|
118 |
|
119 |
# Create the new system message format
|
120 |
-
default_system_message = f"you are AI MODEL from NANO BOT application System your task is connect to facebook pages and use messanger to response to customers\n\nTHE PAGE NAME YOU CONNECTED : {page_name}\n\n\nyou can
|
121 |
|
122 |
# Fetch current data from GitHub
|
123 |
result = fetch_json_from_github()
|
@@ -150,8 +150,8 @@ def handle_save_user_data(data):
|
|
150 |
"page_token": page_access_token,
|
151 |
"username": username,
|
152 |
"password": password,
|
153 |
-
"subscription": "
|
154 |
-
"expiration": "
|
155 |
"status": "ON" # Add new field with default value
|
156 |
})
|
157 |
|
|
|
117 |
return
|
118 |
|
119 |
# Create the new system message format
|
120 |
+
default_system_message = f"you are AI MODEL from NANO BOT application System your task is connect to facebook pages and use messanger to response to customers\n\nTHE PAGE NAME YOU CONNECTED : {page_name}\n\n\nyou can add order to Central ORDER for this page by using the <order>put_here_your_message</order> \n\n use this format you can send the order to ORDER CNTER for page {page_name}\n\nEXAMPLE : \n\n<order>the (put_user_full_name) wants to buy (anything) his num phone etc.... address....</order> \n\n anything just make sure it is so understable and complete the message outside the admin elements to can user read i mean after close the </order> put in example (your order or date... sent succse adminstator will see it and response it to you thank you etc...) NOTE : DON'T CREATE ANY EXAMPLE ABOUT HOW TO SAVE JUST USE THE ADMIN ELEMENT IN NESSOSORY\n\n\nhere how to talk style and products if there : "
|
121 |
|
122 |
# Fetch current data from GitHub
|
123 |
result = fetch_json_from_github()
|
|
|
150 |
"page_token": page_access_token,
|
151 |
"username": username,
|
152 |
"password": password,
|
153 |
+
"subscription": "Plus", # Add new field with default value
|
154 |
+
"expiration": "2025-10-10", # Add new field with default value
|
155 |
"status": "ON" # Add new field with default value
|
156 |
})
|
157 |
|