https://discord.gg/botpress logo
Bot Initialization
# 🤝help
a
I have created a bot but I would like the bot to initiate the conversation with the user. Right now, the user has to say something before the workflow is triggered. I've tried using a custom trigger to do this but it's not working as I expected and if the user tries to start a new session, the previous session is displayed and it's not following the workflow. I am trying not to use too much of the AI functionality as the costs can spiral. I am new to Botpress - what am I doing wrong or is there a way to get around this please? https://cdn.discordapp.com/attachments/1386449593084153947/1386455479462662295/image.png?ex=6859c4c9&is=68587349&hm=671627ec14a6a2830ba2d70bfa820c2f5e8ff53b8fc2cbbf12bb012d0c7bb793& https://cdn.discordapp.com/attachments/1386449593084153947/1386455480062181556/image.png?ex=6859c4c9&is=68587349&hm=16a2a35e4973dbf9c15762a612c61b4e5abec83566dbf5f3275e33125c36f0be&
I followed the instructions in this video:

https://www.youtube.com/watch?v=CLw2Mwd3euQ▾

Scenario: 1. I click a button on a website which opens a new tab with the Botpress chat 2. Botpress chat opens but it's showing previous chat history (where the user had to enter a message to start the conversation) 3. I expand the navigation tab to the left of the screen and tried to open a new conversation (see screenshot) 4. Click this button doesn't open a new conversation but the workflow starts in the same conversation I will have users clicking the button on the website multiple times and I would like them to start the journey from the start every time. It's nice that the user has the option to view previous conversations but with my current flow/based on what I'm trying to do - it makes it an awkward user experience/confusing for the user if the previous chat history is displayed (even if the new conversation button is selected). As addition to the above. Once the chat session has ended and the user clicks the new conversation, the previous chat is displayed and the users details persist. Second screenshot shows Test55 completing a journey and ends the chat. Test55 clicks new conversation, the same chat window is displayed but a new tab (Test55 (1)) is now displayed with the previous chat history. Clicking on Test55 and then clicking on Test55 (1) refreshes the chat window and the start of the workflow is displayed. This can be confusing to the user. Is this expected?
p
have you tried using teh conversation started trigger instead of the custom one?
a
Hi Leanne, I've tried the conversation started trigger. I feel like the conversation started trigger functionality works inconsistently. When an existing user chat session has ended, if the user closes the web chat and returns, the old session is still displayed. How can I force a new chat session (from the very beginning of the workflow) to be triggered instead of the old (ended) session to be displayed? If the user selects the "New conversation" button on the left, the new conversation is sometimes started in the old chat session and sometimes a completely new chat session is created. How can I tackle this inconsistency please? If the new session is triggered in the old session chat, the workflow doesn't trigger and the chat sometimes stalls after the user enters details and the user is stuck waiting for the bot to do something. However, if the user clicks the new conversation button twice (quickly), a brand new chat session is displayed (and the very beginning of the workflow is triggered). All of the above is while using the conversation started trigger. Please let me know if you need more details.