Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - General
Unanswered

PVA not starting automatically on webpage

(0) ShareShare
ReportReport
Posted on by 10

Please advise me in the topic of automatic start conversation when bot it being deployed on custom website. I did everything correct according to the documentation under this link: https://learn.microsoft.com/en-us/power-virtual-agents/configure-bot-greeting?tabs=web Unfortunately, my chatbot is not starting automatically. It starts when I type something. Should I change a trigger in Greeting topic? Please send some advise in this challenge.

Categories:
  • fernandosilva Profile Picture
    Super User 2024 Season 1 on at
    Re: PVA not starting automatically on webpage

    Hi @Damian2 ,

     

    Have a look if you have this function in your html file:

     

     const store = window.WebChat.createStore({},
     ({
     dispatch
     }) => next => action => {
     if (action.type === "DIRECT_LINE/CONNECT_FULFILLED") {
     dispatch({
     meta: {
     method: "keyboard",
     },
     payload: {
     activity: {
     channelData: {
     postBack: true,
     },
     name: 'startConversation',
     type: "event"
     },
     },
     type: "DIRECT_LINE/POST_ACTIVITY",
     });
     }
     return next(action);
     }
     );

     

    Applying this code will make the bot starts automatically with the Greeting topic.

     

    Cheers,

     

    Fernando

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Copilot Studio - General

#1
stampcoin Profile Picture

stampcoin 6

#2
Artur Stepniak Profile Picture

Artur Stepniak 5 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 4 Super User 2025 Season 1

Overall leaderboard