Is it possible to start a conversation with the Bot in MS Teams?

239 Views Asked by At

Is there any way to start conversation with bot in ms-teams?

I know we can call bot in ms Teams by @botname or graph api.

call a bot by @botname

https://learn.microsoft.com/en-us/microsoftteams/platform/resources/bot-v3/bot-conversations/bots-conversations#receiving-messages

call a bot from graph api.

https://learn.microsoft.com/en-us/graph/api/resources/chatmessagemention?view=graph-rest-1.0

But I wanna start conversation from bot like below picture.

start-conversation from bot

Do you know how to realize this?

Any advise would be very appreciated, thanks!

===10/26 Add question ====

Thank you for your reply.

Teams samples for auth, message extension, conversation(message all members in a Team or Channel, '@mention' a user from a bot), file upload and more.

Yes, I know this sample, and I tried to "teams-conversation-bot" by python. But it is call bot only '@mention' a user from a bot or message 1on1.

That means, is it possible to realize below situation using 'send proactive notifications to users.'?

  1. Send to http request to bot endpoint by POST from our product.
  2. Bot received HTTP request
  3. Bot start conversation and '@mention' a channel and a user.
1

There are 1 best solutions below

2
On

The Bot Framework SDK v4 is delivered as an open source SDK on GitHub, targeting .NET, JavaScript, Python, and Java. Connect a bot to Microsoft Teams, please follow the doc.

Here are the bot builder samples for quick-start.

Teams samples for auth, message extension, conversation(message all members in a Team or Channel, @mention a user from a bot), file upload and more.

Here to send proactive notifications to users.