how do I add custom metadata to outgoing message f...
# đź’»developers
h
how do I add custom metadata to outgoing message from outgoing hook to chatbot? I have tried adding something like this, but its not working (this is beforeOutgoingMessage hook) outgoingEvent.test='1'; outgoingEvent.payload.metadata={'type':'contact'}; console.log(outgoingEvent); <---this shows custom meta data but chatbot doesnt get it in javascript code/event