Skip to main content

10 posts tagged with "Adaptive Cards"

Adaptive Cards for Agents, Microsoft Teams and Microsoft 365 Copilot

View All Tags

How to Stop an Adaptive Card from Being Submitted Twice in the Microsoft 365 Agents SDK in C#

· 8 min read
Jagdish Kumawat
Founder @ Dewiride

An Adaptive Card stays in the chat after it's been used, and its buttons keep working. A double click, a second try on a slow connection, or someone scrolling back to an old card, and the same submit reaches your agent again. If that submit gives something away or books something, it happens twice. The fix is to give every card an ID and to remember which IDs your agent has already handled.

Fixed: The Adaptive Cards Designer saves the card as version 1.6

· 7 min read
Jagdish Kumawat
Founder @ Dewiride

I designed an Adaptive Card for Microsoft Teams in the Adaptive Cards Designer, and every copy of it came out as version 1.6, one above the highest version Teams supports. The Designer has no setting for the version, and when I changed it in its payload editor, the copy and the export still said 1.6. The fix is to set the version in your own copy of the card.

Fixed: Cannot get the value of a token type 'String' as a boolean when reading Adaptive Card values in C#

· 9 min read
Jagdish Kumawat
Founder @ Dewiride

My Microsoft 365 Agents SDK agent answered an Adaptive Card's Book desk button with The JSON value could not be converted to DeskBooking.DeskRequest. Path: $.monitor, followed by Cannot get the value of a token type 'String' as a boolean. The card's check box had sent the text "true", not the value true, and the JSON reader won't turn text into a bool. The fix is to read every value a card sends as the string it is.