Share via

Agents Playground breaks markdown rendering when suggestedActions is present on the activity

Ronit 5 Reputation points
2026-03-09T20:45:11.9066667+00:00

I'm building a Teams bot using @microsoft/agents-activity (v1.2.3) and @microsoft/agents-hosting (v1.2.3). I'm adding dynamic suggestedActions to my bot's reply activity.

When I set suggestedActions on the same activity that contains markdown-formatted text, the Microsoft 365 Agents Playground stops rendering markdown -- it shows raw ##, **, - etc. as plain text.

If I remove suggestedActions from the activity (same text, same entities, same channelData), the markdown renders correctly.

Payload comparison (from logs):

Working (no suggestedActions):
{
"type": "message",
"text": "## Heading\n\n- **Bold item**\n...[1]",
"inputHint": "acceptingInput",
"entities": [...],
"channelData": { "feedbackLoop": { "type": "default" } }
}

Broken (with suggestedActions):

{
"type": "message",
"text": "## Heading\n\n- **Bold item**\n...[1]",
"inputHint": "acceptingInput",
"entities": [...],
"channelData": { "feedbackLoop": { "type": "default" } },
"suggestedActions": {
"actions": [
{ "type": "imBack", "title": "Example question?", "value": "Example question?" }
],
"to": ["user-id"]
}
}


The only difference is the presence of suggestedActions. The text, entities, and channelData are identical.

Questions:

  1. Is this a known limitation of the Agents Playground?
  2. Does this issue also occur in real Teams, or is it Playground-specific?
  3. Is there a recommended workaround for testing suggested actions with markdown content in the Playground?

Environment:

  • @microsoft/agents-activity: 1.2.3
  • @microsoft/agents-hosting: 1.2.3
  • Testing in: Microsoft 365 Agents Playground

Tags: microsoft-teams, bot-framework, suggested-actions, agents-playground

P.S I can't test this in real teams env as it isnt enabled for our company yet. It is still 1-2 months before we get that sorted

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

{count} vote

1 answer

Sort by: Most helpful
  1. Teddie-D 12,845 Reputation points Microsoft External Staff Moderator
    2026-03-09T23:32:48.8766667+00:00

    Hi @Ronit 

    Thank you for posting your question in the Microsoft Q&A forum. 

    Please note that this is a user-to-user support forum. Moderators, contributors, and external Microsoft employees do not have access to back-end systems to investigate root causes. Our role here is limited to sharing technical guidance based on publicly available resources and experience.  

    For deeper investigation, I recommend opening a new issue on GitHub, where developers and contributors who work with the Agents SDK and Teams platform may provide additional insights. 
    For reference: Participating in a discussion - GitHub Docs.

    Based on the behavior you described and the payload comparison, the activity structure you are sending appears valid. The suggestedActions property can be included on the same message activity that contains markdown text, and this pattern is supported by the Bot Framework activity schema. 

    The behavior you are observing is likely related to how the Microsoft 365 Agents Playground renderer processes activities that include suggestedActions, rather than an issue with the activity payload itself. 

    At this time, there is no official Microsoft documentation indicating that markdown formatting is disabled when suggestedActions are present. Inline suggestedActions on the same message activity is a supported Bot Framework pattern. 

    There is also no documentation suggesting that this behavior occurs in the Microsoft Teams client. 

    Your current workaround, sending the markdown response first and then sending suggestedActions in a follow-up activity, is a reasonable approach when testing in the Playground. However, for production scenarios in Teams, you can continue using the single-message approach with suggestedActions included in the same activity. 


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.