Bot Framework Composer Hero Card

JOSE ALICEA 6 Reputation points
2022-08-05T20:01:14.787+00:00

I have been attempting to customize the style of my hero card in Bot Framework Composer 228702-bad-hero-card.pngto appear round and different color from default but can't seem to make it work. How may I do this? First Image shows the current output, second image shows desired output designed in photoshop.

228679-nice-hero-card.png

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
742 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,822 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Prasad-MSFT 5,616 Reputation points Microsoft Vendor
    2022-08-08T05:52:44.457+00:00

    Please refer:
    https://learn.microsoft.com/en-us/composer/how-to-send-cards?tabs=v2x#herocard

    Thanks,

    Prasad Das


    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    1 person found this answer helpful.
    0 comments No comments

  2. JOSE ALICEA 6 Reputation points
    2022-08-09T15:32:37.057+00:00
    1. Implement bot using web chat.
    2. Run bot using webchat and use inspect element to verify class name of item wanting to customize. (In this example I will customize the button list of a hero card)
      229610-image.png
    3. Verify name of class which in this case is: button.ac-pushButton.style-default.ac-selectable
    4. Using a code editor, customize class to obtain desired look. (The following code is the one I used to obtain my desired result and will use as an example)
      229653-image.png
    5. After using code editor to customize my desired element, the result was the following:
      229618-image.png

    Using this method worked to customize every element I attempted. Hopefully this helps!

    1 person found this answer helpful.

  3. JOSE ALICEA 6 Reputation points
    2022-08-08T21:32:37.793+00:00

    After further testing, I have successfully implemented the customization I intended. Please let me know if there is a way to submit a request to update the docs to make this information more accessible.

    Thank you for the quick reply,

    Jose