Hi, my AI doesn't end conversations when someone i...
# 🤝help
p
Basically the conversations would go perfect until this part, and it becomes like this: AI: "Perfect, this is the link to book your first class, let me know when you have booked your appointment" User: ok AI: "Perfect, this is the link to book your first class, let me know when you have booked your appointment" user: I booked the class, thanks AI: "Perfect, this is the link to book your first class, let me know when you have booked your appointment" Is there anyway to make it pick up the social queue having in mind that i'm feeding it the transcript of the conversation already?
f
Hey @prehistoric-secretary-19665 welcome to the community
i think it would be useful here to see your workflow
r
You can use an "Intent" card to end the conversation if the user is trying to say goodbye!
c
Its about your Ai task. Promot engineering
b
can we stop the ability to send messages in the chat after the ending message of the bot?
f
read that wrong
let me check
b
tyvm
p
Hi, my bot is just an AI Card with all the instructions in there
I have another one with capturing cards but I like the flexibility of the AI Card

https://cdn.discordapp.com/attachments/1137105649344467095/1137117038184251412/Captura.PNG

That's basically what runs over an over if the person doesn't ask for a human
it works well but ir breaks when you send send something like "Ok" to "let me know when you have booked your appointment"
user: hi AI: Hi there! I'm John, an AI trained to help clarify all your questions. How can I assist you today? User: i want to know your prices AI: Sure! Here are the prices for our services: Express Detail: $150 Maintenance Wash: $150 Exterior Detail (Medium/Large): $200/$240 Interior Detail (Medium/Large): $250/$290 Basic Detail (Medium/Large): $240/$300 Premium Level 1 Detail (Medium/Large): $360/$400 Premium Level 2 Detail (Medium/Large): $570/$610 Premium Level 3 Detail (Medium/Large): $720/$770 Ceramic Coating (Medium/Large): $520/$640 If you're interested in booking, would you like me to send you the booking link? User: yeah AI: Sure! I will send you the booking link. Here it is: www.cardetailing.com. Please let me know when you have booked your appointment. *(Here it breaks)*User: ok AI: Sure! I will send you the booking link. Here it is: www.cardetailing.com. Please let me know when you have booked your appointment. User: yeah AI: Sure! I will send you the booking link. Here it is: www.cardetailing.com. Please let me know when you have booked your appointment. User:done AI: Sure! I will send you the booking link. Here it is: www.cardetailing.com. Please let me know when you have booked your appointment. User: hey i want more information AI: Sure! I will send you the booking link. Here it is: www.cardetailing.com. Please let me know when you have booked your appointment.
Does someone had a similar problem and figured out a prompt to fix that?
Maybe switching to GPT4?
I solved it
I added to the prompt an example of a perfect conversation and now it uses that as a guide
I will let this up because it may be useful for other people
Thanks JB and everyone for your consideration
b
can you tell me where you added the example of a perfect conversation?
p
This is the whole prompt, it's in the penultimate paragraph
That prompt goes into Task Instructions, in the AI Card

https://cdn.discordapp.com/attachments/1137105649344467095/1137121281800667249/Captura.PNG

If you need help with that I can help you
b
nice one, thanks for sharing
great work man🤩👏🏻
p
It's not perfect tho
it definetly has some artifacts
I think that when you start to add specificity to what you want it to make, the artifacts start to happen
so i'm tryin to get a more general prompt that stills work it's way to the end goal of asking the permission to send them the booking link and that it still works fine after that
b
i still think that even in your case, it will be useful to have an ending point of the conversation
waiting for @freezing-printer-49373 on that matter
f
hey about your conversation, is it that you want to erase the history for the user?
usually what we see is people just let their user know they have reached the end of the conversation
and if users want to talk again it's clear its going to be a new conversation
p
nono
i want it to not send the same message multiple times
like this

https://cdn.discordapp.com/attachments/1137105649344467095/1137143719422857298/Captura.PNG

