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?
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?
@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.
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.
@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
18 people are following this question.