Skip to main content

Notifications

Publish & Channel Management
Unanswered

When will the session end in a copilot studio? It is not ending after end of the conversation topic

Posted on by 67

When will the session end in a copilot studio? It is not ending after end of the conversation topic

  • remidyon Profile Picture
    remidyon on at
    Re: When will the session end in a copilot studio? It is not ending after end of the conversation topic

    Hi @Karishma2805998 

     

    I think you are mixing different concepts. The default behavior of copilot studio chat control is to keep the user session alive unless the user close / opens a new tab / browser window. It has no control / idea of the custom authentication mechanism of the website it is deployed on. So, if you log out of the website but keep the tab open your copilot session is still active regarding your authentication status on your website.

     

    You described a scenario where users are on a single tab and login / logout of a website with the same computer - is this the real use case? Are multiple users going to be sharing the same computer without closing the browser? If so you would need to build a custom integration of Copilot that will request a new token when users are login/logout of your website.

     

    But usually in real life users will all be connecting to your copilot from different computers / browser / etc. And their sessions will not be shared. Try to open 2 tabs on your website and it will create 2 different copilot sessions that will not share history. 

  • Karishma2805998 Profile Picture
    Karishma2805998 67 on at
    Re: When will the session end in a copilot studio? It is not ending after end of the conversation topic

    @remidyon We have not yet used custom implementation for integration with website. We have used iframe embedded code provided from copilot studio, in that case no way to control session?

  • remidyon Profile Picture
    remidyon on at
    Re: When will the session end in a copilot studio? It is not ending after end of the conversation topic

    Hi @Karishma2805998 

    You must have missed a step in the custom implementation of your copilot. You need to request a new conversation token when you login with a user. Please take a look at this documentation: Add a copilot to mobile and web apps - Microsoft Copilot Studio | Microsoft Learn

  • Karishma2805998 Profile Picture
    Karishma2805998 67 on at
    Re: When will the session end in a copilot studio? It is not ending after end of the conversation topic

    @remidyon 

     

    The Copilot we have developed is embedded to a custom website where one website user session is logged out and on the same tab when we login with another website user I am getting the old user chatbot messages which is wrong. Please help on providing solution to end the chatbot session manually with default canvas.

  • remidyon Profile Picture
    remidyon on at
    Re: When will the session end in a copilot studio? It is not ending after end of the conversation topic

    Hi @umamaheswari1 

    You cannot change the session parameters - that would not be very interesting for you: your users would consume more sessions.

    What are you trying to accomplish? Why do you need to end the session?

  • umamaheswari1 Profile Picture
    umamaheswari1 2 on at
    Re: When will the session end in a copilot studio? It is not ending after end of the conversation topic

    @remidyon Is there a way to customize the timing for session refresh in this scenario?

  • remidyon Profile Picture
    remidyon on at
    Re: When will the session end in a copilot studio? It is not ending after end of the conversation topic

    Hi @Karishma2805998 

    Session ends after 1h or 100 turns of conversation, whatever comes first.

     

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,997

#3
Expiscornovus Profile Picture

Expiscornovus 1,708

Leaderboard

Featured topics