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 / How to get Current web...
Copilot Studio
Answered

How to get Current website from PVA bot.

(0) ShareShare
ReportReport
Posted on by 71

Hey, I have a PVA bot on 4 websites, When the chat is escalated from bot to an agent i want to show website as well. Like this chat is coming from website1 . etc.

 

How can I get the current URL where chat is shown? 

Categories:
I have the same question (0)
  • nikviz Profile Picture
    242 on at

    You can use Bot Framework Composer to extend your bot and set the variable turn.Activity.channeldata 

  • furqanmajeed Profile Picture
    71 on at

    Do you have any example for that. 

  • nikviz Profile Picture
    242 on at

    I followed this blog to do it

    https://techdocs.audiocodes.com/voice-ai-connect/Content/VAIG_Combined/microsoft_pva.htm

    Scroll down to section "Saving Channel Data"

  • nikviz Profile Picture
    242 on at

    Just to add, If you are using a preview version then you do not have to use botframework composer. You can follow the steps here:


    https://learn.microsoft.com/en-us/power-virtual-agents/preview/authoring-variables

    You can use Activity.Channel

     

    However, Preview features aren't meant for production.

  • Verified answer
    nikviz Profile Picture
    242 on at

    @furqanmajeed 
    These are the two ways in which I am using it

    1) Using Botframework composer:

    You can use the turn.activity 

    nikviz_0-1677689541717.png

    Sample response in bot would be like this:

    nikviz_1-1677689652942.png


    This will give the serviceURL as directline or slack or telegram etc.
    This will not give the web url. To capture the web URL follow the below steps.

     

    2) To capture the webURL
    a) In the webpage where you are calling the bot add the below section highlighted

    nikviz_2-1677689987349.png

     

    b) Use a question to call the variable page as external source in PVA topic

    nikviz_3-1677690099894.png

     

    c) Call this variable somewhere in your main flow

    nikviz_4-1677690242129.png

    sample output if you include it in message

    nikviz_5-1677690399387.png

     

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Dua Sadiq Profile Picture

Dua Sadiq 104

#2
11manish Profile Picture

11manish 87 Super User 2026 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 84 Super User 2026 Season 2

Last 30 days Overall leaderboard