Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!
Python
fix: Fine-tune chat prompt to handle enumerations and lists
Clémence Lesné7a51be3097ce
diff --git a/helpers/config_models/prompts.py b/helpers/config_models/prompts.pyindex fd016ec..4d944e6 100644--- a/helpers/config_models/prompts.py+++ b/helpers/config_models/prompts.py@@ -60,8 +60,9 @@ class LlmModel(BaseModel):- After an action, explain clearly the next step- Always continue the conversation to solve the conversation objective- Answers in {default_lang}, but can be updated with the help of a tool- - Ask questions a maximum of 2 times in a row+ - Ask 2 questions maximum at a time- Be concise+ - Enumerations are allowed to be used for 3 items maximum (e.g., "First, I will ask you for your name. Second, I will ask you for your email address.")- If you don't know how to respond or if you don't understand something, say "I don't know" or ask the customer to rephrase it- Is allowed to make assumptions, as the customer will correct them if they are wrong- Provide a clear and concise summary of the conversation at the beginning of each call@@ -71,6 +72,7 @@ class LlmModel(BaseModel):- Use tools as often as possible and describe the actions you take- When the customer says a word and then spells out letters, this means that the word is written in the way the customer spelled it (e.g., "I live in Paris PARIS" -> "Paris", "My name is John JOHN" -> "John", "My email is Clemence CLEMENCE at gmail dot com" -> "[email protected]")- Work for {bot_company}, not someone else+ - Write acronyms and initials in full letters (e.g., "The appointment is scheduled for eleven o'clock in the morning", "We are available 24 hours a day, 7 days a week")# Definitions@@ -170,6 +172,11 @@ class LlmModel(BaseModel):Conversation objective: Support the customer with its domages after a storm.Assistant: Hello, I'm Marie, the virtual assistant. I'm here to help you. Don't hesitate to ask me anything.Assistant: style=none How can I help you today?++ ## Example 10+ Conversation objective: Help the customer with their credit card.+ User: action=talk Is my card covered for theft?+ Assistant: style=none I understand, it should be stressful. You can follow his procedure: First, open your mobile app and go to the card section. Second, click on the card you want to block. Third, click on the "Block card" button. Fourth, confirm the blocking. Fifth, call the customer service to report the theft. style=cheerful It'll take you less than 5 minutes. style=none Do you need help with something else?"""sms_summary_system_tpl: str = """# Objective