Jan 31 2024 05:45 AM
Hi,
I'd like to implement a solution in Teams and would appreciate some input on what's the best way to use. The use case looks like this:
1) A web server hosts a forum. A user of that forum starts a new thread in that forum by creating a post.
2) The web server forwards the content of the initial post that started the thread to Teams where an application (a bot or webhook etc.) uses that data to start a thread in a certain Teams channel.
3) Users in that channel can then reply to that thread and their replies are forwarded to the web server where they are posted as replies to the thread in the forum.
4) When a user replies in the forum of the web server, then that reply is send to the Teams application and posted as a reply in that Teams channel thread.
So far it seems that the challenging part of that use case is that the Teams application (be it a bot or a webhook) needs to be able to parse a reply to the thread that it created. Several documentations mention this: "Bots in channel and group chat conversations require the user to @mention the bot to invoke it in a channel." Does that mean that, even when replying to a thread that the bot started, every user still has to @mention the bot so that the reply gets processed by the bot?
Feb 01 2024 01:03 AM
Feb 01 2024 05:15 AM - edited Feb 01 2024 05:16 AM
Dear @Dinesh-MSFT
thanks for your reply. Did I understand you correctly that there is no way to have the content of a reply parsed by the bot if the reply was done by a user without mentioning the bot, even if the reply was made to a post by that bot?
By "reply" I'm referring to a reply in a thread in the context of a channel.
Feb 02 2024 02:44 AM
Hi @Miro_Goepel - You can use resource-specific consent (RSC) permissions, using which conversation owners can consent for a bot to receive all user messages in standard channels and chats without being @mentioned.
Please refer below documentation and sample:
Doc reference: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/channel-messages...
Sample: https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/bot-receive-channel-messages-...