- Refinement of the chat client to have better visible clues for user vs chatbot messages
- Introduction of interview_phase and normal phase in TRAICIE_SELECTION_SPECIALIST to make interaction with bot more human. - More and random humanised messages to TRAICIE_SELECTION_SPECIALIST
This commit is contained in:
@@ -31,11 +31,12 @@ def get_default_chat_customisation(tenant_customisation=None):
|
||||
'progress_tracker_insights': 'No Information',
|
||||
'form_title_display': 'Full Title',
|
||||
'active_background_color': '#ffffff',
|
||||
'active_text_color': '#212529',
|
||||
'history_background': 10,
|
||||
'history_user_message_background': -10,
|
||||
'history_ai_message_background': 0,
|
||||
'history_message_text_color': '#212529',
|
||||
'ai_message_background': '#ffffff',
|
||||
'ai_message_text_color': '#212529',
|
||||
'human_message_background': '#212529',
|
||||
'human_message_text_color': '#ffffff',
|
||||
|
||||
}
|
||||
|
||||
# If no tenant customization is provided, return the defaults
|
||||
|
||||
@@ -57,9 +57,7 @@ def replace_variable_in_template(template: str, variable: str, value: str) -> st
|
||||
str: Template with variable placeholder replaced
|
||||
"""
|
||||
|
||||
current_app.logger.info(f"Replacing variable {variable} with value {value}")
|
||||
modified_template = template.replace(f"{{{variable}}}", value or "")
|
||||
current_app.logger.info(f"Modified template: {modified_template}")
|
||||
return modified_template
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user