Is it possible to send a variable to watson conversation?
This is simply what I'm trying to do. Get Slack Username Save the username as a context variable When the user talks to the chatbot it will say, Hello username without the need for a user input.
I have read about additional_context but I cannot seem to find anywhere how to use it. This is my function that processes the slack text before it goes to Watson conversation
msg._payload = msg.payload;
msg.payload = msg._payload.event.text;
msg.additional_context = msg._payload.event.user
node.send(msg); // Send the message long to the next node
If I look in the debug node, the additional_context key returns the user Id correctly, But I don't know how to "fetch" it from inside a Conversation node.
Thanks in advance
node.send(msg)in function node,return msgis the usual way send the msg to the next node. - hardillb