Blog Post

IIS Support Blog
1 MIN READ

How to change notification text when bot sends an adaptive card in Microsoft Teams?

Sai_Teja_Nagamothu's avatar
Sai_Teja_Nagamothu
Former Employee
Dec 01, 2020

When bot sends an adaptive card, Microsoft Teams notification sent a "Sent a card" message.

Like shown below: 

To send custom summary in place of "Sent a card" edit following values... 

 

 var response = MessageFactory.Text(string.Empty);
 response.Attachments.Add(cardAttachment);
 response.Summary = "showing custom greeeting from the Bot - rather than a card";
 await turnContext.SendActivityAsync(response, cancellationToken);

 

Once we add a summary as shown, it will not show "sent a card" message in teams and even in the notification we'll not see "sent a card", we'll get a summary message. 

 

Result: 

And in notification: 

 

 

 

Updated Dec 01, 2020
Version 2.0

4 Comments

  • mattgyver's avatar
    mattgyver
    Copper Contributor

    Same here. I got workflows working, but when the summary on the activity notification just says "card" it's worthless. With PRTG network monitoring, I have the teams notifications set to give me the device and the error, so that I can see from the quick activity notification when I need to act fast. Having to open the app every time to see is totally inefficient when I get notifications every minute (per device), and I have 500 devices I'm monitoring.

    • kart124's avatar
      kart124
      Copper Contributor

      Any success with the workflows notification message ?

  • awcmorgan's avatar
    awcmorgan
    Copper Contributor

    I'm seeing the same. Any way to fix this default notification when using powerautomate flow? Kinda useless as-is.

  • msannhofa's avatar
    msannhofa
    Copper Contributor

    Seems to be unfixed in 2024-07-17. I am only seeing "Card" instead of the summary.