Spaces:
Running

axeronis commited on
Commit
3250508
·
1 Parent(s): 1f5dbf6

fix: read tone_of_voice from ai_settings JSON in AI memory manager

Browse files
backend/app/services/ai_memory_manager.py CHANGED
@@ -157,10 +157,10 @@ class AIMemoryManager:
157
  bot_name = ai_identity.get("bot_name", "AI Assistant")
158
  company = tenant.business_name or "Our Company"
159
 
160
- tone = tenant.tone_of_voice or "Professional"
161
- methodology = tenant.sales_methodology or "Consultative"
162
- custom_instructions = tenant.custom_instructions or ""
163
- banned_words = tenant.banned_words or []
164
  ideal_customer = ai_settings.get("ideal_customer_profile", "")
165
  business_description = ai_settings.get("business_description", "")
166
 
 
157
  bot_name = ai_identity.get("bot_name", "AI Assistant")
158
  company = tenant.business_name or "Our Company"
159
 
160
+ tone = ai_settings.get("tone_of_voice") or tenant.tone_of_voice or "Professional"
161
+ methodology = ai_settings.get("sales_methodology") or tenant.sales_methodology or "Consultative"
162
+ custom_instructions = ai_settings.get("custom_instructions") or tenant.custom_instructions or ""
163
+ banned_words = ai_settings.get("banned_words") or tenant.banned_words or []
164
  ideal_customer = ai_settings.get("ideal_customer_profile", "")
165
  business_description = ai_settings.get("business_description", "")
166