Closed Krishna-chinthireddy closed 4 years ago
Hi @kittu610
Can you show us what you've tried so far? Are you following a specific sample?
@kittu610 - Slack does not support Adaptive Cards. You can see which platforms support Adaptive Cards here: https://docs.microsoft.com/en-us/adaptive-cards/resources/partners
If you want to be able to send hero cards to Slack, you need to be using the Azure Bot Service and not the Slack adapter. You linked to a document that explains how to use both but you haven't specified which option you're using or how your bot is set up. You say you want to use IBotFrameworkHttpAdapter
but SlackAdapter
implements IBotFrameworkHttpAdapter
so that doesn't give us the information we need. Please let us know what adapter you're using and post the code you're using to send the hero card that's throwing the error.
Hai @v-kydela Please find the following Project
This is the project i have deployed in azure The text responce in slack is working fine But i am getting error when i tried to send the attachment.
@kittu610 - Looking at your code, I can see that you're using a Slack adapter. Were you unaware of this? Did you use sample 60? https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/60.slack-adapter
Hi @v-kydela I have created a bot using echo bot template and modified the code by following This link And then i have referred https://github.com/microsoft/BotBuilder-Samples/tree/master/samples/csharp_dotnetcore/60.slack-adapter how to send attachment to slack
@kittu610 - Do you understand the difference between using the Slack adapter and using the Azure Bot Service Slack channel connector? Do you know which one you want to use and why? I need to know what your point of confusion is so that I know what I need to explain in order to help you. I already explained that you cannot send hero cards using the Slack adapter.
@kittu610 - Are you still working on this?
I'm going to close this due to inactivity. To reiterate, Adaptive Cards are not supported on Slack, and Bot Framework rich cards can only be used on third-party channels if you're using an Azure Bot Service channel connector and not an adapter.
If you still need help, please post a question on Stack Overflow. If you use the botframework
tag then my team will see your question.
How to handle attachment in bot which is integrated in slack channel
i was trying to send hero cards and adaptive cards but i am getting an error like "The bot encountered an error" in bot.
Please can you suggest me how to handle cards and links in bot integrated in slack. by using IBotFrameworkHttpAdapter. in csharp_dotnetcore.