Reply Messages with document headers
JSON Samples
Sample 1: Document header, body, 1 quick reply button
![](https://files.readme.io/1d57f7f-small-sample_1_reply_message_with_document_header.png)
Changes to be made to the below code snippet:
- Link to document URL
("header_value" key)
- Caption text
("caption" key)
- Body text
("body" key)
- Text for reply button
("title" key)
interactive:{"type":"reply","header_type":"document","header_value":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","caption":"Document Caption","body":"This is the body text","action":{"buttons":[{"type":"reply","reply":{"id":"1","title":"Button Title"}}]}}
Sample 2: Document header, body, footer, 1 quick reply button
![](https://files.readme.io/9ee819b-small-sample_2_reply_message_with_document_header.png)
Changes to be made to the below code snippet:
- Link to document URL
("header_value" key)
- Caption text
("caption" key)
- Body text
("body" key)
- footer text
("footer" key)
- Text for reply button
("title" key)
interactive:{"type":"reply","header_type":"document","header_value":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","caption":"Document Caption","body":"This is the body text","footer":"This is the footer text","action":{"buttons":[{"type":"reply","reply":{"id":"1","title":"Button Title"}}]}}
Sample 3: Document header, body, 2 quick reply buttons
![](https://files.readme.io/cb7f8cd-small-sample_3_reply_message_with_document_header.png)
Changes to be made to the below code snippet:
- Link to document URL
("header_value" key)
- Caption text
("caption" key)
- Body text
("body" key)
- Text for reply buttons
("title" keys)
interactive:{"type":"reply","header_type":"document","header_value":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","caption":"Document Caption","body":"This is the body text","action":{"buttons":[{"type":"reply","reply":{"id":"1","title":"First Button Title"}},{"type":"reply","reply":{"id":"2","title":"Second Button Title"}}]}}
Sample 4: Document header, body, footer, 2 quick reply buttons
![](https://files.readme.io/9168401-small-sample_4_reply_message_with_document_header.png)
Changes to be made to the below code snippet:
- Link to document URL
("header_value" key)
- Caption text
("caption" key)
- Body text
("body" key)
- footer text ("footer" key)
- Text for reply buttons
("title" keys)
interactive:{"type":"reply","header_type":"document","header_value":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","caption":"Document Caption","body":"This is the body text","footer":"This is the footer text","action":{"buttons":[{"type":"reply","reply":{"id":"1","title":"First Button Title"}},{"type":"reply","reply":{"id":"2","title":"Second Button Title"}}]}}
Sample 5: Document header, body, 3 quick reply buttons
![](https://files.readme.io/ae62d07-small-sample_5_reply_message_with_document_header.png)
Changes to be made to the below code snippet:
- Link to document URL
("header_value" key)
- Caption text
("caption" key)
- Body text
("body" key)
- Text for reply buttons
("title" keys)
interactive:{"type":"reply","header_type":"document","header_value":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","caption":"Document Caption","body":"This is the body text","action":{"buttons":[{"type":"reply","reply":{"id":"1","title":"First Button Title"}},{"type":"reply","reply":{"id":"2","title":"Second Button Title"}},{"type":"reply","reply":{"id":"3","title":"Third Button Title"}}]}}
Sample 6: Document header, body, footer, 3 quick reply buttons
![](https://files.readme.io/fcb2c42-small-sample_6_reply_message_with_document_header.png)
Changes to be made to the below code snippet:
- Link to document URL
("header_value" key)
- Caption text
("caption" key)
- Body text
("body" key)
- footer text
("footer" key)
- Text for reply buttons
("title" keys)
interactive:{"type":"reply","header_type":"document","header_value":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","caption":"Document Caption","body":"This is the body text","footer":"This is the footer text","action":{"buttons":[{"type":"reply","reply":{"id":"1","title":"First Button Title"}},{"type":"reply","reply":{"id":"2","title":"Second Button Title"}},{"type":"reply","reply":{"id":"3","title":"Third Button Title"}}]}}
Updated 8 months ago