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.
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
stampcoin
6
Artur Stepniak
5
Super User 2025 Season 1
Michael E. Gernaey
4
Super User 2025 Season 1