https://discord.gg/botpress logo
#🤝help
chatbot prematurely ends
# 🤝help
h

hallowed-accountant-71239

02/18/2024, 12:39 AM
Hi I setup my chat bot with a welcome message in a text card and I have a capture information card where I ask a question to my user below that. When I go to test my chat bot it ends the conversation after my welcome text. Anyone able to help?
g

glamorous-guitar-39983

02/18/2024, 12:43 AM
Could you send pictures of your bot set up, a view from the botpress editor (where you set up all your cards and nodes)
h

hallowed-accountant-71239

02/18/2024, 12:56 AM
i thought maybe it was something that needed to be enabled in the agent so i enabled html agent but that didnt fix the problem
g

glamorous-guitar-39983

02/18/2024, 1:06 AM
can you send me the code you used in your expression cards
l

limited-pencil-78283

02/18/2024, 1:45 AM
HITL agent is not required I see after the welcome message you have a capture card followed by two expression cards one pointing to a node where city details etc are happening, while the second one you are still building up. In the expression cards in the "if answer is abc" is "answer" the variable in which you are storing the value the user enters? ideally it should have been something like workflow.answer It would be good to see the logs as well. As well as the capture card configuration
g

glamorous-guitar-39983

02/18/2024, 4:44 PM
Need to mention that your single choice doesn't get you anywhere except if you type something else than the choices in the chat like dfghgfsdhsfgdfgs
It is the little circles besides the single choice that you need to link
h

hallowed-accountant-71239

02/18/2024, 4:54 PM
expression card
i linked the answers from the 2 circles in the expression cards not from the capture info, is that the right way to do it?
g

glamorous-guitar-39983

02/18/2024, 5:08 PM
I'm pretty sure your error is on the first node
I'm gonna send you a picture of what I would do
Your expression cards are useless
btw I do not even think that the code in your expression cards were used the right way If you really really wanted to use expression cards you could have stored the variable of the single choice inside workflow.input, and then make 2 expression cards : workflow.input === 'Buy' workflow.input === 'Sell'