You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-10
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,6 @@ Intended workflow explained:
28
28
29
29
There are a few known bugs that we acknowledge, described in the projects section. If you detect any other new bug, please consider reporting it!
30
30
31
-
<palign="right">(<ahref="#top">back to top</a>)</p>
32
-
33
-
34
-
35
31
### Built With
36
32
37
33
*[MongoDB](https://www.mongodb.com/)
@@ -44,7 +40,6 @@ There are a few known bugs that we acknowledge, described in the projects sectio
44
40
<palign="right">(<ahref="#top">back to top</a>)</p>
45
41
46
42
47
-
48
43
<!-- GETTING STARTED -->
49
44
## Getting Started
50
45
@@ -58,7 +53,7 @@ First, you will need to install [NPM](https://nodejs.org/en/download/), a [Mongo
58
53
59
54
2. Install the NPM requisites:
60
55
```sh
61
-
$ cd xatkit-spl-backend
56
+
$ cd xatkit-spl-api
62
57
$ npm install
63
58
```
64
59
3. Update the .env file providing the different values shown in .env.example
@@ -68,25 +63,31 @@ First, you will need to install [NPM](https://nodejs.org/en/download/), a [Mongo
68
63
$ npm start
69
64
```
70
65
71
-
Then, you can access all the endpoints through an application like [Postman](https://www.postman.com/)
66
+
Then, you can access all the endpoints through an application like [Postman](https://www.postman.com/), or using the Swagger UI in /docs.
72
67
73
-
<palign="right">(<ahref="#top">back to top</a>)</p>
68
+
### Using the Tool
69
+
70
+
Now, you can provide a valid Feature Model in UVL format, and a JSON file with information about the features in the model. You can take a look of the examples we provide in the bots/ExampleBot directory.
74
71
75
72
### Deploying a Chatbot
76
73
77
74
Once the PL -> Intent -> Chatbot process has been completed with this tool, you will have access to a Dockerfile. For running your new chatbot, you will need to execute the following commands, having [Docker](https://docs.docker.com/desktop/) previously installed.
$ docker run -t -i -p 5000:5000 -p 5001:5001 the_name_you_gave_before
82
+
$ docker run -it -p 5000:5000 -p 5001:5001 newbot
86
83
```
87
84
88
85
Now you can access http://localhost:5000/admin and start chatting!
89
86
87
+
### NLP Services
88
+
89
+
If you want to take one step further and improve your bots adding a NLP layer, you will need to follow this [tutorial](https://github.com/xatkit-bot-platform/nlp.js-server). This Docker image will generate a NLP Server for Intent Recognition, and its ready to go, Xatkit-SPL will detect the server automatically and link the bots to it.
90
+
90
91
<palign="right">(<ahref="#top">back to top</a>)</p>
0 commit comments