cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Shagoul
Helper III
Helper III

post reply to a message as webhook or bot in teams

Hi Every one,

 

can you please help me how to achieve this, when the user sent a new message to the team's channel reply like a bot or webhook name?

 

I’ve created incoming webhook in teams,  still am getting replies with my name, not bot Or (webhook name)

 

Shagoul_0-1626516035877.png

 

 

Shagoul_1-1626516035882.png

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
tom_riha
Super User
Super User

Hello @Shagoul ,

check the 'Reply with a message in a channel' action, that one allows you to select the Flow bot in the 'Post as' field. It'll still mention your name in the response, but it'll be clear that it was sent by the bot and not by you.

image.png

image.png



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

Yes, for public channels it'll work. For private channels you'll need some user who has permissions to that channel, e.g. a separate flow account.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

12 REPLIES 12
Pstork1
Dual Super User
Dual Super User

The reply is always going to come from the maker of the flow, in this case you.  There is no way to have it reply as a bot unless the bot was the one originating the message.  The closest you can come would be to create a service account and use that when creating the flow.  Then the message will come from the service account rather than you.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Thank you for the suggestions is given me some idea, but I can’t use service account indeed license and permissions issues.

 

My case is the reply is working fine from MS flow, I just wanted to know is there any way to show a reply instead of my name it should be from the webhook (or bot ) name.

As I said, there is no way to do what you are asking.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
tom_riha
Super User
Super User

Hello @Shagoul ,

check the 'Reply with a message in a channel' action, that one allows you to select the Flow bot in the 'Post as' field. It'll still mention your name in the response, but it'll be clear that it was sent by the bot and not by you.

image.png

image.png



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Hi tom,

 

Thank you so much 🙂

thank you for the response pstork1 🙂

Hi Tom,

 

Sometimes it's working fine but often I received this error any suggestions?

 

Request to the Bot framework failed with error: '{"error":{"code":"BotNotInConversationRoster","message":"The bot is not part of the conversation roster."}}'.

Hello @Shagoul ,

are the messages that throw an error in public channels or private channels? The bot can't post into private channels as it doesn't have access there (and I don't think you can add it to the channel).



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Hi Tom,

 

Yes it’s private channels ☹. Can I use it for the public changes will it work?

Yes, for public channels it'll work. For private channels you'll need some user who has permissions to that channel, e.g. a separate flow account.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

thank you Tom:)

nathanm55
New Member

arrete de deconner

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (3,984)