Skip to main content

Notifications

Topic Creation & Management
Unanswered

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

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
    Audrie101 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.

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…

Leaderboard

#1
renatoromao Profile Picture

renatoromao 6,459

#2
Pstork1 Profile Picture

Pstork1 1,997

#3
Expiscornovus Profile Picture

Expiscornovus 1,708

Leaderboard

Featured topics