Versions Compared

Key

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

...

  1. You need to assign variables within a session to the values that you wanted to capture.
    You can use the originalRequest object to pass on the parameters within a session. Typically through the Bot In Parser of the Bot Provider V2 node.

  2. You need to call these variables in the Experience designer flows.
    You can get the parameters in the originalDetectIntentRequest object.

In the below example, we have captured the cookie from msg.req.headers.cookie and assigned it to a variable cookie_id, and sent it to the session.

  1. Copy the below code to the 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. You can see the variable cookie_id at msg.payload.originalDetectIntentRequest.payload.cookie_id

...

Filter by label (Content by label)
kb-how-to-article
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@130ffshowSpacefalse
sortmodified
typeshowSpacepagefalse
reversetruelabels
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "OCS"
labelskb-how-to-article