web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Copilot Studio
Unanswered

Vary the start topic

(0) ShareShare
ReportReport
Posted on by

When the user clicks the button on my website to launch PVA, I want it to begin at a specific topic without the user typing anything. That specific topic will vary based on the page the user is on. The topic variable will be stored on the page or can be a JS variable that gets fed to the PVA JS script.


Is there a way to pass a variable to PVA through JS in order to trigger a specific topic?

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    Here's the documentation on how to autostart a bot using javascript.  I think the key would be to provide a parameter on the URL that starts the bot (in the javascript) based on the page the bot is started from.  Then use that parameter to conditionally jump to a specific topic when the bot starts.

    Automatically start a chatbot conversation - Power Virtual Agents | Microsoft Docs

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @bobisready  ,

     

    Do you need anything else?

    Is it working @Pstork1 's solution?

    - If yes, could you please accept his reply as a Solution? Thanks! 🙂

    - Otherwise, you can see additional information below:

     

    First, you'll need to deploy a custom canvas that includes arguments that trigger the greeting. By default, the custom canvas calls the default system greeting topic. You can, however, create a new topic to be used as the greeting, although you will need to divert the default system greeting topic to a new topic.

    ----> https://docs.microsoft.com/en-us/power-virtual-agents/configure-bot-greeting?WT.mc_id=BA-MVP-5003806 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 265 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard