Hello everyone π! This application is a whatsapp chatbot integrated with mongodb, it uses mongodb to store menus and options, besides it uses a data structure, a n-ary tree for menu navigation. Also this app has an api for mongodb data management.
| Parameter | Type | Description |
|---|---|---|
root |
Menu |
Required. Menu tree root |
| Parameter | Type | Description |
|---|---|---|
keys |
[string, ...] |
Required. Keys that can be used to access this menu |
value |
string |
Required. Text to be displayed |
options |
[Menu, ...] |
Required. Other menus |
menuParent |
Menu |
Required. Parent menu of this menu |
GET /chatbot/menu/get/{id}
| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Menu ID |
This api link it use only in the first menu (root) is added, therefore, some parameters may be null.
POST /chatbot/menu/add
| Parameter | Type | Description |
|---|---|---|
keys |
[string, ...] |
Required. This parameter can be null |
value |
string |
Required. Text to be displayed |
menuParent |
Menu |
Required. This parameter can be null |
POST /chatbot/menu/addOption/${id}
| Parameter | Type | Description |
|---|---|---|
keys |
[string, ...] |
Required. Keys that can be used to access this menu |
value |
string |
Required. Text to be displayed |
DELETE /chatbot/menu/deleteOption/${id}
| Parameter | Type | Description |
|---|---|---|
id |
string |
Required. Menu ID |