Forum Discussion

Miro_Goepel's avatar
Miro_Goepel
Copper Contributor
Jan 31, 2024

Processing replies to a thread and forward them to an external application

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?

Resources