Skip to main content

Notifications

Copilot Studio - Publish & Channel Management
Unanswered

Custom website Web Chat refresh and start new conversation on angular website

(0) ShareShare
ReportReport
Posted on by 24

Hi All,

 

I am looking to add a button on my custom angular website that will refresh the PVA webchat, similar to the refresh button in "Test your bot" section of PVA. How do I do this?

 

Capture.PNG

  • Kamrani Profile Picture
    Kamrani on at
    Re: Custom website Web Chat refresh and start new conversation on angular website

    I don't think so.

    This one shows how to clear conversation data after the bot has been idle but it also uses react.

    https://github.com/microsoft/BotFramework-WebChat/tree/main/samples/04.api/h.clear-after-idle 

  • jdriscollpro Profile Picture
    jdriscollpro 24 on at
    Re: Custom website Web Chat refresh and start new conversation on angular website

    @Kamrani thanks ! Do you have any specific example JavaScript code that isn't react framework for this? Would be greatly appreciated!

  • Kamrani Profile Picture
    Kamrani on at
    Re: Custom website Web Chat refresh and start new conversation on angular website

    Hi jdriscollpro- 

    You would need to customize the Web Chat control to provide this behavior. It is open source and can be found here: https://github.com/Microsoft/BotFramework-WebChat

     

    Additional links:

    https://docs.microsoft.com/en-us/power-virtual-agents/customize-default-canvas 

    https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-webchat-overview?view=azure-bot-service-4.0

     

    Web Chat samples: 

    https://github.com/microsoft/BotFramework-WebChat/tree/main/samples#readme

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,691

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 65,019

Leaderboard

Featured topics