Currently, a bot can only reply with text or a limited set of Markdown widgets (i.e. tables and code blocks). Some information is better conveyed via small graphical UI widgets. For example if the bot returns a URL to a video, an inline video player is useful. For a set of coordinates or addresses a maps widget can be helpful, and for tabular data, a sortable table is convenient.
Instead of hardcoding this behavior, as a user I should be able to write small widgets that a bot can make use of when displaying information. A given bot will see the available widgets and resort to the right widget for the job.
Currently, a bot can only reply with text or a limited set of Markdown widgets (i.e. tables and code blocks). Some information is better conveyed via small graphical UI widgets. For example if the bot returns a URL to a video, an inline video player is useful. For a set of coordinates or addresses a maps widget can be helpful, and for tabular data, a sortable table is convenient.
Instead of hardcoding this behavior, as a user I should be able to write small widgets that a bot can make use of when displaying information. A given bot will see the available widgets and resort to the right widget for the job.
An example with a calendar widget for an agenda: