Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - Publish & Channel Management
Answered

Change Directline

(0) ShareShare
ReportReport
Posted on 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 at
    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 at
    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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 169 Super User 2025 Season 1

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 150

#3
sandeep_angara Profile Picture

sandeep_angara 75

Featured topics