Rasa botfront webchat tooltipPayload stops initPayload

Hello Everyone,

I’m using tooltipPayload as a way to get the user’s attention that the chatbot exists and when they open the chat widget the initPayload should trigger and show them the menu

However whats happening is when the user opens the chat widget the initPayload doesnt trigger and they only see the tooltipPayload.

Is there a way to make them both trigger ? or a way to use the send a payload when the user opens the chatbot for the first time in a session ?

okay so I’ve been able to resolve this by editing the file https://cdn.jsdelivr.net/npm/rasa-webchat@1.x.x/lib/index.js and commenting out the line “,a({type:“INITIALIZE”})” in the function trySendTooltipPayload

what this line was doing is setting the a variable “initialized” to true and the function trySendInitPayload checks if that variable is true it will not run, by removing that line the variable will not be set to true and the initPayload will run