New to BotPress, really awesome! how do I move to ...
# 🤝help
h
In my workflow, the user can ask a question and the answer comes from the KB. But, after that, how do I trigger the node to ask if the user wants a demo? Ideally, I would like the user to be able to keep asking questions until a 5 second pause. Then, after a 5 second pause, the next node should trigger to ask for a demo.

https://cdn.discordapp.com/attachments/1130117765185933403/1130117765303369769/Screen_Shot_2023-07-16_at_8.41.13_PM.png

I tried a Transition label: "if user doesn't type a message for five seconds, move to next node" which equaled: !event.payload.text && event.channel !== 'emulator'

https://cdn.discordapp.com/attachments/1130117765185933403/1130118339985932289/Screen_Shot_2023-07-16_at_8.45.30_PM.png

d
Not sure if this will help... After knowledge base answer add another question such as did this answer your question? If yes, move to next node. If no, loop back to top of check-knowledge. Or ask, do you have any other questions? If yes, loop back. If no, move to next node
h
Thanks for the reply @delightful-planet-47581 ... for the "do you have any other questions", would I use a "confirmation" capture? Or, is there another type of capture I should use?

https://cdn.discordapp.com/attachments/1130117765185933403/1130122142755852409/Screen_Shot_2023-07-16_at_9.01.07_PM.png

d
I use single choice
h
It gets me into this loop where it does the "small talk" and the capture information "do you have any other questions" at the same time.

https://cdn.discordapp.com/attachments/1130117765185933403/1130122966978539650/Screen_Shot_2023-07-16_at_9.03.56_PM.png

https://cdn.discordapp.com/attachments/1130117765185933403/1130123582173884556/Screen_Shot_2023-07-16_at_9.07.21_PM.png

d
Hard to tell, but try putting a raw input card at top of check knowledge asking the user what they would like to know
h
I pulled the capture info card into a new node, but now it won't go from "answer from knowledge" to "any more questions"?

https://cdn.discordapp.com/attachments/1130117765185933403/1130125189779300422/Screen_Shot_2023-07-16_at_9.12.30_PM.png

what transition should i use to move from a "knowledge base" answer to the new node?
d
use an expression. turn off the blue ai star thing and type true as the condition
h
I've used a transition and set it to "true"...

https://cdn.discordapp.com/attachments/1130117765185933403/1130128228275728487/Screen_Shot_2023-07-16_at_9.24.58_PM.png

but now it automatically moves to the prompt about "do you have any other questions" again

https://cdn.discordapp.com/attachments/1130117765185933403/1130128443560955985/Screen_Shot_2023-07-16_at_9.26.17_PM.png

d
edited - ignore
Remove "what are you interested in learning about today?" from small talk. Instead add this question as a raw input at start of check knowledge node
h
i get this now

https://cdn.discordapp.com/attachments/1130117765185933403/1130130573176873081/Screen_Shot_2023-07-16_at_9.34.54_PM.png

d
The Hi, I'm Kadoo bit is fine as a message. When you ask the question what they want to know - do so in a seperate card using raw input as the type of value to extract
h
I separated the welcome into a separate greeting node with "Always" transition and get the same thing

https://cdn.discordapp.com/attachments/1130117765185933403/1130132124456992768/Screen_Shot_2023-07-16_at_9.40.44_PM.png

ahh, i see.
okay, i'll try that now
d
👍
h
that worked!!
thank you so much!!
(that's the shared chatbot)...gonna keep learning and working on this. But, it's really awesome.
thank you again!
d
You're welcome. Good luck!
Just noticed, you may want to put the first message back into small talk
e
would love to see the result
43 Views