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 ?
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