docs: ypdate readme
@@ -15,7 +15,7 @@ Deployment
3. Install and configure [Docker](https://docs.docker.com/install/) and [Docker-compose](https://docs.docker.com/compose/install/)
4. Set up an environmental variable for storing high volume downloadable data, like pre-trained models in [.env](../.env) file.
``EXTERNAL_FOLDER=''`` - this variable stores path for external folder where downloaded data will be stored. By default it is linked to project's homefolder.
-5. Configure `TELEGRAM_TOKEN` and `TELEGRAM_PROXY` environment variables if you want to communicate with the bot via Telegram.
+5. (optional) Configure `TELEGRAM_TOKEN` and `TELEGRAM_PROXY` environment variables if you want to communicate with the bot via Telegram.
6. Configure all skills, skill selectors, response selectors, annotators and database connection in [config.py](core/config.py)
7. Generate **docker-compose.yml** by running the command:
```bash
@@ -27,17 +27,42 @@ Deployment
docker-compose up --build
```
-9. Connect to agent container ([more information](https://docs.docker.com/engine/reference/commandline/exec/)):
+Running Agent
+=============
+
+Agent can run both from container and from a local machine.
+
+**Container**
+
+1. Connect to agent container ([more information](https://docs.docker.com/engine/reference/commandline/exec/)):
```bash
docker exec -it agent /bin/bash
```
-10. Start communicating with the chatbot from the agent container console:
+2. Start communicating with the chatbot from the agent container console:
```bash
python3 -m core.run
```
+
+**Local machine**
+
+1. Setup `DPA_LAUNCHING_ENV` environment variable:
+
+ ```bash
+ export DPA_LAUNCHING_ENV="local"
+ ```
+
+1. Install Agent requirements:
+ ```bash
+ pip -r install gen_requirements.txt
+ ```
+
+2. Start communicating with the chatbot from the console:
+ ```bash
+ python -m core.run
+ ```
or via the Telegram:
```bash
- python3 -m core.run -ch telegram
+ python -m core.run -ch telegram
```
\ No newline at end of file
