I used Flow to create a bot in Teams that checks every day who works from Home and who works from the Office. (It's really meant to be just a glorified list of 3 buttons that enable the user to easily post a reply with their "status" corresponding to the button they clicked.)
It is quite frustrating that after every interaction the Flow bot replies with:
Here’s what I can do:
• List flows for the default environment, command: List flows
• Run flows that don’t have any inputs, or that run on a schedule, command: Run flow index
• Describe flows that don’t have any inputs, or that run on a schedule, command: Describe flow index
By continuing, you agree to the Microsoft Privacy Statement and Microsoft Services Agreement .
I'm hoping that there is a way to silence the Flow Bot or to configure my script differently so the Adaptive Card doesn't end up taking too much of the screen real estate due to the bot's replies.
Here's the code for the Adaptive Card, just in case somebody knows a better way of doing the "Action.Submit" to not "trigger" the Flow bot.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"speak": "Where are you working from today?",
"body": [
{
"type": "TextBlock",
"text": "Where are you working from today?",
"size": "large"
}
],
"actions": [
{
"type": "Action.Submit",
"title": "🏢"> Office",
"data": {
"msteams": {
"type": "messageBack",
"displayText": "working from 🏢">",
"text": "office",
"value": "office"
}
}
},
{
"type": "Action.Submit",
"title": "🏠"> Home",
"data": {
"msteams": {
"type": "messageBack",
"displayText": "working from 🏠">",
"text": "home",
"value": "home"
}
}
},
{
"type": "Action.Submit",
"title": "🤧"> Sick...",
"data": {
"msteams": {
"type": "messageBack",
"displayText": "sick... not working today. 🤧">",
"text": "sick",
"value": "sick"
}
}
}
]
}
Any help would be much appreciated!
Cheers...