I have been trying to use dispatcher.utter_button_message in my custom actions for rasa. I have also integrated with MS Teams, and when I use the utter_button_message, I get a response on teams that says “This card’s content could not be displayed”. Is this an issue with how I am implementing the button, or could it be an issue with teams? I have attached a part of my debugger.
But i get an error :
2020-02-26 01:21:45 ERROR rasa.core.channels.botframework - Error trying to send botframework messge. Response: {“error”:{“code”:“BadArgument”,“message”:“Unknown activity type”}
I developed a bot using Rasa, and it’s currently connected to an Azure Bot via a webhook, and I have it activated on the Teams channel. In general, it’s functioning normally and provides responses within the Teams bot conversation. However, there are occasions when I’m using dispatcher.utter_message(text="example text") in the actions.py file to display messages within the bot conversation, but although no error is generated, the response message isn’t displayed within the conversation. Typically, the dispatcher works fine, even with AdaptiveCards that I’m using for Teams, but sometimes the messages fail to appear. I’ve been thinking that there might be a time limit, and after this time, it’s not possible to display the message with the dispatcher within the bot in Teams.
I would appreciate it if someone has knowledge about this and can clarify this issue for me.