Microsoft Bot Framework Composer を使用して、Block Kit を使用して Slack チャネルに応答を送信したいと考えています。JSON 添付ファイルを使用して応答を作成しようとしましたが、ボットは次のように返します。
ボットでエラーまたはバグが発生しました。このボットを引き続き実行するには、ボットのソース コードを修正してください。
# SendActivity_pTmt7x()
[Activity
Attachments = ${json(SendActivity_pTmt7x_attachment_R1WWzr())}
]
# SendActivity_pTmt7x_attachment_R1WWzr()
> To learn more about the LG file format, read the documentation at
> https://aka.ms/lg-file-format
- ${SlackMessage()}
# SlackMessage()
- # slackmessage
- ```
{
"type": "Attachment",
"name": "blocks",
"content": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "This is a sample Slack Block Kit"
}
},
{
"type": "divider"
}
]
}
Slack で Block Kit UI を適切にレンダリングできる Response を構築することは可能ですか?