bots-node-sdk
bots-node-sdk copied to clipboard
Question: How to use NonRawMessage methods?
Hey guys,
I'm currently working on some custom webhook integration and plan is to switch from deprecated MessageModel to MessageFactory. Creating inbound messages (that will be sent to DA skill) work as intendend. However, I struggled a bit with outbound messages (received from DA skill). Previously I was extracting on my own all actions, globalActions, header and footer text. Now I saw there are already defined methods for it within NonRawMessage class but I don't know right way to call it.
new NonRawMessage().getGlobalActions(); does not except any argument and not quite sure how should I or should I pass somehow message payload to class constructor
Thanks in advance, Kind regards