• AI Chat Bot in Wp

    Posted by Rupesh Sagvekar on January 22, 2025 at 3:59 pm

    I am getting Oops Something went wrong error when i am trying to chat with the bot.
    can you help me. I am using xampp server for WordPress is it the problem.

    Hasan replied 1 week, 6 days ago 3 Members · 7 Replies
  • 7 Replies
  • Hasan

    Administrator
    January 23, 2025 at 3:16 pm

    mmm, first step we should test the chat endpoints alone without the UI to isolate the issue.
    did you set the OPenAI API keys correctly? and updated the URLs?

  • Rupesh Sagvekar

    Member
    February 3, 2025 at 1:08 am

    Yes i just copy the API key from API keys-OpenAI API

    • Husein

      Administrator
      February 3, 2025 at 8:40 am

      Did you charge your openai account with credits? because using OpenAI’s API is paid.

      In addition, did you change the URLs in the code to your own website’s URL. Please attach the backend code, without your API key, so that we can see if it’s working.

  • Rupesh Sagvekar

    Member
    February 5, 2025 at 5:45 am

    Yes, I try just past the backend code without API key and also have change the URL in script.js that is {const apiUrl = ‘http://rupee-world-software-and-hardware-services.local/wp-json/myapi/v1/chat-bot/’;

    const botConfigurationUrl = ‘http://rupee-world-software-and-hardware-services.local/wp-json/myapi/v1/chat-bot-config’;} in local wp still the issue is same

    • Husein

      Administrator
      February 5, 2025 at 8:26 am

      When you try the script ofcourse you need to add your API key.
      But, i want you to attach the code here and please do so without the API key so that I can check it.

      • Rupesh Sagvekar

        Member
        February 5, 2025 at 8:32 am

        Sorry I can’t understand what step are u saying to do

        • Hasan

          Administrator
          February 9, 2025 at 12:39 pm

          I prefer you wait for my next update, then you dont need any configurations.

Log in to reply.