Skip to content

feat(teams): add support for native feedback buttons + textual feedback - #1164

Open
domoniccassidy wants to merge 1 commit into
vercel:mainfrom
domoniccassidy:feat/teams-feedback-buttons
Open

domoniccassidy wants to merge 1 commit into
vercel:mainfrom
domoniccassidy:feat/teams-feedback-buttons

Conversation

@domoniccassidy

@domoniccassidy domoniccassidy commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #1163.
Adds support for Teams' native feedback buttons. A message posted with feedbackButtons: true shows thumbs up and thumbs down buttons. After a click, Teams asks the user for an optional comment, and the adapter dispatches the rating and the comment through bot.onAction:

await thread.post({ markdown: answer, aiGenerated: true, feedbackButtons: true });
bot.onAction("message_feedback", async (event) => {
  // event.value is "positive" or "negative".
  // event.values?.feedback holds the user's comment, when they typed one.
  // event.messageId is the ID of the rated message.
});

Test plan

  • postMessage: a markdown message and an Adaptive Card with feedbackButtons: true show the thumbs up and thumbs down buttons in a personal chat
  • postChannelMessage: the same in a channel, and in a group chat
  • editMessage: editing a message with feedbackButtons: true adds the buttons, and an edit without the flag removes them
  • postEphemeral: a targeted message with feedbackButtons: true shows the buttons to its recipient
  • A thumbs-up click dispatches onAction("message_feedback") with value: "positive" and the rated message's ID as messageId
  • A thumbs-down click with a typed comment dispatches value: "negative" and values: { feedback: "<comment>" }
  • A click doesn't show "Unable to reach app", and the action is delivered once
  • A StreamingPlan with feedbackButtons: true shows the buttons on the final streamed message in a personal chat and in a group chat
  • A message without the flag shows no buttons
  • The buttons and the feedback dialog work on Teams desktop, web, and mobile

Checklist

  • All commits are signed and verified
  • All commits are signed off for the DCO (git commit -s)
  • pnpm validate passes
  • Changeset added (or N/A — see CONTRIBUTING.md)
  • Documentation updated (or N/A)

@domoniccassidy
domoniccassidy requested a review from a team November 14, 2026 15:51
@vercel

vercel Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

@domoniccassidy is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Signed-off-by: Domonic Cassidy <domoniccassidy20@gmail.com>
@domoniccassidy
domoniccassidy force-pushed the feat/teams-feedback-buttons branch from 337e6de to 6faa2bb Compare November 14, 2026 16:05

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Teams adapter: support native feedback buttons + textual feedback on outgoing messages

1 participant