-
WordPress Chatbot
Posted by Paul Singh on December 26, 2024 at 10:47 pmHi Guys,
I was having an issue trying to load the chatbot that Hasan had created a video on, but for some reason the code seems to be a little different from the video and not sure if everything works properly or I am doing something wrong.
Can anyone assist.
Hasan replied 3 hours, 26 minutes ago 4 Members · 15 Replies -
15 Replies
-
Hi Paul, can you please share more details about the problem and which video you are referring to?
-
So I was trying out the chatbot with the ability to add AI tomato the chatbot mire robust. Then I saw your RAG chatbot which I was going to try but got a little confused which would actually work best for me. So the current problem is as follows.
I added the code snippets and tries to load it to just a new page to test things out and here is what I get.
-
The first code snippet is a javascript code so make sure to write <script> on the first line before everything and </script> on the last line after everything.
-
Thank you for the input. I think the problem could be a bit bigger than I initially though but determined to figure this out. The first thing I did was try and test the bot out and noticed it was offline, so I changed line 93 to 1 to have the bot active but it still has not activated so I cannot test if it is actually working before I create the snippets.
I have gone ahead to see if by adding the snippets if they work on my site but noticed that the integration worked correctly but the bot is not online.
Hasan do you know what I could have dont incorrectly?
I guess once I get this sorted I will see how I can integrate RAG or ChatGPT to answer potential questions.
-
Did you edit everything in your code as Hasan mentioned in the tutorial like putting your own OpenAI API key, your site URL in the javascript variables, activated the PHP snippets when updating them, and so on?
-
Hi Husein,
I am a newbie but Im pretty sure I got all of the code in correctly. I added the code snippet from the config.php file and made sure I selected php.
I then added the other three files and made sure I added <script> and </script> when adding the script file and <style> and </style> to the style file.
<font face=”inherit”>I also </font>changed<font face=”inherit”> the ‘botstatus’ to 1 to </font>activate<font face=”inherit”> but for some reason the bot is not </font>surfing<font face=”inherit”> active nor do the buttons populate at the bottom of the chat for quick reference. </font>
<font face=”inherit”>Obviously I am doing something wrong. lol </font>
-
Please dont share your API keys like this, people would use them and ud pay for every call, so make sure to deactivate this key and generate a new one.
Anyways attach all your codes so that i can test them from my side and see whats wrong.-
Hi Husein,
Attached are the codes I have loaded for the front end. I hope this is what you were asking for.
This file was truncated for preview. Please download to view the full file.-
Hi Husein
I received a post with front and back end codes but cannot see where is has been uploaded for me to download.
-
I uploaded them but they didnt open correctly, i don’t know why so i deleted it.
Please attach your email so that i can send them by email.
-
-
-
-
-
-
Hi Guys, I am also looking for the RAG code that was said to be included in a newsletter (according to this article: https://learnwithhasan.com/blog/free-ai-chatbot-on-wordpress/)
learnwithhasan.com
How To Create a Free AI Chatbot on WordPress From Scratch!
In this post, I will show you how to create a Free AI Chatbot on WordPress without using third-party services or chatbot plugins.
-
I think these are in the description of the video:
UI 👉https://tinyurl.com/25xpyvj5
Backend 👉 https://tinyurl.com/yrvchzsn
-
Hasan still didnt publish yet publish the RAG integrated chatbot guide, when he does so it will be via newsletter so make sure to stay updated on the upcoming newsletters.
-
I created a new project that uses no code tools as backend foe the RAG bot on wordpress, you can check the video here:
-
Log in to reply.