f
sorry i was answering this message from remoose: can we stop the ability to send messages in the chat after the ending message of the bot?
p
oh, ok
f
i thought you said you solved your issue ?
p
but is there a way to stop it sending messages that dont make that much sense?
f
you mean you are struggling to sandbox the AI message?
ah ok you are still facing the loop issue
p
yeah
f
from the screenshot ? thats what you mean
p
yeah
f
is this still how it is swt up?
p
if I ask the prices again or other question it will give me the info and de-loop, but if I say, ok, done, ready, or things like that, it sends the same message, no one that is cohesive to the conversation
yes
it is still setted up like that
f
eh
well you set it up in a way that will loop forever
loop*
p
I want it to loop so it gives the user a feeling that they are having a conversation with someone real
f
you could prompt the user afterwards and say is there something else i can help you with? maybe loop back if appropriate, if no just say thank you for coming aand end the conversation
oh
do you want to limit the amount of turns maybe
you could also pass it the conversation history and tell it to avoid repeating itself?
add something like try to vary the conversation here is the conversation so far: {{conversation.SummaryAgent.transcript}}
would that fit your desired behaviour?
p
yeah, I added that in my prompt, but the artifact still occurs
basically happens when the user send a short message like "ok", "nop", done"
something like this
nop Conversation Started AI Task Completed – 1353 ms Our BJJ classes for beginners are priced at €115, our BJJ kids' classes are priced at €100, and our No-Gi classes are priced at €60. Would you like to know more about the class schedules or how to book a free class? Conversation Ended nop Conversation Started AI Task Completed – 1142 ms Our BJJ classes for beginners are priced at €115, our BJJ kids' classes are priced at €100, and our No-Gi classes are priced at €60. Would you like to know more about the class schedules or how to book a free class? Conversation Ended nop Conversation Started AI Task Completed – 1345 ms Our BJJ classes for beginners are priced at €115, our BJJ kids' classes are priced at €100, and our No-Gi classes are priced at €60. Would you like to know more about the class schedules or how to book a free class?
It's like it's only taking into consideration the last message when crafting its message
i will try specifying that it has to take into consideration the last five messages
mmm this happens
hi Conversation Started AI Task Completed – 637 ms Hello! How can I assist you today? Conversation Ended i want to know the prices Conversation Started AI Task Completed – 1817 ms We offer BJJ classes for beginners and advanced students, as well as No-gi classes and kids' classes for beginners and advanced levels. The prices for our BJJ classes are €115. The prices for our BJJ kids' classes are €100. The prices for our No-Gi classes are €60. To schedule a free BJJ class, it must be done through this link: https://graciebarravalencia.es/reservas/. To schedule a free BJJ kids' class, it must be done through this link: www.to_replace.com. Conversation Ended ok Conversation Started AI Task Completed – 1694 ms Our BJJ classes for beginners are priced at €115, while our BJJ kids' classes are priced at €100. Additionally, we offer No-Gi classes at €60. If you would like to schedule a free BJJ class, you can do so through this link: https://graciebarravalencia.es/reservas/. For scheduling a free BJJ kids' class, please visit www.to_replace.com. Let me know if there's anything else I can assist you with! Conversation Ended ok Conversation Started AI Task Completed – 973 ms I'm glad I could help! If you have any other questions or if you're ready to schedule a free class, feel free to let me know. I'm here to assist you!
it works a better but it still repeats the message after putting in the prompt: Take into consideration the 5 last messages between you and the user and respond to the user
i want to know the prices Conversation Started AI Task Completed – 1293 ms Our prices for BJJ classes are €115. For BJJ kids' classes, the price is €100. And for No-Gi classes, the price is €60. Let me know if there's anything else I can assist you with! Conversation Ended ok Conversation Started AI Task Completed – 1070 ms Our prices for BJJ classes are €115. For BJJ kids' classes, the price is €100. And for No-Gi classes, the price is €60. Let me know if there's anything else I can assist you with! Conversation Ended ok Conversation Started AI Task Completed – 1198 ms Our BJJ classes are priced at €115, while our BJJ kids' classes are priced at €100. Additionally, our No-Gi classes are priced at €60. If you have any other questions, feel free to ask!
I think this will work if i changed it to gpt 4, but it doesn't allow me
f
hmm no i dont think GPT4 would fix this. There is most likely a solution to this. I would recommend pinging Gordy or Louis on monday, they can probably take a deeper look.
p
@acceptable-kangaroo-64719 @green-whale-28135 Hi
Could you help me with this?
a
Hey @prehistoric-secretary-19665, it sounds like your bot is having trouble distinguishing smalltalk phrases (like yes, no,bye, etc) from genuine knowledge queries. AM I understanding that right?
4 Views