web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / I need to end the chat...
Copilot Studio
Unanswered

I need to end the chat session and start new chat session with the new directline token I receive in iframe embed code of chatbot integrated with custom web application

(0) ShareShare
ReportReport
Posted on by 71

I need to end the chat session and start new chat session with the new directline token I receive in iframe embed code of chatbot integrated with custom web application

 

<iframe

              height="100%"

              title="Quick Menu"

              src={'https://web.powerva.microsoft.com/.../webchat?__version__=2&user=${user}&token=${directLineToken}'}

            ></iframe>

 

 

Categories:
I have the same question (0)
  • Umianta Profile Picture
    290 on at

    Hi @Karishma2805998 

     

    To conclude the chat session using the direct line approach, you can develop a custom solution as outlined below:

    1. Create a topic with an "Event received" trigger.
    2. Within this topic, incorporate a node to end the session.
    3. From the client-side script, transmit the event to trigger this custom topic.

    Umianta_0-1713464568582.png

     

    If my response has addressed your query, kindly mark your post as Solved.

    If you found my response helpful or it provided you with a direction to proceed, please give it a Thumbs Up. Your Kudos are appreciated. You can accept multiple posts as solutions.

    If you're still encountering any issues or challenges, please don't hesitate to inform me so I can assist you further. I'm here to help.

    Cheers ,

    Umesh Khandelwal

  • Karishma2805998 Profile Picture
    71 on at

    But End conversation was not ending the chat session normally. On the same browser tab when I logout my custom web site and login again with different user, the chatbot holds the previous user's chat messages and session.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 572

#2
Haque Profile Picture

Haque 154

#3
chiaraalina Profile Picture

chiaraalina 144 Super User 2026 Season 1

Last 30 days Overall leaderboard