How can I stop the bot from saying certain phrases...
# 🤝help
b
Hello! I have a customer service bot integrated into a website. I have a problem with the bot, in some scenarios the bot gives a response to the user and in this response it gives a phrase that says something like "Visit our website", "You can find more information on our website" I want to stop the bot say these things since the user is already on the website, but I can't find anything about how to prevent the bot from saying certain phrases in the documentation. Can someone help me please? Or tell me if it is possible to change this?
f
Hey, Have you tried using the personality agent?

https://www.youtube.com/watch?v=Trgfs7m6484

b
Hi! I haven't. I'll check it out to see if changing the personality of the bot can help. Thanks!
f
Perfect, and let me know if it works out
m
Do you use the language cards?
b
I used the personality feature but it's still the same, it keeps saying the same things that I'm trying to avoid the bot to say. I told the bot to avoid to do that, but it keeps doing it.
I'm using a detection language, since this website is made for users that talk spanish
m
I think that can be weird sometimes
f
What is the prompt to the personality agent
And can you take a screenshot of the response from the bot that includes the unwanted message
b
This is the prompt I added on the Personality Agent: You are a customer service bot, to help people who visit the website, learn information and resolve questions about the dental clinic, and help users contact the clinic. Do not recommend visiting the website in any way, since the user is already on the website.
This is the conversation with the bot. As I say, it's for a Spanish website, if you have trouble understanding Spanish, I can do my best to translate it.
f
That is weird, can you add a report ID here
@square-energy-41150
s
# Sending a Problem Report Here's how to send the Botpress Team a problem report: 1. In the Botpress Cloud Studio, locate the "Help" icon in the bottom left corner of the screen. 2. Click "Report a problem" and follow the steps on the screen. 3. Copy the Report ID to your clipboard and provide it to a member of the Botpress Team on Discord.
message has been deleted
b
All right, I'll make a report then. Thanks for your help!
f
Perfect, and you are very welcome!
b
@fresh-fireman-491 Do I give you the ID report? Or to who can I share it?
f
You can share it here
Then someone from the Botpress team can take a look at it
b
Report ID: report_01HQV2W30JK40TTVMK1VKA63ZZ
p
You could consider running an AI task for each answer
So instead of giving the user the answer immediately, give the bot's response to an AI task and say, remove any reference to the website and experiment with the prompt until it effectively removes references to the website!
f
That could be a good way to do it for now, but it will have some costs with it, and even worse, it will delay the response time.
c
Hey Bassam, we could use your bot-building expertise here 🙂 !!! @famous-jewelry-85388 Report ID: report_01HQV2W30JK40TTVMK1VKA63ZZ Summary of the issue: The user encounters an issue with the bot where, in certain scenarios, it responds with phrases such as "Visit our website" or "You can find more information on our website." The user wants to prevent the bot from saying these things since the user is already on the website. However, there is no information in the documentation on how to restrict the bot from using specific phrases. Ps. @boundless-musician-4978 did try the Personality Agent.
b
@crooked-van-25152 @famous-jewelry-85388 Hello! I just wanna ask if there's an answer with my issue. At least I would like just to know if this can be fixed or not. Thanks
f
Hey @boundless-musician-4978 , The short answer is in your prompt, the long answer is how you built your bot. I took a look on your bot, but I don't know where do you retrieve info from the KB?
b
@famous-jewelry-85388 Yes, the information comes from the knowledge base, which comes from the website this bot is for.
f
Understood. Can you give me the steps to reproduce it?
b
The bot has an welcome messages and gives you a question on what can it help you. So you chose the sencond one "Quiero consultar información sobre la clínica" then you make this question "que tratamientos tienen" and the the bot will give you an answer with the phrases and I want the bot to avoid.
f
you can add something like
Only reply with the answer, don't add things like "visit our website"
in the KB context
b
That prompt is for the Personality Agent correct? in the PA it's where I added a prompt that don't give me the result I wanted
f
Ah sorry, turnoff the personality agent and the translator agent first
if it worked, re-add the translator agent, test, if worked, add the personality agent, test, tweak enhance, repeat 🙂
b
It worked for a moment, but when I added the translator agent back with a language set, it said phrases like "visit our website." again
f
let me check
can you test it from incognito
b
Hello @famous-jewelry-85388 sorry for not replying. I did try in Incognito, but it still doesn't work.
f
I have two thoughts. one, use execute code card to remove anything after your bullet points. Or two, use AI Generate Text to remove it
b
Hello @famous-jewelry-85388 I tried the two options you recommended and nothing works
79 Views