0

사용자에게 여러 응답을 보내려합니다. 예를 들어 이미지와 텍스트 블록 또는 텍스트 블록과 목록 일 수 있습니다.Facebook 메신저 봇, 여러 메시지 또는 페이로드 반환

지금까지이 작업을 수행 할 방법을 찾지 못했습니다. 페이로드가 표시되지 않거나 완전히 작동하지 않는 것으로 나타났습니다. 내가 잘못거야 위치에

{ 
    speech:"myMessage", 
    displayText:"myMessage", 
    data:{ 
     facebook:{ 
      "attachment": { 
       "type": "template", 
       "payload": { 
       "template_type": "list", 
       "top_element_style": "compact", 
       "elements": [ 
        { 
        "title": "£10", 
        "image_url": "http://example.com/example.jpg", 
        "subtitle": "An amazing t-shirt" 
        }, 
        { 
        "title": "£30", 
        "image_url": "http://example.com/example.jpg", 
        "subtitle": "Another amazing t-shirt" 
        }, 
        { 
        "title": "£40", 
        "image_url": "http://example.com/example.jpg", 
        "subtitle": "An amazing t-shirt" 
        } 
       ] 
       } 
      } 
     } 
    }, 
    contextOut:[], 
    source:"webhook" 
} 

어떤 아이디어 :

다음은 텍스트 블록 및 목록을 표시에서 시도의 예?

답변