withbotshq / botsapp

An app to make personalized AI bots and chat with them
https://withbots.app/
21 stars 0 forks source link

Widget responses #44

Open max opened 1 year ago

max commented 1 year ago

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:

image