https://discord.gg/botpress logo
Autonomous Node via trigger node
# 🤝help
s
Hi, I have a technical enquiry in bot building. I am building a AI Whatsapp bot for creating project details and briefs from my clients, and update on monday.com On change of stages on monday notifications need to be sent. In some notification cases the bot should take feedback from the user talking to him via llm and this feedback chat should have the context of project we have sent notification and update the feedback on monday. I am facing issue where an autonomous AI node connected through a trigger block is raising Main workflow start raather chat session there
l
are you passing the conversationId to the trigger block? How is the bot taking feedback from the user, via WhatsApp? if yes does the user provide context of the project so that the bot can gather information regarding the project from monday.com? How is this connected
s
I am saving all the users projects via code execution into a user.projects variable. Now taking the feedback is the issue i am unable to solve. The Template message thats triggered via webhook from monday has project Id, So auronomous node should technically understand what project that is in discussion from user.projects variable
l
user.projects will only be active when the bot is in conversation with a user, once the timeout occurs, it will loose its data. So if the payload is received when no conversation is active or there is no conversation reference then the bot will no have context A converstaionId and changing from user.projects to conversation.projects is what you will have to achieve to make this work
s
so i have a webhook trigger that on initiation should send a template message to user via whats app. after that user should be able to talk regarding that update i gave. So the trigger sends a templete of a project update. Now the user supposed to give feedback on the update and should converse with bot on that then run an action/workflow to update that feedback via an api call. https://cdn.discordapp.com/attachments/1377895592100892804/1381925712478601266/image.png?ex=68494a1c&is=6847f89c&hm=08071210c0bffe3252e4bb0ea3f58609e73bb1addc3a6b9e23ef17adabf7b418&
l
Add a wait for the user input card after the send template message card and capture the user input in {{event.preview}}