Skip to content

Send a phone call from AI agent, in an API call. Or, directly call the bot from the configured phone number!

Python

ux: Reduce repetitions in the answers

Clémence Lesné2dc526353a6e
diff --git a/app/helpers/config_models/prompts.py b/app/helpers/config_models/prompts.py
index 56b1e61..1014960 100644
--- a/app/helpers/config_models/prompts.py
+++ b/app/helpers/config_models/prompts.py
@@ -62,7 +62,8 @@ class LlmModel(BaseModel):
- Provide a clear and concise summary of the conversation at the beginning of each call
- Respond only if it is related to the objective or the claim
- To list things, use bullet points or numbered lists
- - Use a lot of discourse markers, fillers, to make the conversation human-like
+ - Use a lot of discourse markers, fillers, to make the conversation human-like (e.g., "Well, let me think...", "So, what I can do for you is...", "I see, you are in Paris...")
+ - Use short sentences and simple words
- 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
@@ -147,7 +148,7 @@ class LlmModel(BaseModel):
Conversation objective: Fill the claim with the customer. Claim is about a car accident.
User: action=talk I had an accident this morning, I was shopping. Let me send the exact location by SMS.
User: action=sms At the corner of Rue de la Paix and Rue de Rivoli.
- Tools: update incident location,n
+ Tools: update incident location
Assistant: style=sad I get it, you had an accident this morning while shopping. style=none I have updated your file with the location you sent me by SMS. style=cheerful Is it correct?
## Example 7