Comments (7)
- if you want to try the gui interface just open
index.php
. 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 reqeustapi.php
.
from chatbot.
- to use
api.php
correctly , you need to add parameterrequestType
, which is supprtingchat
andforget
two types. - and when you send chat for
requestType
, you also need parameteruserInput
to tell chatbot your question.
from chatbot.
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.
- if you want to try the gui interface just open
index.php
.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 reqeustapi.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.
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.
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.
from chatbot.
Related Issues (8)
- Not Working HOT 11
- Storing Predicates in Database HOT 3
- system 标签无法使用 HOT 4
- condition HOT 1
- 关于aiml编辑器 HOT 1
- xss vulnerability ? HOT 4
- Date fields not parsing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatbot.