Skip to content

[#794] appendChoices for prompt doesn't support heroCard style#800

Merged
tracyboehrer merged 2 commits intomainfrom
southworks/add/hero-card-choice-style
Dec 4, 2025
Merged

[#794] appendChoices for prompt doesn't support heroCard style#800
tracyboehrer merged 2 commits intomainfrom
southworks/add/hero-card-choice-style

Conversation

@ceciliaavila
Copy link
Copy Markdown
Collaborator

Fixes #794

Description

This PR adds support for heroCard and suggestedActions styles for the prompt options.

Detailed Changes

  • Added heroCard and suggestedActions styles in appendChoices switch case.
  • Updated forChannel function implementing the logic to decide the default style depending on the channel. Preferred style order is: suggestedActions, heroCard, inline or list.
  • Added the conversationType parameter to use in case of MSTeams channel.

Testing

These images show the default style selected for WebChat and MSTeams channels.
image

@tracyboehrer tracyboehrer enabled auto-merge (squash) December 4, 2025 14:20
@tracyboehrer tracyboehrer merged commit 964a66e into main Dec 4, 2025
7 checks passed
@tracyboehrer tracyboehrer deleted the southworks/add/hero-card-choice-style branch December 4, 2025 14:23
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.

appendChoices for prompt doesn't support heroCard style

2 participants