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 : LN+pEkvAiWSJpBnUrmTURe
Copilot Studio - General
Unanswered

Dynamically provide a website URL from a Power Virtual Agents bot to the data source of a Create Generative Answers node

Like (1) ShareShare
ReportReport
Posted on 1 Jun 2023 04:50:32 by 4

I want to dynamically provide a website URL from a Power Virtual Agents bot to the data source of a Create Generative Answers node. However, the dropdown options for the public website URL only allow "Manual input" and do not accept a "Variable" option. How can I use the URL provided by the Power Virtual Agents bot as the data source for the Create Generative Answers node?

I have the same question (0)
  • HenryJammes Profile Picture
    on 01 Jun 2023 at 07:50:22
    Re: Dynamically provide a website URL from a Power Virtual Agents bot to the data source of a Create Generative Answers node

    Hi @siraz1 

     

    I experience the same behavior as you. 
    Let me check internally and keep you posted.

     

    Henry

  • Friedolin Profile Picture
    2 on 02 Jun 2023 at 09:26:18
    Re: Dynamically provide a website URL from a Power Virtual Agents bot to the data source of a Create Generative Answers node

    Hi @HenryJammes,

     

    I like to attach myself here to the topic. In general the option to use variables to build URL or even calling a topic using variables would be awesome.

     

    An URL could be combined like https://mysite.com/{global.selected-topic}/summary.html

     

    When a topic is called, I see in code editor that the calling of the topic is shown as:

              actions:

                - kind: BeginDialog
                  id: IDNUMBER
                  dialog: crXXX_MyServiceBot.topic.topic_sel_1
    The dialog being called is shown with the specific name. Using a variable here would avoid using massive switches if you have a lot of options.
    The called dialog could say something like:
    dialog: crXXX_MyServiceBot.topic.{global.selected-topic}
     
    As the code editor is written in YAML, is it possible to use PyYaml for python support and use variables or any other way to use variables?
  • Himanshu_90677 Profile Picture
    15 on 30 Jan 2024 at 08:00:21
    Re: Dynamically provide a website URL from a Power Virtual Agents bot to the data source of a Create Generative Answers node

    Hey @siraz1 ,

    I have same issue, I had created environment variable as text and store website in it, and use 

    [Env.hp0201_URL] in power virtual agent formula and it's working fine.

     

  • CopilotHQ Profile Picture
    10 on 26 Feb 2024 at 02:35:16
    Re: Dynamically provide a website URL from a Power Virtual Agents bot to the data source of a Create Generative Answers node

    This is the answer.. use a global variable or otherwise and populate the formula with [ variable ] 

    Remember to include the square brackets.. @Himanshu_90677 - you legend!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 424 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 318 Super User 2025 Season 2

#3
CU15090955-0 Profile Picture

CU15090955-0 46

Last 30 days Overall leaderboard
Loading complete