Skip to Content
0
Sep 10, 2019 at 12:40 PM

Quick Replies not displaying correctly when displayed with multiple replies

92 Views

Hi all,

I'm using the Web Chat to test my bot. If I create an answer that has more replies in it my Quick Replies card is displayed but without buttons.

Here's the example

Here's the code of the Response.

{
  "nlp": {
    "uuid": "5ad6a30a-23f2-4310-af0a-b96229da7c40",
    "intents": [
      {
        "slug": "startintent",
        "confidence": 0.6,
        "description": null
      }
    ],
    "entities": {},
    "language": "en",
    "processing_language": "en",
    "version": "1906.0.2",
    "timestamp": "2019-09-10T12:29:56.616486+00:00",
    "status": 200,
    "source": "start game",
    "act": "command",
    "type": null,
    "sentiment": "neutral"
  },
  "qna": {},
  "messages": [
    {
      "type": "text",
      "content": "Welcome to GAME_NAME.  I will ask you 5 questions, try to get as many right as you can. Just say the number of the answer. Are you ready?"
    },
    {
      "type": "card",
      "content": {
        "title": "Card title",
        "subtitle": "Card Subtitle",
        "imageUrl": "https://materializecss.com/images/sample-1.jpg",
        "buttons": [
          {
            "title": "Card button 1 title",
            "value": "Card button 1 value"
          },
          {
            "title": "Card button 2 title",
            "value": "Card button 2 value"
          }
        ]
      }
    },
    {
      "type": "quickReplies",
      "content": {
        "title": "Quick Reply Test",
        "buttons": [
          {
            "title": "QR button 1 title",
            "value": "QR button 1 value"
          },
          {
            "title": "QR button 2 title",
            "value": "QR button 2 value"
          }
        ]
      }
    },
    {
      "type": "buttons",
      "content": {
        "title": "Button List",
        "buttons": [
          {
            "title": "BL button 1 title",
            "value": "BL button 1 value"
          },
          {
            "title": "BL button 2 title",
            "value": "BL button 2 value"
          }
        ]
      }
    }
  ],
  "conversation": {
    "id": "test-1568118590059",
    "language": "en",
    "memory": {
      "_JOVO_STATE_": "StartState"
    },
    "skill": "startintent",
    "skill_occurences": 1
  },
  "logs": {
    "input": "start game",
    "logs": [
      {
        "level": "info",
        "code": "I_SKILL_TRIGGERED",
        "data": {
          "skill_id": "d529e635-cf14-450a-84f1-0eebb701142f",
          "reason": "TRIGGERS_OK",
          "message": "skill startintent has been triggered"
        }
      },
      {
        "level": "info",
        "code": "I_REQUIREMENTS_OK",
        "data": {
          "skill_id": "d529e635-cf14-450a-84f1-0eebb701142f",
          "message": "requirements of skill startintent validated, executing actions"
        }
      },
      {
        "level": "info",
        "code": "I_EXECUTE_ACTION",
        "data": {
          "type": "http",
          "value": {
            "messages": [
              {
                "type": "text",
                "content": "Welcome to GAME_NAME.  I will ask you 5 questions, try to get as many right as you can. Just say the number of the answer. Are you ready?"
              },
              {
                "type": "card",
                "content": {
                  "title": "Card title",
                  "subtitle": "Card Subtitle",
                  "imageUrl": "https://materializecss.com/images/sample-1.jpg",
                  "buttons": [
                    {
                      "title": "Card button 1 title",
                      "value": "Card button 1 value"
                    },
                    {
                      "title": "Card button 2 title",
                      "value": "Card button 2 value"
                    }
                  ]
                }
              },
              {
                "type": "quickReplies",
                "content": {
                  "title": "Quick Reply Test",
                  "buttons": [
                    {
                      "title": "QR button 1 title",
                      "value": "QR button 1 value"
                    },
                    {
                      "title": "QR button 2 title",
                      "value": "QR button 2 value"
                    }
                  ]
                }
              },
              {
                "type": "buttons",
                "content": {
                  "title": "Button List",
                  "buttons": [
                    {
                      "title": "BL button 1 title",
                      "value": "BL button 1 value"
                    },
                    {
                      "title": "BL button 2 title",
                      "value": "BL button 2 value"
                    }
                  ]
                }
              }
            ],
            "fallback": null
          }
        }
      }
    ]
  },
  "hasDelay": true,
  "hasNextMessage": true
}

As you can see the JSON is well formatted and contains all the properties needed. If I try to display just the Quick Replies it works correctly.

Attachments