Title: Information Chatbot
Last modified: June 28, 2024

---

# Information Chatbot

 *  Resolved [djvinz98](https://wordpress.org/support/users/djvinz98/)
 * (@djvinz98)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/information-chatbot/)
 * hello on our website [http://www.romanoauto.it](http://romanoauto.it) we have
   inserted your chatbot, and as you can see on the home page we have put an animated
   graphic of a robot, I would like some information and it is possible to insert
   a link or a code that when someone clicks on the graphic the chat opens, and 
   not necessarily go and click on the image at the bottom of the chat,
   I would 
   like the chat to open by clicking on the graphic, thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finformation-chatbot%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [Val Meow](https://wordpress.org/support/users/valwa/)
 * (@valwa)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/information-chatbot/#post-17858796)
 * Hey [@djvinz98](https://wordpress.org/support/users/djvinz98/)! 👋
 * Yes, you can control the chatbot from other events on your front web page. For
   this, you will need to use the front-end JavaScript API of the AI Engine and 
   use the `open()` function when clicking on your image. Learn more here: [API & Filters | Meow Apps](https://meowapps.com/ai-engine/api/)
 *  Thread Starter [djvinz98](https://wordpress.org/support/users/djvinz98/)
 * (@djvinz98)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/information-chatbot/#post-17870522)
 * Thanks for the reply, I managed to create the code, but I have a problem when
   I insert it into the page builder that I use, that is, Elementor, the code works
   and when I click on the video the chat opens, but when I save the page and enter
   the site normally the javascript isn’t read and nothing happens when I click,
   it’s strange because it works in Elementor.
 *     ```wp-block-code
       <video id="video" playsinline autoplay loop muted>        <source src="https://romanoauto.it/wp-content/uploads/2024/06/Bryan-Romano-Auto-Mobile.mp4" type="video/mp4">         </video>  <script>  var video = document.getElementById("video");  video.addEventListener("click", chatbot.open)</script>
       ```
   
 *  Thread Starter [djvinz98](https://wordpress.org/support/users/djvinz98/)
 * (@djvinz98)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/information-chatbot/#post-17870847)
 * the problem comes from the “chatbot.open()” code because if inserted a different
   function it works.
 * I also tried to write the code differently from the one I provided in the previous
   message, but it gives me the same problem, it works on Elementor, but then when
   I save the page and enter the site nothing appears, I also tried removing the
   video and to put a photo, or a button, but always the same. Are we missing some
   code that I should enter to get it started?
    -  This reply was modified 1 year, 11 months ago by [djvinz98](https://wordpress.org/support/users/djvinz98/).
    -  This reply was modified 1 year, 11 months ago by [djvinz98](https://wordpress.org/support/users/djvinz98/).
 *  Plugin Support [Val Meow](https://wordpress.org/support/users/valwa/)
 * (@valwa)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/information-chatbot/#post-17874493)
 * Hey [@djvinz98](https://wordpress.org/support/users/djvinz98/)! 👋
 * You cannot call the function without first defining the chatbot variable correctly.
   Please ensure you are using the following method to declare your chatbot variable.
   Also, ensure this declaration occurs only after the DOM has finished initializing.
   Thank you!
 *     ```wp-block-code
       let chatbot = MwaiAPI.getChatbot(); 
       ```
   
 *  Thread Starter [djvinz98](https://wordpress.org/support/users/djvinz98/)
 * (@djvinz98)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/information-chatbot/#post-17875503)
 * Hi, thanks for the help. I did some tests, but I can’t understand how to insert
   this part of code to make it work, can you help me by any chance? Thank you
 *  Plugin Support [Val Meow](https://wordpress.org/support/users/valwa/)
 * (@valwa)
 * [1 year, 10 months ago](https://wordpress.org/support/topic/information-chatbot/#post-17891784)
 * Hey [@djvinz98](https://wordpress.org/support/users/djvinz98/)! 👋
 * We are unable to offer support for custom code or specific use cases. If you 
   believe there is an issue related to the plugin API, please let us know so we
   can assist you accordingly. For developing custom solutions, you may consider
   reaching out to freelancers who can help you with coding your solution. Thank
   you for your understanding.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Information Chatbot’ is closed to new replies.

 * ![](https://ps.w.org/ai-engine/assets/icon-256x256.png?rev=3431928)
 * [AI Engine - The Chatbot, AI Framework & MCP for WordPress](https://wordpress.org/plugins/ai-engine/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ai-engine/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ai-engine/)
 * [Active Topics](https://wordpress.org/support/plugin/ai-engine/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ai-engine/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ai-engine/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Val Meow](https://wordpress.org/support/users/valwa/)
 * Last activity: [1 year, 10 months ago](https://wordpress.org/support/topic/information-chatbot/#post-17891784)
 * Status: resolved