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

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

11 REPLIES 11
Pstork1
Dual Super User III
Dual Super User III

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.

Pstork1
Dual Super User III
Dual Super User III

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. ]

View solution in original post

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. ]

View solution in original post

thank you Tom:)

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors
Users online (2,792)