How to interact with bot from incoming webhook

%3CLINGO-SUB%20id%3D%22lingo-sub-2113395%22%20slang%3D%22en-US%22%3EHow%20to%20interact%20with%20bot%20from%20incoming%20webhook%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2113395%22%20slang%3D%22en-US%22%3E%3CP%3EI%20currently%20have%20a%20Slack%20App%2FBot%20that%20does%20the%20following.%3CBR%20%2F%3EMy%20Application%20detects%20an%20issue%20and%20sends%20an%20incoming%20webhook%20to%20a%20Slack%20channel%20with%20a%20couple%20of%20buttons%20for%20them%20to%20decide%20how%20to%20handle%20the%20issue.%3CBR%20%2F%3EWhen%20they%20press%20a%20button%20the%20bot%20processes%20the%20action%20they%20selected.%3C%2FP%3E%3CP%3EAnd%20then%20replaces%20the%20original%20message%20with%20the%20results%20returned%20by%20the%20Application.%3C%2FP%3E%3CP%3EThis%20is%20helpful%20so%20they%20don't%20try%20to%20resolve%20the%20same%20issue%20again.%3CBR%20%2F%3E%3CBR%20%2F%3ESome%20of%20my%20customers%20use%20Teams%2C%20so%20I%20am%20trying%20to%20convert%20the%20Slack%20App%2FBot%20to%20Teams%20so%20I%20can%20support%20both%20platforms.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20was%20able%20to%20create%20an%20incoming%20webhook%20in%20teams%20with%20the%20same%20details%20and%20buttons%20in%20Teams.%3CBR%20%2F%3EBut%2C%20I%20am%20having%20trouble%20getting%20the%20Teams%20Bot%20to%20process%20the%20Action%20of%20the%20Buttons%20in%20the%20incomong%20webhook%20message.%3CBR%20%2F%3EAnd%20I%20think%20I%20know%20why%20now.%3CBR%20%2F%3EI%20was%20trying%20to%20use%20%22Action.Submit%22%2C%20which%20according%20to%20the%20following%20link%20is%20not%20supported%20by%20incoming%20webhooks.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftask-modules-and-cards%2Fwhat-are-cards%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Ftask-modules-and-cards%2Fwhat-are-cards%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EIt%20states%20the%20following%20for%20Adaptive%20cards%20and%20incoming%20webhooks.%3CBR%20%2F%3EAll%20native%20adaptive%20card%20schema%20elements%2C%20except%20Action.Submit%2C%20are%20fully%20supported.%3CBR%20%2F%3E%3CBR%20%2F%3ELooking%20for%20input%2Frecommendations%20on%20how%20to%20accomplish%20the%20same%20Slack%20flow%20I%20described%20above%20in%20Teams.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2113395%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EBots%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Edeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHow-to%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2212592%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20interact%20with%20bot%20from%20incoming%20webhook%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2212592%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20the%20exact%20same%20query%20as%20the%20original%20poster.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20having%20trouble%20locating%20how%20the%20bot%20can%20interact%20with%20messages%20posted%20to%20the%20Teams%20channel.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I currently have a Slack App/Bot that does the following.
My Application detects an issue and sends an incoming webhook to a Slack channel with a couple of buttons for them to decide how to handle the issue.
When they press a button the bot processes the action they selected.

And then replaces the original message with the results returned by the Application.

This is helpful so they don't try to resolve the same issue again.

Some of my customers use Teams, so I am trying to convert the Slack App/Bot to Teams so I can support both platforms.

I was able to create an incoming webhook in teams with the same details and buttons in Teams.
But, I am having trouble getting the Teams Bot to process the Action of the Buttons in the incomong webhook message.
And I think I know why now.
I was trying to use "Action.Submit", which according to the following link is not supported by incoming webhooks.
https://docs.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/what-are-cards


It states the following for Adaptive cards and incoming webhooks.
All native adaptive card schema elements, except Action.Submit, are fully supported.

Looking for input/recommendations on how to accomplish the same Slack flow I described above in Teams.

Thanks

1 Reply

I have the exact same query as the original poster.

 

I'm having trouble locating how the bot can interact with messages posted to the Teams channel.