Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. 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
        }
      }

  2. 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;
    Image Removed
  3. Trigger the flow that contains the function node and you You can see the variable cookie_id at msg.payload.originalDetectIntentRequest.payload.cookie_id

...