https://discord.gg/botpress logo
Cannot trigger secondary Workflow using Custom Tri...
# 🤝help
a
Hello community, I am attempting to set up an isolated test for a Human-in-the-Loop (HITL) integration without modifying my Main Workflow. I need a user typing the exact keyword 'hitl' to immediately jump to my secondary workflow,
HITL_Direct_Workflow
. ### 🎯 Objective: Trigger
HITL_Direct_Workflow
via a Global Trigger based on a simple incoming message text ('hitl'). ### ❌ Issue Encountered: The trigger is created, but when typing 'hitl' in the chat, the workflow does not activate (the conversation stays in the Main Flow or terminates). ### 🛠️ Solutions Attempted: 1. Trigger Used:
Custom Trigger (advanced)
(I chose this because
Intent Triggered
is disabled, as shown in the attached image, and I want to avoid using
Webhook Event
if possible). 2. Configuration: * Event Type:
bp/webchat/message/incoming
(Listening to incoming messages). * Condition/Filter Expression:
{{ event.payload.text == 'hitl' }}
* Target Node: Points directly to the
Entry
node of my
HITL_Direct_Workflow
. 3. Validation: The
HITL_Direct_Workflow
is currently grayed out (inactive) because it is not called by the Main Flow, confirming it relies entirely on the Global Trigger for activation. ### ❓ My Question to the Experts: Is there a specific restriction preventing a
Custom Trigger (advanced)
from listening globally to
bp/webchat/message/incoming
when its target workflow is inactive/secondary? Should I use a different event type or wrap the condition differently? Any guidance on how to force the activation of an isolated workflow via a simple keyword filter would be greatly appreciated! Thank you!
w
The [Custom trigger](https://botpress.com/docs/webchat/interact/send-custom-events/to-webchat) is for the webchat; it receives the events triggered by the page
a
thanks this case is solved !
2 Views