Hi Vinod,
This behavior is typically due to the agent rendering responses dynamically in the frontend without using the Bot Framework’s sendActivity() method. Only messages sent using supported formats (e.g., plain text, adaptive cards) and through the correct SDK methods are persisted in the chat transcript. Solution
Use context.sendActivity() to send all responses:
await context.sendActivity({
type: 'message',
text: 'Your API response here',
attachments: [adaptiveCard] }); ```
Avoid frontend-only rendering: Ensure that all responses are sent through the Bot Framework, not just displayed in the UI. Verify SDK Initialization: Ensure the Teams SDK is properly initialized and the app is hosted in a Teams-compatible context. Check MCP Server/Client Setup: If using MCP, confirm that the server is configured to persist responses and update resource data accordingly.
Supporting Documentation
Microsoft Learn: Add your agent to Teams
[11-8-2024] CZD Copilot and AI Standup – Highlights the need to upgrade support for conversation history [DAS AI Ready - AI Padawan Series] Mastering DFM Copilot - Rodrigo's Version – Emphasizes the importance of feedback and response tracking Build your own copilot chat.docx– Discusses best practices for building persistent and interactive Copilot agents