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

Community site session details

Session Id : AqEXlBGuFA9Shsa/tn/hC+
Copilot Studio - Publish & Channel Management
Answered

Change Directline

Like (0) ShareShare
ReportReport
Posted on 1 Apr 2024 04:37:06 by 74

Hi,


I'd like to know if anyone has changed the directline for the WebChat to another Copilot Studio bot. What I'm trying to do is send an event to the channel, which is a webpage and then somehow change the bot that the user is interacting with to another Copilot Studio Bot. This doesn't seem straightforward and I haven't had success in a couple hours of trying. Is this even possible? Or is there another, simpler way to do it? I can essentially capture the event in the javascript and execute some code, but haven't been able to change the directline and again render the WebChat. Any tips?

Thanks
Wesley

  • Verified answer
    wswitzer Profile Picture
    74 on 04 Apr 2024 at 01:57:42
    Re: Change Directline

    Thanks @adilei. I was able to get it to work shortly after I posted the message. It turns out that the bot I was trying to access via directline wasn't yet published and was giving an error with a description that pointed in that direction. Once I published it, I was indeed able to change bots with the webchat seemlessly with the directline token.

  • adilei Profile Picture
    on 01 Apr 2024 at 06:25:37
    Re: Change Directline

    You would need to get a new Directline token from a new token endpoint. 

     

    What is you client doing? Can you share?

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 169 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 150

#3
sandeep_angara Profile Picture

sandeep_angara 75 Super User 2025 Season 2

Featured topics