https://discord.gg/botpress logo
problem with 2 triggers working together
# 🤝help
d
i am trying to use conversation started trigger and custom trigger (filtering {{ event.type === 'webchat:trigger' && event.payload }}) BUT it seems they cannot work together The conv.start is always in advance of the custom trigger any idea ?
w
aren't they the same thing?
d
no - the 1st starts the converstaion and the second checks if a webchat trigger (TN=1234567) exists
w
It's correct that the
conversation start
was triggered before; what do you need to do with the
custom trigger
?
d
HI i get an TN={{vouchernumber}} so to start from another node than the one the conver.start actually bypassing a node that ask for voucher number (since i get it from TN {{ event.type === 'webchat:trigger' && event.payload }})
l
Can you try using multiple workflows? @delightful-ram-23433
w
i think your webchat trigger also triggers the conversation started trigger
and whichever happens first takes priority
so in theory you would need to add a filter to the conversation started trigger to ignore events that match whatever you're trying to trigger on the other one
w
it should be helpfully but it's not in english 😔
w
yeah unfortunately haha but i've pretty much explained the solution we found below the link
2 Views