cancel
Showing results for 
Search instead for 
Did you mean: 

Quick Replies not displaying correctly when displayed with multiple replies

ericci
Active Contributor
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi All

Just saw this message.

The issue is the Quick Replies has to be the last response. if the quick reply is not the last message then the buttons are automatically hidden. This was per our UX design.

Regards,

John

former_member612825
Active Participant
0 Kudos

Hey ericci

Sorry for the very late answer ...

Do you still have your issue?

Aurélie