title: How to access sessionAttributes values from amazon lex response in Amazon Connect?
body: <p>I have set the value of session attribute in my lambda function response, which I am getting in amazon lex after invoking it from Lex. But, When I tried to access this value in Amazon connect using -</p>
  
  <p><strong>$.Lex.SessionAttributes.dateFlag</strong></p>
  
  <p>I am not able to access it.
  I have already tried using Type as external and Lex Attributes.</p>
  
  <p>I am putting the condition in amazon connect based on the values received from Above. 
  In logs I found that the condition where I am comparing this value comes to false.</p>
  
  <p>Can anyone suggest some idea on how to get the custom value/sessionAttribute values from Lex/Lambda in Amazon Connect.</p>
  
  <p>Below is my response JSON from Lex. I am trying to access the dateFlag.</p>
  
  <pre><code>{
    "dialogState": "Fulfilled",
    "intentName": "suitabletime",
    "message": "Thanks for the confirmation",
    "messageFormat": "PlainText",
    "responseCard": null,
    "sessionAttributes": {
      "dateFlag": "1",
      "previousIntent": "suitabletime"
    },
    "slotToElicit": null,
    "slots": {
      "date": "2018-09-14",
      "time": "13:00"
    }
  }
  </code></pre>