![]() It's not always obvious what the payload of that attachmentAction is going to look like when designing the JSON, but here again the Card Sampler bot can help. Getting this nailed down in the design phase will make it much easier when it's time to implement the button press handlers in your application code.Īs a rule an Action.Submit button press is going to pass back any information collected in any Input elements in your card, as well as any additional info that you specify in the data attribute of the Action.Submit element itself. Getting the look and feel of your card is important, but if your card includes any Action.Submit buttons, it's also important to understand the data that will be sent back to your application for processing. ![]() If the card design fails to render, the bot will provide you the details of the error message returned by the Webex API call which you can use to tweak your design. (It's worth noting that you can also just send the bot a message with a file attachment and it will try to post that as well). If you click this, you will get a card that allows you to paste your JSON onto a card and the bot will post your card for you. On the main "selection" card you will see a button "Send my own JSON Instead": Ideally, you would test your design in each of the clients that users of your app will be using. User's who create a space with the bot are presented with a drop down list in order to select the sample card they want to interact with.Įach time a sample is displayed, the bot provides a link to the card's source in the Buttons and Cards Designer, so that developers and designers can modify it to suit their own needs.įor designers who are creating their own cards, the Buttons and Cards Designer does a great job of showing you what your card will look like in the Webex Teams Web client, but it might look a little bit different when it renders in the Mac, Windows, or Mobile clients. The bot allows users to experience a set of sample cards which demonstrate how cards can be used to display and collect complex information across a variety of use cases. This is a Webex Teams bot that helps bot developers and designers learn what is possible with the Buttons and Cards functionality of Webex Teams.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |