Skip to main content

Notifications

Copilot Studio - Topic Creation & Management
Unanswered

How to Send a Welcome Message again in Copilot After User Deletes Chat in Teams Channel

Posted on by 20
Hi Team,
 
Could you please help in this,
 
I'm working with Copilot in a Teams channel and need to configure the bot to send a welcome message when a user opens a conversation after deleting the previous chat history. The goal is to ensure the bot detects that the conversation is new and automatically triggers the welcome message, treating it as a fresh interaction. I am currently using topics in my Copilot development.
 
what would be the activity check needs to be used so that we can send a welcome message?
 
Please find below screenshots for the same
 
 
 
Here after deleting the previous chat history with bot, we would like to show the welcome message again 
 
 
 
Thanks
 
 
Categories:
  • NaveenR Profile Picture
    NaveenR 20 on at
    How to Send a Welcome Message again in Copilot After User Deletes Chat in Teams Channel
    Thanks for the response.
     
    We have added that already however it works only when user re-add the copilot not when user delete the chat and open the bot again without remove/uninstall.
     
    Activity type "Installation update" only works when user installs the bot. when user deletes the chat and remove/uninstall and reinstall/re-add the bot then it works.
     
     
     
    Here after deleting the previous chat history with bot, we would like to show the welcome message again 
     
     
    Thanks
     
  • HenryJammes Profile Picture
    HenryJammes on at
    How to Send a Welcome Message again in Copilot After User Deletes Chat in Teams Channel
    An agent in Microsoft Teams 1:1 chat uses the same ongoing conversation thread, even if the copilot is removed or the chat is deleted. When you re-add a copilot and want it to start a conversation with a message, you can use Copilot Studio to add a new topic.  
     
    1. Create a new topic from scratch.
    2. Change the topic trigger to "Activity Received". 
    3. Click into the properties of the trigger. Change the "Activity type" to "Installation update".
    4. Click the + button to add another node. 
    5. Click "Topic Management" > "Go to another topic" and select the "Conversation Start" node. 
    6. Next to the Save button, click on the "... More" and open the Code Editor.
    7. In the Code Editor YAML, add startBehavior: UseLatestPublishedContentAndCancelOtherTopics. An example is shown below.
    8. Save the topic and publish the copilot.
    Example
     
    kind: AdaptiveDialog
    startBehavior: UseLatestPublishedContentAndCancelOtherTopics
    beginDialog:
      kind: OnActivity
      id: main
      type: InstallationUpdate
      actions:
        - kind: BeginDialog
          id: {your node id}
          dialog: {your agent schema name.topic.ConversationStart
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,532

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,050

Leaderboard

Featured topics