Constant button that when pressed goes to another ...
# 🤝help
p
I am trying to get this constant button on and it works fine. I got it by adding a choise to the user input capture card. The issue is that this choise makes the bot send an empty string, so when it answers i get the answer and right after it another empty bubble. How can I configure this workflow to not send that empty bubble?
g
Whats the button for?
p
once pressed it runs a specific other node, rather than the default workflow it should be on
g
Ah yes
Did you add a button to each user input card ?
and i the only way to not get this bubble is to remove the choise, but i need something like that
it doesn't send any empty bubble in the emulator, only in the actual bot
g
What is the execute code card for?
Consider showing the rest of the flow if possible because the issue might also be elsewhere
p
pushes the user input string into an array
i dont think the issue is elsewhere cause if i remove the choice from that userMessage card then it works fine
e
Could you share a screenshot of the userMessage card?
with expanded settings
p
certainly
here it is
g
I think its because you left the text field empty
Instead, you should write in your text field : Hey there!I'm having a great day. How can I assist you?
And remove the other message
p
but that's what I want... i don't want the bot to send any other message, else it would be something like: user: question bot: answer bot: Hey there!I'm having a great day. How can I assist you?
i want it to be just like a simple conversation (user, bot, user, bot ...), but with the choice button always there, in case the user wants to open a ticket
g
Ah, Im not sure how to do that. Lets hear @fresh-fireman-491 's solution for keeping the button during the whole conversation without having this bug
Im listening too, since I think that could be useful to me in the future too. Actually, if there is a solution, I think it should be added in FAQ or tutorials or both
e
The question needs to have a text otherwise it won't be rendered
Have a Start node with the "Hey there!" text, then it transitions to the Question node with the "How can I help?" capture
That way the greeting won't repeat
f
Guilhermy is completely right here, as always🦸‍♂️ The webchat V2 should comeout soon, and be open source, which should allow you to do this in a better way 🙂
p
but instead the "How can I help?" will repeat
e
It's a good idea to let the user know at what stage they are in the conversation, it's not a bad UX to repeat the question
If you write down or illustrate how the ideal conversation should go, we might be able to provide a better solution
p
the actual workflow is this: conversation started trigger; bot greets and waits for any question/greet; if user questions something, the bot searches the KB and answers; if user greets, ai transition comes in and goes to greet him again and ask "what can i help you with today?"; then the loop starts again from waiting for a question/greet/thank you/open ticket.
at the moment the "open ticket" card is called using the ai transition, which works better than normal intents for me tbh
but my problem with this is that the user might want to ask "what is a ticket?" and the bot interprets this as "oh he wants to open a ticket"
that's why i'm trying to use a button
maybe i could use like a counter variable that goes up by 1 every time the loop starts again and once it hits 3 or 4 i could redirect the workflow to a new node that has the choice and asks "would you like to open a ticket?"
26 Views