title: Passing attribute from AWS Connect to Lambda using Python
body: <p>Stuck on a single step and doc searching isn't helping...</p>
  
  <p>In Connect I have:</p>
  
  <ol>
  <li>Store customer input : "What's your age?"</li>
  <li>Set contact attribute: age -> system -> stored customer input</li>
  </ol>
  
  <p>I know the above works because I've had a Play Prompt read back the attribute. </p>
  
  <p>I want Lambda to handle somethings with the age. I setup a function, I attached it to the Connect instance. I added it to the flow with a simple value pair response and that works (the Play Prompt plays back the non-dynamic response from Lambda).</p>
  
  <p>When I try to make it dynamic breaks.</p>
  
  <p>My understanding is that I should be able to get to this attribute in Lambda by using the passed JSON.... so I'm doing this:</p>
  
  <p>age = event["Details"]["ContactData"]["Attributes"]["age"]</p>
  
  <p>Connect starts saying it has trouble accessing the attribute and ends the call. What am I doing wrong? The rest of the Python code is fine because if I hard set age (age = 24) the code runs fine.</p>