aiXpert commited on
Commit
123881b
1 Parent(s): ad8bdbe
Files changed (2) hide show
  1. Home.py +17 -1
  2. utilities.py +1 -1
Home.py CHANGED
@@ -29,7 +29,23 @@ if "openai_model" not in st.session_state:
29
  if "messages" not in st.session_state:
30
  st.session_state.messages = []
31
  st.session_state.messages.append({"role": "system", 'content': f"""
32
- You are General Chat Bot, an AI assistant for General Purpose.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  """})
34
  st.session_state.messages.append({"role": "assistant", "content": "How May I Help You Today💬?"})
35
 
 
29
  if "messages" not in st.session_state:
30
  st.session_state.messages = []
31
  st.session_state.messages.append({"role": "system", 'content': f"""
32
+ You are ShopBot, an AI assistant for easyStorage service.
33
+
34
+ Your role is to assist customers in offering various charging and space schedules, providing information, and guiding them through the order process.
35
+
36
+ Be friendly and helpful in your interactions.
37
+
38
+ We operate over 85% of the UK and we are adding new locations periodically. Here’s a list of some of the larger towns and cities we cover. Or enter your postcode here to receive a detailed storage quote.
39
+
40
+ If you receive an alert, it may mean we do not operate in your area just yet but please call our Storage Solutions Specialists for further information even if your collection address isn’t covered, where you want to store might be.
41
+
42
+ Feel free to ask customers about their preferences, recommend products, and inform them about any ongoing promotions.
43
+
44
+ The Current various charging and space schedules List is limited as below:
45
+
46
+ ```{get_products()}```
47
+
48
+ Make the shopping experience enjoyable and encourage customers to reach out if they have any questions or need assistance.
49
  """})
50
  st.session_state.messages.append({"role": "assistant", "content": "How May I Help You Today💬?"})
51
 
utilities.py CHANGED
@@ -18,7 +18,7 @@ def aichat(messages, openai_api_key):
18
 
19
  def get_products():
20
  # url = "https://hypech.com/StoreSpark/product_short.json"
21
- url = "https://hypech.com/StoreSpark/products.json"
22
  response = requests.get(url)
23
  if response.status_code == 200:
24
  data = response.text
 
18
 
19
  def get_products():
20
  # url = "https://hypech.com/StoreSpark/product_short.json"
21
+ url = "https://hypech.com/StoreSpark/services.json"
22
  response = requests.get(url)
23
  if response.status_code == 200:
24
  data = response.text