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 :
Copilot Studio
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

  • adilei Profile Picture
    Microsoft Employee on at

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

     

    What is you client doing? Can you share?

  • Verified answer
    wswitzer Profile Picture
    74 on at

    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.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Copilot Studio

#1
11manish Profile Picture

11manish 108 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 98

#3
anirudhev Profile Picture

anirudhev 60

Last 30 days Overall leaderboard