title: How to ADD Multiple Responses in AWS Lex
body: <p>I was trying to add Multiple Responses for AWS Lex using AWS Lambda Functions but I am facing this error.</p>
  
  <p>I was trying for<br>
  <a href="https://i.stack.imgur.com/tUyZD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tUyZD.png" alt="fig 1"></a></p>
  
  <p>But I am stuck at the message</p>
  
  <blockquote>
    <p>An error has occurred: Invalid Lambda Response: Received invalid response from Lambda: Can not construct instance of Message, problem: contentType must not be null at [Source: {"dialogAction": {"type": "ConfirmIntent", "message": {"messages": [{"contentType": "PlainText", "group": 1, "content": "Hello"}, {"contentType": "PlainText", "group": 2, "content": "My"}, {"contentType": "PlainText", "group": 3, "content": "Friend"}]}, "intentName": "CardsI", "slots": {"CardsB": null}}}; line: 1, column: 252]</p>
  </blockquote>
  
  <p>In Lambda Function we are using the following code for printing multiple responses </p>
  
  <pre><code>return {
      "dialogAction": {
          "type": "ConfirmIntent",
          "message": {
              "messages": [{
                      "contentType": "PlainText",
                      "group": 1,
                      "content": "Hello"
                  },
                  {
                      "contentType": "PlainText",
                      "group": 2,
                      "content": "My"
                  },
                  {
                      "contentType": "PlainText",
                      "group": 3,
                      "content": "Friend"
                  }
              ]
          },
          "intentName": "CardsI",
          "slots": {
              "CardsB": ""
          }
      }
  }
  </code></pre>
  
  <p>We even went through the documentations such as </p>
  
  <ol>
  <li><p><a href="https://docs.aws.amazon.com/lex/latest/dg/lambda-input-response-format.html#using-lambda-response-format" rel="nofollow noreferrer">https://docs.aws.amazon.com/lex/latest/dg/lambda-input-response-format.html#using-lambda-response-format</a></p></li>
  <li><p><a href="https://docs.aws.amazon.com/lex/latest/dg/howitworks-manage-prompts.html#message-groups" rel="nofollow noreferrer">https://docs.aws.amazon.com/lex/latest/dg/howitworks-manage-prompts.html#message-groups</a></p></li>
  <li><p><a href="https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#special-response" rel="nofollow noreferrer">https://docs.aws.amazon.com/lex/latest/dg/context-mgmt.html#special-response</a></p></li>
  </ol>
  
  <p>but we still are facing issue. Any help ?</p>