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().

Hi @erohmensing , please help me out with this query, been stuck for over days now!

Where do I attach this syntax- /intent, in the “newmessage”! Can you please correct my code and send the same back to me! Appreciate your time!

Thanks in advance!