Hi! You can design your card using the Adaptive Cards Designer.
AdaptiveCardText = "{
\"type\": \"AdaptiveCard\",
\"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",
\"version\": \"1.3\",
\"body\": [
{
\"type\": \"TextBlock\",
\"text\": \"Hello, User!\",
\"wrap\": true,
\"size\": \"Large\",
\"weight\": \"Bolder\"
}
]
}"
MicrosoftTeams.PostCardToConversation(
"Flow bot",
"Chat",
ParseJSON(
JSON(
{
recipient: {
userId: "your-user-id", // Replace with the user's actual ID
tenantId: "your-tenant-id" // Replace with your tenant ID
},
messageBody: AdaptiveCardText // Reference to your Adaptive Card JSON string
},
JSONFormat.Compact
)
)
)
Check out this blog for more details! Let me know if that answers your question. :)