Adaptive cards from MS Teams using dispatcher in custom actions rasa core

How can I dispatch adaptive cards using the dispatcher in custom actions from rasa core? I know how to dispatch buttons, but is there any way to dispatch an adaptive card? Thank you very much.

Hey @adibollam, you can use custom output payloads to send arbitrary json payloads to the connector. So if you know how to use the msteams API, you can send anything they support through that. In order to do it on the fly within custom actions, you could also use dispatcher.utter_custom_json().