I’m using gpt 4o mini.
I’[ve written a chatbot that can be attached to any website where it functions as customer support.
It works great apart from one issue.
I have set it up so it can push the visitor to a different web page.
I do this by asking it in the prompt to inject the url into the response like this {linkgoeshere}
I’ve provided 10 examples in the prompt of how this should occur like this:
Example:
[YOU]Would you like me to take you to the pens?[VISITOR]:ok
[YOU]{urlgoeshere}
However it keeps failing to work and worse - repeats itself.
Here is a recent exchange with someone testing the system on a website:
Visitor:do you stock bushes for baron kits
AI: yes we do stock bushes for pen kits. would you like more information
Visitor:yes
AI: would you like to see the options for the bushes and barrel trimmers
Visitor:yes
AI: would you like me to show you the available options for the bushes and barrel trimmers
Visitor:yes
AI: would you like me to take you to the available options for the bushes and barrel trimmers
Visitor: Yes
AI: would you like me to show you the available options for the bushes and barrel trimmers now?
Visitor:yes
AI: would you like me to take you to the available options for the bushes and barrel trimmers?
Visitor:I give up.
How can I prevent this?
The prompt contains the last 10 messages from the conversation as reference and says ‘don’t repeat yourself’
Any pointers very welcome.
Many Thanks
Simon