Giter Club home page Giter Club logo

Comments (7)

kompasim avatar kompasim commented on August 22, 2024
  1. if you want to try the gui interface just open index.php.
  2. api.php is for a programmatic usage, for example you want to integrate this chatbot to your own application, then you can use a http lib and reqeust api.php.

from chatbot.

kompasim avatar kompasim commented on August 22, 2024
  1. to use api.php correctly , you need to add parameter requestType, which is supprting chat and forget two types.
  2. and when you send chat for requestType, you also need parameter userInput to tell chatbot your question.

from chatbot.

kompasim avatar kompasim commented on August 22, 2024

a simple usage of api is: /api.php?requestType=talk&userInput=hello, in this url you are requesting for chat, and you say hello to chatbot. and the output is a json which you can decode in your own application and show in your own ui.

from chatbot.

iqbalramadhanofficial avatar iqbalramadhanofficial commented on August 22, 2024
  1. if you want to try the gui interface just open index.php.
  2. api.php is for a programmatic usage, for example you want to integrate this chatbot to your own application, then you can use a http lib and reqeust api.php.

Yes, i want try the gui interface and opened index,php. But when input the chat like your screenshot file.

like "hello" or "wow", i still get undefined result. the database name is already set in the config file.

from chatbot.

kompasim avatar kompasim commented on August 22, 2024

I see, you need to set the log variable in config.php to false, it is for debug purpose, and would print some extra informations, and this will let front end js got non-json data.

from chatbot.

kompasim avatar kompasim commented on August 22, 2024

when you check api.php directly in bowser and wanna see what is going on with the chatbot application, you can set $log = false; to see more log.

from chatbot.

kompasim avatar kompasim commented on August 22, 2024

image
like this.

from chatbot.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.