Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
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

(1) ShareShare
ReportReport
Posted on 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?

  • CopilotHQ Profile Picture
    10 on at
    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!

  • Himanshu_90677 Profile Picture
    15 on at
    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.

     

  • Friedolin Profile Picture
    2 on at
    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?
  • HenryJammes Profile Picture
    on at
    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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 25

#1
Pablo Roldan Profile Picture

Pablo Roldan 25

#3
stampcoin Profile Picture

stampcoin 10

Overall leaderboard