How do we use Send Custom Event card in
# 🌎general
l
How do we use Send Custom Event card in studio, On using it , showing An unexpected error occurred.
w
Hi @little-gigabyte-31098 ! I am currently having the same issue. Did you find a way to fix this ?
l
hi @wonderful-guitar-98984 , You can store user_conversation_id in variable , and than you can send custom event
if (!workflow.user_conversation_id) { workflow.user_conversation_id = event.conversationId }
w
Thank you very much for your answer. But where are you supposed to put this code? What is variable user_conversation_id referring to ? I tried creating a Code Execution card at the beginning of the flow and putting this code, but it doesn't change anything.
l
hi @wonderful-guitar-98984 , I have used (Send Custom Event) card, You can use that card to send custom event to webChat(react or anything), Where you can catch event and process further
w
I understand the use case for this card, but how do you manage to make it work with the emulator ? as soon as the emulator reaches this card it triggers an error and stops
l
@wonderful-guitar-98984 have you handle or catch event in webchat appropriately? may be as same as trigger it wont work in emulator
configure webchat and handle event , and check again
52 Views