https://discord.gg/botpress logo
Follow a specific workflow after sending a whatsap...
# 🤝help
h
Hi, I have an issue with my bot. I’d like a specific workflow to be followed after sending a template message. Right now, I’ve set up a trigger in the Main Flow connected to the WhatsApp “Send Message Template” card, and the message is sent correctly. However, as soon as the user replies, the conversation starts again from the Main Flow’s Start node. Does anyone have a solution?
l
Hello @happy-oxygen-16468 🙂 Can you drop some screenshots of your workflow please?
r
Sounds like the bot is resetting to the Main Flow’s Start node after the template reply. Are you handling the user’s reply in the same flow as the template, or only in the Main Flow? Also, are you using session variables to keep track of the conversation? Knowing this will help pinpoint why it restarts.
w
Is the node with the WhatsApp template card connected to your flow? If yes, is it connected to an Autonomous Node or a standard node with a text or input card? As suggested by Ross, please post a screenshot of your workflow.
h
@loud-crowd-60573 @red-australia-3790 @white-nest-40686 This is the trigger in the Main Flow: - the trigger captures the event - the execute code pulls data from the event variable and stores it in workflow variables - using the Start Conversation card (or Send Template Message) I send the template message After sending, I already tried setting a transition to another workflow, but as soon as the user replies it always starts again from the Main Flow. I also tried placing a Wait for User Input after Start Conversation, but no luck—it keeps restarting from the Main Flow’s Start. https://cdn.discordapp.com/attachments/1434991276851331193/1435220660493357146/Immagine_2025-11-04_114812.png?ex=690b2ce6&is=6909db66&hm=573849a38505d3f29ef2a7c5a1aa0ae116af398d65c269b711ccff6898ebad85& https://cdn.discordapp.com/attachments/1434991276851331193/1435220661642592387/Immagine_2025-11-04_114842.png?ex=690b2ce6&is=6909db66&hm=a52d644a1e429853eeca74a5f70118b6c742683a2650e3fd2ae40df553c2e2e4& https://cdn.discordapp.com/attachments/1434991276851331193/1435220662171205673/Immagine_2025-11-04_115209.png?ex=690b2ce6&is=6909db66&hm=8b6593ec66b0684ad8a3ac1ad9854d5e5ffe9b758e7c2c24f4cb472dd826f894&
w
well if you want the conversation to follow a specific workflow you would need to connect the "start conversation" node to the workflow
what happens currently is the conversation ends after the "start conversation" node, which makes the conversation restart from the main start node when another message is received
w
Where do you want to go after the template message? Do you have different templates that should go to different flows, or must they all go to Controllo_abbonamento?
h
Right, exactly. The problem, however, is that even if I connect another workflow after the Start Conversation card, as soon as the user replies it doesn’t stay in that workflow — it restarts from the Main Flow’s Start.
After the Send Template card, I should create an AI transition that routes the user to a specific workflow based on the template message sent. For example: If I send this template message: “Hi [name], were you able to stick to your diet today?” it should then go to the Nutritionist Workflow. Or, If I send this template message: “Hi [name], do you need a hand with today’s workout?” it should then go to the Personal Trainer Workflow.
w
could you try implementing it in the way you described above so i can check if everything's done right?
maybe it's a problem with the transition that ends the conversation
w
I think that the '*Send Template*' card does not wait for user input, and the bot starts from the Main workflow when it receives the user message. I suggest connecting the Start node to an Autonomous node to use as a router with the logic you want to implement with the AI transition
w
yeah that is also my rationale
the conversation ends somehow after sending the template, either because 1. there's nothing 2. there's an AI transition but no paths are taken and the conversation crashes and ends
then, after either, the conversation restarts from the beginning
w
Insert into the AN your workflows, in this way they are use as tools for Autonomous Node and if you need you can insert on each workflow card additional instruction
7 Views