DreamStream-1 commited on
Commit
60d2e7b
·
verified ·
1 Parent(s): 9d8c8d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -1838,8 +1838,7 @@ async def process_incoming_message(from_number: str, msg: dict):
1838
  current_menu='product_inquiry',
1839
  current_menu_options=list(MENU_CONFIG['product_inquiry']['option_descriptions'].values())
1840
  )
1841
- response = generate_veterinary_product_response(selected_product, user_context)
1842
- send_whatsjet_message(from_number, response)
1843
  else:
1844
  send_whatsjet_message(from_number, get_menu_validation_message(current_state, user_context))
1845
  elif current_state == 'all_products_menu':
@@ -1855,8 +1854,7 @@ async def process_incoming_message(from_number: str, msg: dict):
1855
  current_menu='product_inquiry',
1856
  current_menu_options=list(MENU_CONFIG['product_inquiry']['option_descriptions'].values())
1857
  )
1858
- response = generate_veterinary_product_response(selected_product, user_context)
1859
- send_whatsjet_message(from_number, response)
1860
  else:
1861
  send_whatsjet_message(from_number, get_menu_validation_message(current_state, user_context))
1862
  else:
@@ -3204,7 +3202,7 @@ def generate_veterinary_welcome_message(phone_number=None, user_context=None):
3204
  """Generate veterinary welcome message"""
3205
  return (
3206
  "🏥 *Welcome to Apex Biotical Veterinary Assistant*\n\n"
3207
- "I'm your intelligent veterinary assistant. How can I help you today?\n\n"
3208
  "📋 *Main Menu:*\n"
3209
  "1️⃣ Search Veterinary Products\n"
3210
  "2️⃣ Browse Categories\n"
 
1838
  current_menu='product_inquiry',
1839
  current_menu_options=list(MENU_CONFIG['product_inquiry']['option_descriptions'].values())
1840
  )
1841
+ await send_product_image_with_caption(from_number, selected_product, user_context)
 
1842
  else:
1843
  send_whatsjet_message(from_number, get_menu_validation_message(current_state, user_context))
1844
  elif current_state == 'all_products_menu':
 
1854
  current_menu='product_inquiry',
1855
  current_menu_options=list(MENU_CONFIG['product_inquiry']['option_descriptions'].values())
1856
  )
1857
+ await send_product_image_with_caption(from_number, selected_product, user_context)
 
1858
  else:
1859
  send_whatsjet_message(from_number, get_menu_validation_message(current_state, user_context))
1860
  else:
 
3202
  """Generate veterinary welcome message"""
3203
  return (
3204
  "🏥 *Welcome to Apex Biotical Veterinary Assistant*\n\n"
3205
+ "How can I help you today?\n\n"
3206
  "📋 *Main Menu:*\n"
3207
  "1️⃣ Search Veterinary Products\n"
3208
  "2️⃣ Browse Categories\n"