Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Topic Creation & Management
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 ?

 

  • Audrie101 Profile Picture
    on at
    Re: how to make pva call a specific topic a on each page transition in sharepoint ?

    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 169 Super User 2025 Season 1

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 150

#3
sandeep_angara Profile Picture

sandeep_angara 75

Featured topics