question

FangWenfei-1779 avatar image
0 Votes"
FangWenfei-1779 asked Nivedipa-MSFT-6619 commented

Welcome message appears only after user input

I created Web App Bot from QnA Maker. The welcome message appears okay in the test, but it appears only after user input on Teams. How can I make it appear at the beginning?

office-teams-app-devazure-bot-service
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@FangWenfei-1779 Adding the tag "office-teams-app-dev" for insights from Teams experts.
I believe for teams the welcome message is triggered based on activity by user so the welcome message is sent only after the first message is sent. In this case i think you should use proactive messages which sends a message to user not in any response to a request from a user. Please see this page for more details on the basics of conversation with respect to teams bot.


0 Votes 0 ·

1 Answer

Nivedipa-MSFT-6619 avatar image
0 Votes"
Nivedipa-MSFT-6619 answered Nivedipa-MSFT-6619 commented

To send welcome message at the beginning you have to send proactive message.

A proactive message is any message sent by a bot that isn't in response to a request from a user.
This can include messages, such as:
Welcome messages
Notifications
Scheduled messages

You can refer below doc for sending proactive messages.
https://docs.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/send-proactive-messages?tabs=dotnet

Thanks,
Nivedipa


If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@FangWenfei-1779 - If the above answer is helpful for you, you can accept it as answer. This can be beneficial to other community members. Thank you

0 Votes 0 ·