Your comments

window.sayText works only once the sitepal avatar has loaded.

i'm using another function on the onClick. and it that function i have written:

if (window.sayText) window.sayText(message,3,4,3);


hope it helps


i'm getting this :

'sayText' is not defined

Hi, this exemple shows how to add the avatar in react, but how do we use functions like sayText() after ?