Skip to content

Commit f7f4dc9

Browse files
committed
2 parents fc1db39 + 813065a commit f7f4dc9

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ Intended workflow explained:
2828

2929
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!
3030

31-
<p align="right">(<a href="#top">back to top</a>)</p>
32-
33-
34-
3531
### Built With
3632

3733
* [MongoDB](https://www.mongodb.com/)
@@ -44,7 +40,6 @@ There are a few known bugs that we acknowledge, described in the projects sectio
4440
<p align="right">(<a href="#top">back to top</a>)</p>
4541

4642

47-
4843
<!-- GETTING STARTED -->
4944
## Getting Started
5045

@@ -58,7 +53,7 @@ First, you will need to install [NPM](https://nodejs.org/en/download/), a [Mongo
5853

5954
2. Install the NPM requisites:
6055
```sh
61-
$ cd xatkit-spl-backend
56+
$ cd xatkit-spl-api
6257
$ npm install
6358
```
6459
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
6863
$ npm start
6964
```
7065

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.
7267

73-
<p align="right">(<a href="#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.
7471

7572
### Deploying a Chatbot
7673

7774
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.
7875

7976
1. Build the bot image:
8077
```sh
81-
$ docker build -t the_name_you_want_to_give_this_image .
78+
$ docker build -t newbot .
8279
```
8380
2. Run the chatbot:
8481
```sh
85-
$ 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
8683
```
8784

8885
Now you can access http://localhost:5000/admin and start chatting!
8986

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+
9091
<p align="right">(<a href="#top">back to top</a>)</p>
9192

9293
<!-- CONTRIBUTING -->

0 commit comments

Comments
 (0)