Dynamic prompt suggesstions

Nathan V 5 Reputation points
2025-12-05T06:48:27.35+00:00

We are building a RAG-based Teams bot system and are currently working on implementing dynamic prompt suggestions. Our goal is to update the prompt suggestions each time based on the user’s previous question. Is this approach possible? Most of the documentation I found only covers static (fixed) prompt suggestions. Could you please clarify whether dynamic suggestions are supported? If available, please share any relevant documentation.

Microsoft Teams | Development
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kudos-Ng 10,385 Reputation points Microsoft External Staff Moderator
    2025-12-05T09:13:33.57+00:00

    Hi Nathan V,

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

    Your approach of generating dynamic prompt suggestions based on previous user questions is valid and aligns with Microsoft’s recommended pattern called Suggested Actions, as described in the documentation you referenced:

    User's image

    Currently, there are very few articles or samples that demonstrate dynamic suggested actions, but here is a high-level approach you can consider:

    • Although suggested actions are declared in JSON under the suggestedActions property, you can leverage your LLM to read the conversation context, generate suggested prompt text, and then build up to three complete action objects for the JSON payload. Finally, send these as part of the bot’s Activity response. Sample JSON
    • (Optional but recommended): Since bots are stateless by default, consider implementing Conversation State to maintain context across turns. This will help your LLM generate more accurate suggestions, especially when user responses are short or ambiguous. You can find more details on state management here:

    I hope this helps.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    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.

    0 comments No comments

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.