3.11.9
To get started with the Chatbot API, clone the repository and install the required dependencies in requirements.txt
:
git clone https://github.com/dionisius-lg/chatbot-api-py.git
cd chatbot-api
pip install -r requirements.txt
Rename or copy .env.example
to .env
, then setup the 'datasources' for your application.
-
Fetch App Client Data
GET /app_clients
This endpoint is used to show all data -
Create New App Client Data
POST /app_clients
This endpoint is used to create new data -
Create Multiple New App Client Data
POST /app_clients/many
This endpoint is used to create bulk new data -
Create Multiple New App Client On Duplicate Update Data
POST /app_clients/many/update
This endpoint is used to create bulk new on duplicate update data -
Fetch App Client by ID
GET /app_clients/{id}
This endpoint is used to show data by ID -
Update App Client Data by ID
PUT /app_clients/{id}
This endpoint is used to update existing data by ID -
Delete App Client Data by ID
DELETE /app_clients/{id}
This endpoint is used to delete data by ID
-
Train Bot
GET /bot/train
This endpoint is used to train bot -
Chat Bot
POST /bot/chat
This endpoint is used to chat with bot
-
Export Intent Data
GET /exports/intents
This endpoint is used to export data to excel -
Export Pattern Data
GET /exports/patterns
This endpoint is used to export data to excel -
Export Response Data
GET /exports/responses
This endpoint is used to export data to excel -
Export User Data
GET /exports/users
This endpoint is used to export data to excel
- Download File
GET /files/{id}
This endpoint is used to download file
-
Fetch Intent Data
GET /intents
This endpoint is used to show all data -
Create New Intent Data
POST /intents
This endpoint is used to create new data -
Create Multiple New Intent Data
POST /intents/many
This endpoint is used to create bulk new data -
Create Multiple New Intent On Duplicate Update Data
POST /intents/many/update
This endpoint is used to create bulk new on duplicate update data -
Fetch Intent by ID
GET /intents/{id}
This endpoint is used to show data by ID -
Update Intent Data by ID
PUT /intents/{id}
This endpoint is used to update existing data by ID -
Delete Intent Data by ID
DELETE /intents/{id}
This endpoint is used to delete data by ID
-
Fetch Pattern Data
GET /patterns
This endpoint is used to show all data -
Create New Pattern Data
POST /patterns
This endpoint is used to create new data -
Create Multiple New Pattern Data
POST /patterns/many
This endpoint is used to create bulk new data -
Create Multiple New Pattern On Duplicate Update Data
POST /patterns/many/update
This endpoint is used to create bulk new on duplicate update data -
Fetch Pattern by ID
GET /patterns/{id}
This endpoint is used to show data by ID -
Update Pattern Data by ID
PUT /patterns/{id}
This endpoint is used to update existing data by ID -
Delete Pattern Data by ID
DELETE /patterns/{id}
This endpoint is used to delete data by ID
-
Fetch Response Data
GET /responses
This endpoint is used to show all data -
Create New Response Data
POST /responses
This endpoint is used to create new data -
Create Multiple New Response Data
POST /responses/many
This endpoint is used to create bulk new data -
Create Multiple New Response On Duplicate Update Data
POST /responses/many/update
This endpoint is used to create bulk new on duplicate update data -
Fetch Response by ID
GET /responses/{id}
This endpoint is used to show data by ID -
Update Response Data by ID
PUT /responses/{id}
This endpoint is used to update existing data by ID -
Delete Response Data by ID
DELETE /responses/{id}
This endpoint is used to delete data by ID
-
Fetch User Data
GET /users
This endpoint is used to show all data -
Create New User Data
POST /users
This endpoint is used to create new data -
Create Multiple New User Data
POST /users/many
This endpoint is used to create bulk new data -
Create Multiple New User On Duplicate Update Data
POST /users/many/update
This endpoint is used to create bulk new on duplicate update data -
Fetch User by ID
GET /users/{id}
This endpoint is used to show data by ID -
Update User Data by ID
PUT /users/{id}
This endpoint is used to update existing data by ID -
Delete User Data by ID
DELETE /users/{id}
This endpoint is used to delete data by ID
- Chat Message
POST /chat
This endpoint is used to post chat message
Swagger Documentation
/docs