https://discord.gg/botpress logo
Botpress — detect origin workflow after jump
# 🤝help
m
I have three workflows. Workflow 1 and Workflow 2 both route users into Workflow 3. Inside Workflow 3, I need to know which workflow the user came from (1 or 2) so I can branch logic. Is there a built-in way to read the “previous/origin workflow” at runtime, or should I pass a custom flag (e.g., workflow.origin = "W1" / "W2") when triggering Go to workflow? Any recommended best practice?
p
I would recommend passing a variable to indicate which workflow you are coming from.