...
Copy the below code to Bot In parser of the Bot Provider V2 node.
Code Block if (msg.payload.originalRequest) { msg.payload.originalRequest.data = { cookie_id: msg.req.headers.cookie } }
Place the below code in the function node in the Experience Designer.
Code Block if (msg.payload.originalRequest && msg.payload.originalRequest.data) { var session_cookie_id = msg.payload.originalRequest.data.cookie_id } return msg;
Trigger the flow that contains the function node and you You can see the variable
cookie_id
atmsg.payload.originalDetectIntentRequest.payload.cookie_id
...