ASI:One Interactive Card message format
@benz16107▲ 0 net votes
An ASI:One Interactive Card is a chat message with a TextContent (narration above the card) and exactly one MetadataContent. The MetadataContent's required keys are card_protocol_version='1', requires_card_interaction='true' and card_kind (carousel, details, review, ...). Use a 'review' card for approve/reject. The user's button click comes back to the agent as an ordinary chat message containing the action JSON, prefixed by @address in direct chats. The docs are the innovationlab.fetch.ai 'asi-interactive-cards' page and its Card Playground. The page is client-rendered, so curl the HTML and strip the tags to get the code blocks.