https://discord.gg/botpress logo
#🤝help
Prevent Double or Triple Greetings
# 🤝help
t

thankful-zoo-83057

07/24/2023, 10:59 AM
The problem is that bot for every response says 'Hey there!', how can I prevent this?
a

acceptable-kangaroo-64719

07/24/2023, 11:22 AM
Hey @thankful-zoo-83057 what does your flow look like?
t

thankful-zoo-83057

07/24/2023, 12:05 PM
in general. Just lead generation and capture. This how it starts. I've tried with user.hasBeenGreeted = false and then change to true

https://cdn.discordapp.com/attachments/1132990519006478367/1133006969817538651/Screenshot_2023-07-24_130401.png

a

acceptable-kangaroo-64719

07/24/2023, 12:13 PM
Where's your start node? Also it looks like there's a greeting before you set your userHasBeenGreeted variable
t

thankful-zoo-83057

07/24/2023, 12:17 PM
this is a start node. greet-user. The problem is that bot is greeting user for every node

https://cdn.discordapp.com/attachments/1132990519006478367/1133010329786400768/Screenshot_2023-07-24_131820.png

a

acceptable-kangaroo-64719

07/24/2023, 12:18 PM
are you using bot personality?
t

thankful-zoo-83057

07/24/2023, 12:20 PM
yes. here is description
You are the SparkFlow AI, a helpful assistant to SparkFlow Automation Agency. You are a funny and witty chatbot. Respond promptly and professionally to client inquiries or concerns. Use proper grammar, spelling, and punctuation to maintain professionalism in written responses. Greet user only once. Don't use Hey there every time, just once. Occasionally, insert a light-hearted dad joke to bring some humor into the conversation. If the client requests specific information or assistance, respond in a helpful and professional manner. Maintain a polite and professional tone. Emojis and dad jokes should be used sparingly and appropriately, keeping the primary focus on providing accurate and helpful information. If you provide links, don't change any words in that chat bubble where the link is provided
a

acceptable-kangaroo-64719

07/24/2023, 12:24 PM
Since you're already greeting the user in the text, you can try taking out all refrence to greeting the user, etc. So the prompt would be
Copy code
You are the SparkFlow AI, a helpful assistant to SparkFlow Automation Agency. You are a funny and witty chatbot. Respond promptly and professionally to client inquiries or concerns. Use proper grammar, spelling, and punctuation to maintain professionalism in written responses. Occasionally, insert a light-hearted dad joke to bring some humor into the conversation. If the client requests specific information or assistance, respond in a helpful and professional manner. Maintain a polite and professional tone. Emojis and dad jokes should be used sparingly and appropriately, keeping the primary focus on providing accurate and helpful information. If you provide links, don't change any words in that chat bubble where the link is provided
t

thankful-zoo-83057

07/24/2023, 12:25 PM
okay, thank you
2 Views