{"id":1337,"date":"2018-05-03T00:12:37","date_gmt":"2018-05-03T08:12:37","guid":{"rendered":"https:\/\/officedevblogs.wpengine.com\/?p=1337"},"modified":"2018-05-03T00:12:37","modified_gmt":"2018-05-03T08:12:37","slug":"replying-to-a-kaizala-message-or-action","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/replying-to-a-kaizala-message-or-action\/","title":{"rendered":"Replying to a Kaizala message or action"},"content":{"rendered":"<p>In this post, I will introduce the\u00a0<strong>replyToReferenceId<\/strong>\u00a0property that enables you to reply to a message or action (attachment, custom card, image, etc.) on Kaizala group. This is required when you want to have a threaded conversation using API [or] bot scenario where you want to reply to a specific user query.<\/p>\n<p>For this example, you start with sending a message to get a reference id and will subsequently use this reference ID to send a reply. If you are new to Kaizala APIs, would suggest you read the post <a href=\"https:\/\/kaizala007.blog\/2017\/12\/30\/getting-started-with-kaizala-apis\/\">Getting started with Kaizala APIs<\/a>.<\/p>\n<h2>Sending a message to a subscriber<\/h2>\n<p>For this example, I will send a message to a subscriber in a managed hub and spoke group using the\u00a0<strong>\/messages<\/strong>\u00a0endpoint directed to a subscriber. Refer below screenshot for an example. The response on success will return a\u00a0<em><strong>referenceId<\/strong><\/em>\u00a0\u2013 cache this for the next step.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-1338 size-full\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/06\/send-message-to-subscriber.png\" alt=\"Send a message to a subscriber in a public group\" width=\"589\" height=\"413\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/06\/send-message-to-subscriber.png 589w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/06\/send-message-to-subscriber-300x210.png 300w\" sizes=\"(max-width: 589px) 100vw, 589px\" \/><\/p>\n<h2>Replying to the message<\/h2>\n<p>To reply to a message (or action), you will need to add an additional\u00a0replyToReferenceId field in the request body which will have the reference ID from the previous example. The following screenshot is an example of how you reply to the message.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-1339 size-full\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/06\/reply-to-subscriber-message1.png\" alt=\"Screenshot of replyToReferenceID field\" width=\"577\" height=\"410\" srcset=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/06\/reply-to-subscriber-message1.png 577w, https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/06\/reply-to-subscriber-message1-300x213.png 300w\" sizes=\"(max-width: 577px) 100vw, 577px\" \/><\/p>\n<p>Hope that was helpful in allowing you to reply to a message or action in Kaizala. Please note, if you are replying to a message that was directed to a subscriber(s), the reply action API call also needs to carry that subscribers list (<em>as shown in this example<\/em>).<\/p>\n<p>If you have questions, please email kaizaladev@microsoft.com.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this post, I will introduce the\u00a0replyToReferenceId\u00a0property that enables you to reply to a message or action (attachment, custom card, image, etc.) on Kaizala group. This is required when you want to have a threaded conversation using API [or] bot scenario where you want to reply to a specific user query.<\/p>\n","protected":false},"author":69216,"featured_media":1338,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11],"tags":[87],"class_list":["post-1337","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office-add-ins","tag-kaizala"],"acf":[],"blog_post_summary":"<p>In this post, I will introduce the\u00a0replyToReferenceId\u00a0property that enables you to reply to a message or action (attachment, custom card, image, etc.) on Kaizala group. This is required when you want to have a threaded conversation using API [or] bot scenario where you want to reply to a specific user query.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/1337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69216"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=1337"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/1337\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/1338"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=1337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=1337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=1337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}