Skip to main content

Notifications

Copilot Studio - Topic Creation & Management
Suggested answer

Is there a way to force a session to end?

Posted on by 2
Hello,
 
I need to find a way to finish the session instead of just the conversation.
 
The client interacts with the bot using an iFrame which sendsa parameter that filters the knowledge base the bot accesses to. Sometimes, the users might need to ask questions about multiple topics in quick succession, before the 30 minute mark passes and the session gets reset.
 
The problem lies in the fact that, even if we use an 'End conversation' topic and refresh the iFrame, it doesn't seem like the session ends, and for that reason we can't receive new parameters through the iFrame, and the previous conversation history doesn't get deleted.
 
Is there a way for us to properly force a session to end, so when the iFrame calls the bot again it doesn't have any previous history?
 
Thank you.
 
Categories:
  • Suggested answer
    SaiRT14 Profile Picture
    SaiRT14 1,334 on at
    Is there a way to force a session to end?
    Use a Session Timeout Trigger
     
    Add a Custom Parameter for New Sessions

    Force a New Session with a Page Refresh: Upon triggering the end conversation, programmatically reload the iFrame with an additional query parameter or timestamp. This can simulate a fresh session by resetting both the iFrame and bot session state.

     

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,591

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,090

Leaderboard

Featured topics