Chatbot not working for guests

First of all, this is the coolest plugin I’ve tested in the last 15 years or so!

The chatbot does not respond to guests but works for signed-in users. This was tested on WordPress 6.4.2, with AI Engine 2.1.6 (free and pro), Twenty Eleven Theme, and no other plugins active.

This is the error message in the console:

An error happened in the handling of the chatbot response. Objecterr: ReferenceError: data is not defined
    at https://example.com/wp-content/plugins/ai-engine/app/chatbot.js?ver=1705852527:2:89323
    at p (https://example.com/wp-content/plugins/ai-engine/app/chatbot.js?ver=1705852527:2:81100)
    at Generator.<anonymous> (https://example.com/wp-content/plugins/ai-engine/app/chatbot.js?ver=1705852527:2:82447)
    at Generator.throw (https://example.com/wp-content/plugins/ai-engine/app/chatbot.js?ver=1705852527:2:81529)
    at qt (https://example.com/wp-content/plugins/ai-engine/app/chatbot.js?ver=1705852527:2:88064)
    at l (https://example.com/wp-content/plugins/ai-engine/app/chatbot.js?ver=1705852527:2:88305)message: "data is not defined"stack: "ReferenceError: data is not defined\n    at https://example.com/wp-content/plugins/ai-engine/app/chatbot.js?ver=1705852527:2:89323\n    at p (https://example.com/wp-content/plugins/ai-engine/app/chatbot.js?ver=1705852527:2:81100)\n    at Generator.<anonymous> (https://example.com/wp-content/plugins/ai-engine/app/chatbot.js?ver=1705852527:2:82447)\n    at Generator.throw (https://example.com/wp-content/plugins/ai-engine/app/chatbot.js?ver=1705852527:2:81529)\n    at qt (https://example.com/wp-content/plugins/ai-engine/app/chatbot.js?ver=1705852527:2:88064)\n    at l (https://example.com/wp-content/plugins/ai-engine/app/chatbot.js?ver=1705852527:2:88305)"[[Prototype]]: Errorconstructor: ƒ ReferenceError()message: ""name: "ReferenceError"[[Prototype]]: Object[[Prototype]]: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()__defineGetter__: ƒ __defineGetter__()__defineSetter__: ƒ __defineSetter__()__lookupGetter__: ƒ __lookupGetter__()__lookupSetter__: ƒ __lookupSetter__()__proto__: (...)get __proto__: ƒ __proto__()set __proto__: ƒ __proto__()
(anonymous) @ chatbot.js?ver=1705852527:2

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer