botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

[Question] Adaptive card Unknown Attachment Type

Open srozga opened this issue 9 years ago • 12 comments

Hi there. Using C# BotBuilder 3.8.0 and Microsoft.AdaptiveCards 0.5.0. Was excited to get my hands on the Adaptive Cards feature. I noticed off the cuff that the Skype does not support these yet.

Request to: https://smba.trafficmanager.net/apis/v3/conversations/29:1c1Lw-kXULSSpl-AfpPSC-EIyTXHvb8Ls24OgliMuh1Q/activities/1495202872305 Response: {"error":{"code":"BadArgument","message":"Unknown attachment type"}}

I followed these instructions: https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-add-rich-card-attachments#a-idadaptive-carda-add-an-adaptive-card-to-a-message

What is the timeline in terms of supporting Adaptive Cards on Skype (and I suppose other platforms)?

Thanks -Szymon

srozga avatar May 19 '17 14:05 srozga

There isn't a timeline established right now, but as of 5/18/2017:

• Emulator – full support • WebChat – Full support • facebook – render to image + limited mapping to buttons • Slack – Image + limited mapping to buttons • Kik – render to Image + limited mapping to keyboard • Telegram – Render to Image + limited mapping to keyboard • SMS – Image + text • GroupMe – Image + text • Email – Image + limited mapping to links • Bing – I think supports it via SkypeWeb Chat control which has implementation. Not sure if it is in production yet. • Skype – Coming Soon • Teams – Coming Soon • Cortana – not supported • Skype4B – Not supported

EricDahlvang avatar May 19 '17 19:05 EricDahlvang

This is great info and needs to be on the home page on adaptivecards.io. I just tried my adaptivecard on slack and it doesn't render at all. Kind of disappointed, but I can wait since I see it's coming soon.

jordanchang avatar May 24 '17 23:05 jordanchang

I got completely baited by adaptivecards.io. Shows such cool cards working on skype, but then there's a tiny * Comming soon to Skype that just appears for a second. Well played.

AndreMantas avatar Jun 05 '17 13:06 AndreMantas

@EricDahlvang What is the difference between Bing's Skype Webchat control and Skype in your list?
I am trying to display Adaptive Card in Skype Web chat control and get the following in the bot settings logs. Not sure how this differs from the Skype WC Bing is using but isn't working for me. image

Sample code:

  public Task StartAsync(IDialogContext context)
        {
            context.Wait(MessageReceivedAsync);

            return Task.CompletedTask;
        }

        private async Task MessageReceivedAsync(IDialogContext context, IAwaitable<object> result)
        {
            var activity = await result as Activity;

            var message = context.MakeMessage();


            var attachment = GetSurveyCard();
            message.Attachments.Add(attachment);

            await context.PostAsync(message);

            context.Wait(MessageReceivedAsync);
        }
        private static Attachment GetSurveyCard()
        {
            var card = new AdaptiveCard();
            card.Body.Add(new TextBlock()
            {
                Text = "Hello",
                Size = TextSize.ExtraLarge,
                Color = TextColor.Attention
            });
            card.Body.Add(new Image()
            {
                Url = "https://bot-framework.azureedge.net/bot-icons-v1/AmbPreviewSkypeBot_72QC8EFMFFd9FiB3A1z0FTG5mcEnf21y2jGCiuESG9blFle.png"
            });

            var attachment = new Attachment() { ContentType = AdaptiveCard.ContentType, Content = card };
            return attachment;
        }



jrmcdona avatar Jun 12 '17 12:06 jrmcdona

Why is this closed? The example here is not working at all: https://docs.microsoft.com/en-us/bot-framework/rest-api/bot-framework-rest-connector-add-rich-cards#a-idadaptive-carda-add-an-adaptive-card-to-a-message

ream88 avatar Jun 12 '17 14:06 ream88

@ream88 What channel are you using?

JasonSowers avatar Jun 12 '17 16:06 JasonSowers

MS Teams

On 12 Jun 2017, at 18:03, Jason Sowers [email protected] wrote:

@ream88 What channel are you using?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

ream88 avatar Jun 12 '17 17:06 ream88

@ream88 This issue is closed because the question asked by the original user was answered. The url you referenced does in fact work, in the emulator and in WebChat, but not in MS Teams. This is a known feature that is currently being implemented (as mentioned earlier: Teams support is coming soon).

@jordanchang There is a documentation page that has this information currently in the pipeline.

@jrmcdona I was refering to this WebChat control: https://github.com/Microsoft/BotFramework-WebChat Please post your question on Stack Overflow with the SkypeDeveloper tag.


The Microsoft Bot Framework team prefers that how to questions be submitted on Stack Overflow. The official Bot Framework Github repo  is the preferred platform for submitting bug fixes and feature requests.  

EricDahlvang avatar Jun 13 '17 01:06 EricDahlvang

Microsoft Teams


From: Jason Sowers [email protected] Sent: Monday, June 12, 2017 12:03 PM To: Microsoft/BotBuilder Cc: Wayne Smith; Manual Subject: Re: [Microsoft/BotBuilder] [Question] Adaptive card Unknown Attachment Type (#2803)

@ream88https://github.com/ream88 What channel are you using?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/BotBuilder/issues/2803#issuecomment-307835596, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AQzdLYmNvLoemr-N8enKWb6lbn3V_xCrks5sDWFbgaJpZM4NglD7.

waynehsmith avatar Jun 13 '17 12:06 waynehsmith

Hi guys. Could you please tell if Add an Adaptive card to a message example from https://docs.microsoft.com/en-us/bot-framework/dotnet/bot-builder-dotnet-add-rich-card-attachments#adaptive-card is supposed to work on Skype channel? I am catching Attachment Type is not supported error

amikulich avatar Jul 03 '17 15:07 amikulich

I don't think it is supported just yet on Skype. Believe they are working on it @amikulich

jrmcdona avatar Jul 03 '17 15:07 jrmcdona

A hint on adaptivecards.io would be great, that skype is not supported yet. image

martinoss avatar Aug 22 '17 07:08 martinoss