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 make pva call a...
Copilot Studio
Unanswered

how to make pva call a specific topic a on each page transition in sharepoint ?

(0) ShareShare
ReportReport
Posted on by 30

i have a Bot  made in copilot studio hosted on sharepoint using Webpart (HTML ,CSS and JS), what i want to do is to call a specific topic when the user open a new page (transition from page to page).

is there a javascript code to make the bot call a topic ? or are there any node in copilot studio allows to do that ?

 

I have the same question (0)
  • Audrie101 Profile Picture
    Microsoft Employee on at

    To call a specific topic when a user transitions from one page to another in your SharePoint-hosted bot, you can use JavaScript to trigger the topic. While Copilot Studio does not provide a direct method to call a topic through JavaScript, you can utilize the Direct Line API to send an event to your bot that will trigger the desired topic.

    Send an Event: Use JavaScript with Direct Line API to send an event to your bot when the page transition occurs. This event should be recognized by your bot as a signal to trigger the specific topic.

    Configure the Bot to Listen for the Event: In Copilot Studio, configure your bot to listen for the event and trigger the topic accordingly. You can use the ‘Event received’ trigger type to start a topic when a specific event is received

    For more detailed instructions and examples, you may want to refer to the Direct Line API documentation and the Copilot Studio documentation on topic triggers.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
sannavajjala87 Profile Picture

sannavajjala87 206 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 147

#3
Haque Profile Picture

Haque 119

Last 30 days Overall leaderboard