GithubHelp home page GithubHelp logo

botfront / botfront Goto Github PK

View Code? Open in Web Editor NEW
789.0 34.0 321.0 208.1 MB

Enterprise-grade open source GUI platform for Rasa teams

Home Page: https://botfront.io

License: Apache License 2.0

JavaScript 99.29% Dockerfile 0.11% HTML 0.03% CSS 0.07% Shell 0.11% Python 0.09% Less 0.31%
rasa rasa-core chatbots conversational-ui conversational-ai conversational-interface conversational-bots chatbot-framework chat-bot conversational-agents

botfront's People

Contributors

dcsan avatar dependabot[bot] avatar duml avatar gercekarmagan avatar guillaumetech avatar kenrilea avatar matthieujnon avatar palashx avatar pheel avatar pndiku avatar rgstephens avatar schemeway avatar znat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

botfront's Issues

Feature: Support OAuth authentication

The current authentication for Botfront works quite well to evaluate its capabilities. But most often companies already have some form of authentication provider or single-sign-on solution. For such cases, it would be awesome, if Botfront would support other authentication methods through OAuth 2.

Path must be a string. Received undefined

Describe the bug
Error when clicking on Train Everything
To Reproduce
Steps to reproduce the behavior:

  1. meteor npm run start:docker-compose.dev
  2. Go to 'http://localhost:3000'
  3. Click on 'Train Everything'
  4. See error

Expected behavior
Training to be accomplished and save new model files.

Error Details
If applicable, add screenshots to help explain your problem.

I20190725-04:36:00.059(-7)? TypeError: Path must be a string. Received undefined
I20190725-04:36:00.060(-7)?     at assertPath (path.js:28:11)
I20190725-04:36:00.060(-7)?     at Object.join (path.js:1233:7)
I20190725-04:36:00.060(-7)?     at Promise.asyncApply (imports/api/instances/instances.methods.js:247:51)
I20190725-04:36:00.060(-7)?     at /home/myuser/.meteor/packages/promise/.0.11.2.1rxqxdq.d4m4g++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/fiber_pool.js:43:40

Desktop (please complete the following information):

  • OS: Ubuntu 18.04
  • Browser chrome
  • Version Version 75.0.3770.142

JS Error on opening webchat botfront ui

Hello

I've build 7 containers in Rancher :
bofront-api
mongo-db
rasa-actions-bf
rasa-core-bf
rasa-nlu-bf
rasa-front-bf

When i click on the webchat button on the botfront-ui, the current page become blank.

On the Chrome console, i've got those errors :
image

image

Do you know what could it be ?

I can access to the UI now, Rasa NLU get data when i train it, and API calls to nlu pipeline works.
Rasa-core is running well too.

Responses import fails

Describe the bug
See title

To Reproduce
Steps to reproduce the behavior:
Import bot responses

botfront_1      | Exception while invoking method 'templates.import' ReferenceError: Match is not defined
botfront_1      |     at MethodInvocation.templates.import (imports/api/project/response.methods.js:107:30)
botfront_1      |     at currentArgumentChecker.withValue (packages/check/match.js:118:15)
botfront_1      |     at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
botfront_1      |     at Object._failIfArgumentsAreNotAllChecked (packages/check/match.js:116:43)
botfront_1      |     at maybeAuditArgumentChecks (packages/ddp-server/livedata_server.js:1764:18)
botfront_1      |     at DDP._CurrentMethodInvocation.withValue (packages/ddp-server/livedata_server.js:719:19)
botfront_1      |     at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
botfront_1      |     at DDPServer._CurrentWriteFence.withValue (packages/ddp-server/livedata_server.js:717:46)
botfront_1      |     at Meteor.EnvironmentVariable.EVp.withValue (packages/meteor.js:1304:12)
botfront_1      |     at Promise (packages/ddp-server/livedata_server.js:715:46)
botfront_1      |     at new Promise (<anonymous>)
botfront_1      |     at Session.method (packages/ddp-server/livedata_server.js:689:23)
botfront_1      |     at packages/ddp-server/livedata_server.js:559:43

Unexpected Keyword MaxValue

Error thrown when defining a slot, of type float, specifying a 'maximum value'.

botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/server.py", line 691, in train
botfront-rasa   |     persist_nlu_training_data=True,
botfront-rasa   |   File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in __next__
botfront-rasa   |     return self.gen.send(None)
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/train.py", line 81, in train_async
botfront-rasa   |     domain = await file_importer.get_domain()
botfront-rasa   |   File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in __next__
botfront-rasa   |     return self.gen.send(None)
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa_addons/importers/botfront.py", line 87, in get_domain
botfront-rasa   |     domain = Domain.load(self._domain_path)
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/core/domain.py", line 70, in load
botfront-rasa   |     other = cls.from_path(path)
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/core/domain.py", line 80, in from_path
botfront-rasa   |     domain = cls.from_file(path)
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/core/domain.py", line 93, in from_file
botfront-rasa   |     return cls.from_yaml(rasa.utils.io.read_file(path))
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/core/domain.py", line 103, in from_yaml
botfront-rasa   |     return cls.from_dict(data)
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/core/domain.py", line 108, in from_dict
botfront-rasa   |     slots = cls.collect_slots(data.get("slots", {}))
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/core/domain.py", line 198, in collect_slots
botfront-rasa   |     slot = slot_class(slot_name, **slot_dict[slot_name])
botfront-rasa   | TypeError: __init__() got an unexpected keyword argument 'maxValue'
botfront-rasa   |

Slot is created and model trains when the 'max value' field is left empty, but not if the maximum value is set.

Screen Shot 2019-10-03 at 9 09 36 am

Cannot start service Mongo: network not found

Hello,

I installed a Linux Mint OS on vitualBox machine.
I installed docker, docker-compose, node js without problems.
Execute the command : sudo npm install -g botfront
In my folder project, execute sudo botfront and sudo botfront init

I receive an error from mongo : IMAGE
My log only content 'Attaching to'

Do you have some tips to fix it?

Thanks for helps
Valentin

Impossible to remove an intent from a NLU utterance

Describe the bug
Trying to remove an intent from an utterance raises an error and does not work.

To Reproduce
Steps to reproduce the behavior:
0. Import NLU examples (see screenshot 1)

  1. Add an intent to a NLU utterance
  2. Click on the intent and select the empty one, at the top of the list
  3. See error "Error: undefined: Intent is required (training_data.common_examples.$.intent) in nlu_models update"

Expected behavior
It should be possible to remove an intent from an utterance, not only by selecting the "" (empty) intent, but there should also be a button to do so, like for entities.

Screenshots
Import dialog:
rm_intent_impossible_import_data

Error message :
rm_intent_impossible

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: 76.0.3809.100

Responses not working for me

Describe the bug
Response does not respond to my rules.

To Reproduce
Steps to reproduce the behavior:

  1. Select stories in the sidebar, create a new group called Greetings, paste the content of 2 stories above (starting with chitchat.greet and chitchat.bye) in two dictinct stories, and train.
  2. Select NLU from the side bar and go the Chitchat tab. Select chitchat.greet and chitchat.bye, import and train
  3. Select Bot responses in the sidebar, then create 2 bot responses. The names of the bot responses are those used in stories:
    utter_hi
    utter_bye
  4. Open chat and write 'Hi' or 'Bye' return chitchat.greet or chitchat.bye...

Expected behavior
I expect him to return the rules I created

Screenshots
http://joxi.ru/12MNbDsl0j7YAJ
http://joxi.ru/RmzVnqsYRydemO
http://joxi.ru/MAj9g1Fjx5892e
Json response from Log after sending the message "Hi":
{'sender_id': '8ad2135fb7cd40ef9816ce4d8513ab58', 'slots': {'followup_response_name': None, 'latest_response_name': None, 'parse_data': None}, 'latest_message': {'intent': {'name': 'chitchat.greet', 'confidence': 0.9568777084350586}, 'entities': [], 'language': 'en', 'intent_ranking': [{'name': 'chitchat.greet', 'confidence': 0.9568777084350586}, {'name': 'chitchat.what_do_you_mean', 'confidence': 0.20752167701721191}, {'name': 'chitchat.you_are_worthless', 'confidence': 0.1871110498905182}, {'name': 'chitchat.you_are_welcome', 'confidence': 0.1731826514005661}, {'name': 'chitchat.you_are_annoying', 'confidence': 0.16573593020439148}, {'name': 'basics.request_handover', 'confidence': 0.12860450148582458}, {'name': 'chitchat.no_problem', 'confidence': 0.12329947203397751}, {'name': 'chitchat.are_you_a_robot', 'confidence': 0.12115823477506638}, {'name': 'chitchat.good_job', 'confidence': 0.11767125129699707}, {'name': 'chitchat.you_are_right', 'confidence': 0.11510945111513138}], 'text': 'Hi'}, 'latest_event_time': 1564971940.4782531, 'followup_action': None, 'paused': False, 'events': [{'event': 'action', 'timestamp': 1564971940.4521692, 'name': 'utter_hi', 'policy': 'policy_2_MemoizationPolicy', 'confidence': 1.0}, {'event': 'bot', 'timestamp': 1564971940.452178, 'text': 'utter_hi', 'data': {'elements': None, 'quick_replies': None, 'buttons': None, 'attachment': None, 'image': None, 'custom': None}, 'metadata': {}}, {'event': 'action', 'timestamp': 1564971940.4782531, 'name': 'action_listen', 'policy': 'policy_2_MemoizationPolicy', 'confidence': 1.0}], 'latest_input_channel': 'webchat', 'active_form': {}, 'latest_action_name': 'action_listen'}

Desktop (please complete the following information):

  • OS: Ubuntu server v 18 (python 3.6)
  • Browser: Google Chrome
  • Version: 75

Additional context
Botfront last version.

Overlapping Entities

Running botfront 0.16.0-rc.12

Trying to evaluate my model, via the NLU > Evaluation page, the following error is thrown.

botfront-rasa   | 2019-10-09 07:42:06 INFO     rasa.nlu.test  - Entity evaluation results:
botfront-rasa   | 2019-10-09 07:42:06 WARNING  rasa.nlu.test  - Overlapping entity {'start': 9, 'end': 19, 'value': '0490123456', 'entity': 'phone-number'} with {'start': 9, 'end': 19, 'value': '0490123456', 'entity': 'number'}
botfront-rasa   | 2019-10-09 07:42:06 DEBUG    rasa.server  - Traceback (most recent call last):
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/server.py", line 801, in evaluate_intents
botfront-rasa   |     evaluation = run_evaluation(data_path, nlu_models.get(language))
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/nlu/test.py", line 1063, in run_evaluation
botfront-rasa   |     entity_results, extractors, output_directory, successes, errors
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/nlu/test.py", line 636, in evaluate_entities
botfront-rasa   |     aligned_predictions = align_all_entity_predictions(entity_results, extractors)
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/nlu/test.py", line 856, in align_all_entity_predictions
botfront-rasa   |     aligned_predictions.append(align_entity_predictions(result, extractors))
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/nlu/test.py", line 833, in align_entity_predictions
botfront-rasa   |     true_token_labels.append(determine_token_labels(t, result.entity_targets, None))
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/nlu/test.py", line 794, in determine_token_labels
botfront-rasa   |     raise ValueError("The possible entities should not overlap")
botfront-rasa   | ValueError: The possible entities should not overlap
botfront-rasa   |

I believe this is an issue with the interpretation of output from the duckling server, because two duckling entities (such as phone-number, and number), can, and often will overlap in terms of the positioning:

Overlapping entity {'start': 9, 'end': 19, 'value': '0490123456', 'entity': 'phone-number'} with {'start': 9, 'end': 19, 'value': '0490123456', 'entity': 'number'}

Accentuated characters at the end of words can't be selected for entity annotation

Describe the bug

It is not possible to fully select a word that ends in an accentuated character to add an entity to it.

To Reproduce
Steps to reproduce the behavior:

  1. Create a NLU example with a word that ends with an accentuated character, e.g. "compte chèque verrouillé".
  2. Select the word "verrouillé" and click on it to add an entity
  3. The "é" character gets dropped from the selection

Expected behavior

  1. The selection by "dragging" the mouse over characters should be kept when clicking on the word to add an entity.
  2. Double-clicking on a word that ends in an accentuated character should select all of it.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: 76.0.3809.100

Error on docker-compose up botfront-starter

Describe the bug
When i do the docker-compose up for the botfront-starter project, It loops with an error and it is never available.

`core_1 | :0: UserWarning: You do not have a working installation of the service_identity module: 'No module named 'service_identity''.
Please install it from https://pypi.python.org/pypi/service_identity and make sure all of its dependencies are satisfied. Without the service_identity module, Twisted can perform only rudimentary TLS client hostname verification. Many valid certificate/hostname mappings may be rejected.

core_1 | 2019-05-14 12:50:10 INFO root - Rasa process starting

core_1 | 2019-05-14 12:50:10 INFO root - Fetching endpoints from server

core_1 | 2019-05-14 12:50:10 DEBUG utils - Requesting endpoints from server
http://host.docker.internal:8081/project/my-first-project/endpoints...

core_1 | 2019-05-14 12:50:10 WARNING utils - Tried to fetch endpoints from server, but server response status code is 401.

core_1 | 2019-05-14 12:50:10 INFO root - Fetching credentials from server

core_1 | 2019-05-14 12:50:10 DEBUG utils - Requesting credentials from server
http://host.docker.internal:8081/project/my-first-project/credentials...

core_1 | 2019-05-14 12:50:10 WARNING utils - Tried to fetch credentials from server, but server response status code is 401.

core_1 | Traceback (most recent call last):
core_1 | File "/usr/local/lib/python3.5/runpy.py", line 193, in _run_module_as_main
core_1 | "main", mod_spec)
core_1 | File "/usr/local/lib/python3.5/runpy.py", line 85, in _run_code
core_1 | exec(code, run_globals)
core_1 | File "/app/run_core.py", line 100, in
core_1 | project_id=_endpoints.nlu.kwargs.get('project'),
core_1 | AttributeError: 'NoneType' object has no attribute 'kwargs'
botfront-starter_core_1 exited with code 1`

There is the log of my error.

To Reproduce
Steps to reproduce the behavior:
git clone http://github.com/botfront/botfront-starter

cd botfront-starter

docker-compose up

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
https://imgur.com/tl7QYJe

Thanks for the help in advance

Handle connection error to NLU service

Right now, if NLU server returns error response, the top right 'train' button keeps spinning, and the 'minutes ago' counter keeps increasing. Input in 'User says...' box correctly warns about response.

Error: Slot was not found. Have you defined it?

I'm passing QucikStart guide.
Currently I'm trying to branch stories using slots.

  1. At stories->Slots tab I added a slot:
    name=bookclass
    initial value=not_set
    Categories: eco/business/not_set
    and saved it

  2. At stories->stories tab I defined a story (in additino to the rest at "CancelBooking" story group):

  • cancel_booking
  • slot{"bookclass":"eco"}
  • utter_booking_not_cancellable

But botfront shows me an error "Slot was not found. Have you defined it?" at "- slot{"bookclass":"eco"}" string.

But "Train everything" doesn't throw errors.

Maybe I'm doing something wrong?

Mongodb authent with botfront-ui

Hello,

When i launch botfront as a container, it launch entrypoint.sh

First, you can note that you must set a chmod +x /docker/entrypoint.sh to execute it on build.

Second, I want to connect botfront-ui with my mongodb database, which have authentication enabled.

I tried two things :

1 : Authent in url
ENV VAR
MONGO_URL = mongodb://admin:!(3+y6<H!GJAd{6W@mongo-db:27017/meteor

But it does nothing. When i set authent on uri, it stay at
"23/05/2019 09:29:29Connecting to MongoDB..."

2 : No authent specified
ENV VAR
MONGO_URL = mongodb://mongo-db:27017/meteor

Now, botfront-ui connnect well to the database, but have no permissions...

This is the code in entrypoint.sh which do the check for connect to mongodb, right ?
node <<- 'EOJS' require('p-wait-for')(function() { return new Promise(function (resolve, reject) { require('mongodb').MongoClient.connect(process.env.MONGO_URL, function(err, client) { const successfullyConnected = err == null; if (successfullyConnected) { client.close(); process.exit(0); } else { if(client) { client.close(); } resolve(false); return; } resolve(successfullyConnected); }); }); }, 10000); EOJS

Unknown data format for file '/tmp/tmpnacf0jvl/nlu/en.md'.

Running on Mac OSX model wont train, the following is the traceback in the logs:

botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/server.py", line 691, in train
botfront-rasa   |     persist_nlu_training_data=True,
botfront-rasa   |   File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in __next__
botfront-rasa   |     return self.gen.send(None)
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/train.py", line 94, in train_async
botfront-rasa   |     kwargs,
botfront-rasa   |   File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in __next__
botfront-rasa   |     return self.gen.send(None)
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/train.py", line 136, in _train_async_internal
botfront-rasa   |     new_fingerprint = await model.model_fingerprint(file_importer)
botfront-rasa   |   File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in __next__
botfront-rasa   |     return self.gen.send(None)
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/model.py", line 221, in model_fingerprint
botfront-rasa   |     nlu_data = await file_importer.get_nlu_data()
botfront-rasa   |   File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in __next__
botfront-rasa   |     return self.gen.send(None)
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa_addons/importers/botfront.py", line 82, in get_nlu_data
botfront-rasa   |     for lang in languages}
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa_addons/importers/botfront.py", line 82, in <dictcomp>
botfront-rasa   |     for lang in languages}
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/importers/utils.py", line 9, in training_data_from_paths
botfront-rasa   |     training_datas = [loading.load_data(nlu_file, language) for nlu_file in paths]
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/importers/utils.py", line 9, in <listcomp>
botfront-rasa   |     training_datas = [loading.load_data(nlu_file, language) for nlu_file in paths]
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/nlu/training_data/loading.py", line 67, in load_data
botfront-rasa   |     data_sets = [_load(f, language) for f in files]
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/nlu/training_data/loading.py", line 67, in <listcomp>
botfront-rasa   |     data_sets = [_load(f, language) for f in files]
botfront-rasa   |   File "/usr/local/lib/python3.6/site-packages/rasa/nlu/training_data/loading.py", line 133, in _load
botfront-rasa   |     raise ValueError("Unknown data format for file '{}'.".format(filename))
botfront-rasa   | ValueError: Unknown data format for file '/tmp/tmpnacf0jvl/nlu/en.md'.
botfront-rasa   |

Is there any other way around without docker image using the botfront?

Just to do some customization for myself in UI and I wanted to debug issues which I facing.
I want to create multiple projects. some times UI is showing. train is undefined.

I am using ubuntu. I am unable to find the container or source file of botfront.
Kindly let me know how can edit the source code. I want to use with docker images.

Two minor UI tweaks

  • Add link to Project Settings from Global Settings
  • Add default behavior: open NLU model by clicking on its name/card

More details in developer guide

Can we have more details to the developer guide

Developing with Docker Compose

Until we provide a better way...

  1. Set the MODELS_LOCAL_PATH environment variable in your shell with for example export MODELS_LOCAL_PATH=~/botfront-projects/s
  2. Start Botfront locally with meteor npm start. Botfront will be available at http://localhost:3000
  3. In settings > endpoints: change domain names to localhost. Don't change ports
  4. In settings > more settings > docker-compose change API host to http://host.docker.internal:8080

From step number 5 it doesn't make sense to me.

How I can get botfront command to run , I have also tried npm install -g botfront but failed to link locally running project

image

  1. Create a Botfront projet with botfront init. Don't start it
  2. In .botfront/botfront.yml, set the bf_project_id with the project ID of the locally running Botfront
  3. In .botfront/botfront.yml, set the mongo_url to mongodb://host.docker.internal:3001/meteor
  4. Start the Botfront project with botfront up

Please add more details here .

botfront-rasa exited with code 132

In ubuntu server 18.04
botfront-rasa exited with code 132
Docker version 19.03.3, build a872fc2f86
Node version v12.10.0

1a048c496344 botfront/rasa-for-botfront:v1.3.3-bf.6 "rasa run --enable-a…" 6 minutes ago Restarting (132) 29 seconds ago botfront-rasa

:~/code/botfront/bot1$ botfront

┌───────────────────────────┐
│ │
│ Welcome to Botfront! │
│ version: 0.16.0-rc.13 │
│ │
└───────────────────────────┘

? What do you want to do? Show logs
TypeError: Cannot destructure property ci of 'undefined' or 'null'.
at Object.dockerComposeFollow [as cmd] (/usr/lib/node_modules/botfront/src/commands/services.js:184:37)
at general (/usr/lib/node_modules/botfront/src/cli.js:175:47)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
david@serverlab56:~/code/botfront/bot1$

Wrong message when project created from an empty directory

Describe the bug
When creating a new project in an empty directory, the ending message is Run cd null && botfront up
This is because the message is tailored on the case when a folder is created for the project. When the project is created in an empty directory the message should simply be Run cd null && botfront up...

Upgrade to the new combined Rasa package + Rasa X

Rasa recently announced version 1.0 of the combined Rasa package, so Rasa core & NLU will be available in the same package and further development will be done on this package.

You can look at the full announcement here

As a feature request, I suggest updating the project to use the new Rasa package. what do you think?

Installation not working on Windows

Describe the bug
I'm using the project-template in a separate folder, because I do not create a template when I write botfront.

botfront up

Checking Docker images
Downloading Docker images...
Docker images ready.
Shutting down running project first...
Starting Botfront...
Creating network "botfront_botfront-network" with the default driver
Creating volume "botfront_botfront-db" with default driver
Creating botfront-actions ... done
Creating botfront-duckling ... done
Creating botfront-mongo ... done
Creating botfront-app ... done
Creating botfront-api ... done
Creating botfront-rasa ... done
ERROR: Something went wrong. Check the logs above for more information ☝️, or try inspecting the logs with botfront logs.

To Reproduce
Steps to reproduce the behavior:

  1. Botfront up

Expected behavior
Should be able to enter the botfront interface

Desktop (please complete the following information):

  • OS: Windows 10 pro
  • Firefox
  • Docker

Additional context
The botfront logs:

botfront-rasa | 2019-07-14 16:44:01 INFO botfront.utils - Fetching endpoints from server
botfront-rasa | 2019-07-14 16:44:01 DEBUG botfront.utils - Requesting endpoints from server http://botfront-api:8080/project/bf/endpoints...
botfront-rasa | 2019-07-14 16:44:01 WARNING botfront.utils - Tried to fetch rules from server, but couldn't reach server. We'll retry later... Error: Cannot connect to host botfront-api:8080 ssl:None [Name or service not known].
botfront-rasa | http://botfront-api:8080/project/bf/endpoints
botfront-rasa | Traceback (most recent call last):
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/aiohttp/connector.py", line 955, in _create_direct_connection
botfront-rasa | traces=traces), loop=self._loop)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/aiohttp/connector.py", line 825, in _resolve_host
botfront-rasa | self._resolver.resolve(host, port, family=self._family)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/aiohttp/resolver.py", line 30, in resolve
botfront-rasa | host, port, type=socket.SOCK_STREAM, family=family)
botfront-rasa | File "uvloop/loop.pyx", line 1464, in getaddrinfo
botfront-rasa | socket.gaierror: [Errno -2] Name or service not known
botfront-rasa |
botfront-rasa | The above exception was the direct cause of the following exception:
botfront-rasa |
botfront-rasa | Traceback (most recent call last):
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/botfront/utils.py", line 34, in load_from_remote
botfront-rasa | params=params,
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/aiohttp/client.py", line 1005, in aenter
botfront-rasa | self._resp = await self._coro
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/aiohttp/client.py", line 476, in _request
botfront-rasa | timeout=real_timeout
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/aiohttp/connector.py", line 522, in connect
botfront-rasa | proto = await self._create_connection(req, traces, timeout)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/aiohttp/connector.py", line 854, in _create_connection
botfront-rasa | req, traces, timeout)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/aiohttp/connector.py", line 959, in _create_direct_connection
botfront-rasa | raise ClientConnectorError(req.connection_key, exc) from exc
botfront-rasa | aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host botfront-api:8080 ssl:None [Name or service not known]
botfront-rasa |
botfront-rasa | During handling of the above exception, another exception occurred:
botfront-rasa |
botfront-rasa | Traceback (most recent call last):
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/botfront/utils.py", line 75, in set_endpoints_credentials_args_from_remote
botfront-rasa | load_from_remote(EndpointConfig(url=url), "endpoints")
botfront-rasa | File "uvloop/loop.pyx", line 1451, in uvloop.loop.Loop.run_until_complete
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/botfront/utils.py", line 61, in load_from_remote
botfront-rasa | raise requests.exceptions.InvalidURL(server.url)
botfront-rasa | requests.exceptions.InvalidURL: http://botfront-api:8080/project/bf/endpoints
botfront-rasa |
botfront-rasa | During handling of the above exception, another exception occurred:
botfront-rasa |
botfront-rasa | Traceback (most recent call last):
botfront-rasa | File "/usr/local/bin/rasa", line 10, in
botfront-rasa | sys.exit(main())
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/rasa/main.py", line 76, in main
botfront-rasa | cmdline_arguments.func(cmdline_arguments)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/rasa/cli/run.py", line 79, in run
botfront-rasa | set_endpoints_credentials_args_from_remote(args)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/botfront/utils.py", line 79, in set_endpoints_credentials_args_from_remote
botfront-rasa | raise ValueError('No endpoints found for project {}.'.format(project_id))
botfront-rasa | ValueError: No endpoints found for project bf.
botfront-rasa exited with code 1
botfront-mongo | 2019-07-14T16:44:07.941+0000 E STORAGE [initandlisten] WiredTiger error (17) [1563122647:941053][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists Raw: [1563122647:941053][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists
botfront-mongo | 2019-07-14T16:44:07.945+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.108
botfront-mongo | 2019-07-14T16:44:07.947+0000 E STORAGE [initandlisten] WiredTiger error (1) [1563122647:947793][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted Raw: [1563122647:947793][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted
botfront-mongo | 2019-07-14T16:44:08.005+0000 E STORAGE [initandlisten] WiredTiger error (17) [1563122648:5250][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists Raw: [1563122648:5250][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists
botfront-mongo | 2019-07-14T16:44:08.009+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.109
botfront-mongo | 2019-07-14T16:44:08.013+0000 E STORAGE [initandlisten] WiredTiger error (1) [1563122648:13071][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted Raw: [1563122648:13071][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted
botfront-mongo | 2019-07-14T16:44:08.064+0000 E STORAGE [initandlisten] WiredTiger error (17) [1563122648:64662][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists Raw: [1563122648:64662][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: File exists
botfront-mongo | 2019-07-14T16:44:08.068+0000 I STORAGE [initandlisten] WiredTiger message unexpected file WiredTiger.wt found, renamed to WiredTiger.wt.110
botfront-mongo | 2019-07-14T16:44:08.072+0000 E STORAGE [initandlisten] WiredTiger error (1) [1563122648:71991][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted Raw: [1563122648:71991][1:0x7f097b811a80], connection: __posix_open_file, 715: /data/db/WiredTiger.wt: handle-open: open: Operation not permitted
botfront-mongo | 2019-07-14T16:44:08.074+0000 W STORAGE [initandlisten] Failed to start up WiredTiger under any compatibility version.
botfront-mongo | 2019-07-14T16:44:08.074+0000 F STORAGE [initandlisten] Reason: 1: Operation not permitted
botfront-mongo | 2019-07-14T16:44:08.074+0000 F - [initandlisten] Fatal Assertion 28595 at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 704
botfront-mongo | 2019-07-14T16:44:08.074+0000 F - [initandlisten]
botfront-mongo |
botfront-mongo | ***aborting after fassert() failure
botfront-mongo |
botfront-mongo |
botfront-mongo exited with code 14
botfront-api |
botfront-api | > [email protected] start /app
botfront-api | > node app.js
botfront-api |
botfront-api | the server/replset/mongos/db options are deprecated, all their options are supported at the top level of the options object [poolSize,ssl,sslValidate,sslCA,sslCert,sslKey,sslPass,sslCRL,autoReconnect,noDelay,keepAlive,keepAliveInitialDelay,connectTimeoutMS,family,socketTimeoutMS,reconnectTries,reconnectInterval,ha,haInterval,replicaSet,secondaryAcceptableLatencyMS,acceptableLatencyMS,connectWithNoPrimary,authSource,w,wtimeout,j,forceServerObjectId,serializeFunctions,ignoreUndefined,raw,bufferMaxEntries,readPreference,pkFactory,promiseLibrary,readConcern,maxStalenessSeconds,loggerLevel,logger,promoteValues,promoteBuffers,promoteLongs,domainsEnabled,checkServerIdentity,validateOptions,appname,auth,user,password,authMechanism,compression,fsync,readPreferenceTags,numberOfRetries,auto_reconnect,minSize,monitorCommands,retryWrites,useNewUrlParser]
botfront-api | (node:16) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
botfront-api | Server running at http://127.0.0.1:8080
botfront-api | /app/app.js:28
botfront-api | throw new Error(unable to connect to database: ${config.mongo.host});
botfront-api | ^
botfront-api |
botfront-api | Error: unable to connect to database: mongodb://mongo:27017/bf
botfront-api | at NativeConnection.mongoose.connection.on (/app/app.js:28:19)
botfront-api | at emitOne (events.js:116:13)
botfront-api | at NativeConnection.emit (events.js:211:7)
botfront-api | at process.nextTick (/app/node_modules/mongoose/lib/connection.js:581:37)
botfront-api | at _combinedTickCallback (internal/process/next_tick.js:132:7)
botfront-api | at process._tickCallback (internal/process/next_tick.js:181:9)
botfront-api | npm ERR! code ELIFECYCLE
botfront-api | npm ERR! errno 1
botfront-api | npm ERR! [email protected] start: node app.js
botfront-api | npm ERR! Exit status 1
botfront-api | npm ERR!
botfront-api | npm ERR! Failed at the [email protected] start script.
botfront-api | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
botfront-api |
botfront-api | npm ERR! A complete log of this run can be found in:
botfront-api | npm ERR! /root/.npm/_logs/2019-07-14T16_44_37_355Z-debug.log
botfront-api exited with code 1

docker: 'container' is not a docker command.

When I run

npm install -g botfront

I get the following error

> [email protected] postinstall /Users/jochenheizmann/.npm-global/lib/node_modules/botfront
> botfront

error: 'Error: Command failed: docker   container ps --format={{.Names}}
docker: 'container' is not a docker command.
See 'docker --help'.
' stdout = '' stderr = 'docker: 'container' is not a docker command.
See 'docker --help'.
'
+ [email protected]
  • OS: MacOS Mojave 10.14.5 (18F132), npm 6.10.0, node v12.6.0, Docker version 1.12.6, build 23cf638

Chatbot textfield not working in Firefox

CSS issue, the textfield not positioned correctly in a Firexfox browser, screenshot attached.

Perhaps absolute positioning, 45px from the bottom, with explicit 100% width. This fixes for firefox, haven't tested on other browsers. Chrome works fine out of the box as you probably know.

Problem Highlight

Screen Shot 2019-10-11 at 1 10 59 pm_edit

Proposed Changes:

Screen Shot 2019-10-11 at 1 14 54 pm_edit

Fixed:

Screen Shot 2019-10-11 at 1 18 52 pm

Rasa core does not work fine for me

Hi all,

As i have remarked, entities have not been taken into consideration in the domain file. Accordingly, there have been ignored in the featurization step. This may affect the prediction of the next action? Have you any idea?

Thank you in advance

Evaluation throws exception (cannot destructure property 'report')

In the currently available [email protected] the Evaluation feature seems to broken. When trying to run any kind of evaluation (either file upload or through the activity tab), the following exception is thrown in the Botfront frontend:

TypeError: Cannot destructure property 'report' of '{}' as it is null.
    at x.getPrimaryPanes (a598bcc16375ac00b89878e27278ded85aaaed27.js?meteor_js_resource=true:149)
    at x.render (a598bcc16375ac00b89878e27278ded85aaaed27.js?meteor_js_resource=true:149)

The referenced function is part of the Evaluation.jsx:

The Websocket response for the evaluation contains the following payload:

0: "{"msg":"added","collection":"nlu_evaluations","id":"NJobFc8Mi3WwH8FeX","fields":{"results":{"intent_evaluation":null,"entity_evaluation":{},"response_selection_evaluation":null},"modelId":"aGvW4AwHBTcLnK2Es","timestamp":{"$date":1570520856939}}}"

To Reproduce
Steps to reproduce the behavior:

  1. Spin up a Botfront project
  2. Add some training data and train it
  3. Create some activity content
  4. Choose several validated examples to run for evaluation
  5. See a "whitescreen" error

Expected behavior
The evaluation should return the expected report.

Additional context

botfront/rasa-for-botfront:v1.3.3-bf.6
botfront/botfront:v0.16.0-rc.10
botfront/botfront-api:v0.16.1

Allowed project names

Welcome screen only supports alphanumerical chars in project name; modifying name in settings page allows all.

Multiple utterance variants

Hi Guys,

Maybe I am not doing something right, but in Rasa, if in the domain file, a single utterance is defined and repeated like as follows:

domain.yml

  utter_something:
  - text: Something ABC
  - text: Something Else
  - text: And again
  - text: Yes, again

Then usage of utter_something in a story somewhere, will yield only ONE of the possibilities picked at RANDOM.

However, the equivalent in Botfront seems to be responding with ALL of them, which is nonsensical and would prevent/inhibit a rich tapestry of conversation permutations.

Various screenshots attached.

I tried putting seperate response definitions in for each possible (intended random selection) response, but only one of each 'Response name' is permitted by the UI.

Screen Shot 2019-09-30 at 11 13 46 am

Screen Shot 2019-09-30 at 11 13 31 am

Screen Shot 2019-09-30 at 11 13 09 am

Screen Shot 2019-09-30 at 11 13 01 am

Build from Source

Is your feature request related to a problem? Please describe.
I would like to build code from the source

npm install -g botfront

How I can rebuild code again locally. I have used docker-compose up

but stopped at Connecting to MongoDB...
image

Exception thrown in Stories view

With the current version of Botfront, I am experiencing a reproducible exception when trying to view the stories view. The full exception is:

TypeError: Cannot read property 'forEach' of undefined
    at d (a598bcc16375ac00b89878e27278ded85aaaed27.js?meteor_js_resource=true:149)
    at k (a598bcc16375ac00b89878e27278ded85aaaed27.js?meteor_js_resource=true:149)
    at eval (/imports/ui/components/stories/StoryEditorContainer.jsx:1)
    at Ta (a598bcc16375ac00b89878e27278ded85aaaed27.js?meteor_js_resource=true:9)
    [...]

The issue happened in my case, when upgrading an existing Botfront instance from 0.15.4 to anything "above it" (means starting from 0.15.5). There is no exception thrown on the server-side. I think the issue is caused by the mentioned StoryEditorContainer component: Maybe https://github.com/botfront/botfront/blob/master/botfront/imports/ui/components/stories/StoryEditorContainer.jsx#L135

I experimented with multiple configurations, e.g.:

BOTFRONT_VERSION=v0.16.0-rc.10
BOTFRONT_API_VERSION=v0.16.1
RASA_FOR_BOTFRONT_VERSION=v1.3.7-bf.1

Provide the ability to write your own connector

Many of us build bots for various platforms, and currently Botfront support only the webchat channel and working on a messenger channel.

I propose to provide developers the option to write their own connector to Botfront, and potentially opensource it. (as possible through Rasa)

Wrong server address on production leads to failure on some features

I've tried to deploy a bot to a server, but some of the functionality does not work ("try out your bot", "advanced settings")

On the console I can see:
Failed to load resource: net::ERR_CONNECTION_REFUSED
and the address is http://localhost:8888/__meteor__/dynamic-import/fetch
which probably should have been the ip of the server instead of localhost

Switching the language in the chat window

Describe the bug
When you switch the language from English to French, the chat refuses to respond to messages. There are errors on the server after the language is switched

To Reproduce
Steps to reproduce the behavior:

  1. Open chat
  2. Select French
  3. Write any word
  4. Check server log (botfront logs)

Expected behavior
After switching the language, the chat should respond to messages. There should be no errors on the server

Desktop (please complete the following information):

  • OS: Ubuntu server v 19 (python 3.7)
  • Browser: Google Chrome
  • Version: 75

Additional context
An error was detected in the pre-installed chitchat model. Server Logs:

botfront-rasa | 2019-08-06 22:43:05 ERROR asyncio - Task exception was never retrieved
botfront-rasa | future: <Task finished coro = <AsyncServer._handle_event_internal () done, defined at /usr/local/lib/python3.6/site-packages/socketio/asyncio_server.py:426> exception = AttributeError ("'NoneType' object has no attribute 'parse' ",) created at /usr/local/lib/python3.6/site-packages/engineio/asyncio_server.py:309>
botfront-rasa | source_traceback: Object created at (most recent call last):
botfront-rasa | File "/ usr / local / bin / rasa", line 10, in
botfront-rasa | sys.exit (main ())
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/rasa/main.py", line 76, in main
botfront-rasa | cmdline_arguments.func (cmdline_arguments)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/rasa/cli/run.py", line 92, in run
botfront-rasa | rasa.run (** vars (args))
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/rasa/run.py", line 54, in run
botfront-rasa | ** kwargs
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/rasa/core/run.py", line 179, in serve_application
botfront-rasa | app.run (host = "0.0.0.0", port = port)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 1096, in run
botfront-rasa | serve (** server_settings)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/sanic/server.py", line 770, in serve
botfront-rasa | loop.run_forever ()
botfront-rasa | File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 126, in send
botfront-rasa | return self.gen.send (value)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/spf/framework.py", line 476, in _handle_request
botfront-rasa | stream_callback)
botfront-rasa | File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
botfront-rasa | return self.gen.send (None)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/sanic/app.py", line 917, in handle_request
botfront-rasa | response = await response
botfront-rasa | File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
botfront-rasa | return self.gen.send (None)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/engineio/asyncio_server.py", line 238, in handle_request
botfront-rasa | packets = await socket.handle_get_request (environ)
botfront-rasa | File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
botfront-rasa | return self.gen.send (None)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/engineio/asyncio_socket.py", line 89, in handle_get_request
botfront-rasa | return await getattr (self, 'upgrade' + transport) (environ)
botfront-rasa | File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
botfront-rasa | return self.gen.send (None)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/engineio/asyncio_socket.py", line 128, in _upgrade_websocket
botfront-rasa | return await ws (environ)
botfront-rasa | File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
botfront-rasa | return self.gen.send (None)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/engineio/async_drivers/sanic.py", line 122, in call
botfront-rasa | await self.handler (self)
botfront-rasa | File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
botfront-rasa | return self.gen.send (None)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/engineio/asyncio_socket.py", line 222, in _websocket_handler
botfront-rasa | await self.receive (pkt)
botfront-rasa | File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
botfront-rasa | return self.gen.send (None)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/engineio/asyncio_socket.py", line 42, in receive
botfront-rasa | run_async = self.server.async_handlers)
botfront-rasa | File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
botfront-rasa | return self.gen.send (None)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/engineio/asyncio_server.py", line 407, in _trigger_event
botfront-rasa | ret = await self.handlers [event] (* args)
botfront-rasa | File "/usr/local/lib/python3.6/asyncio/coroutines.py", line 110, in next
botfront-rasa | return self.gen.send (None)
botfront-rasa | File "/usr/local/lib/python3.6/site-packages/socketio/asyncio_server.py", line 494, in _handle_eio_message
botfront-rasa | await self._handle_event (sid, pkt.namespace, pkt.id, pkt.data)
botfront-rasa | File "/ usr / local / lib / p

Facebook Deployment Issues

Issue trying to deploy on Facebook.

Initially I run on my local machine using ngrok secure tunnel to my machine. Note, I am using methods which have worked for me in the past with rasa deployments.

In my prior rasa deployments, the following was added to credentials.yml

#facebook:
facebook:
  verify: "<verify>"
  secret: "<secret>"
  page-access-token: "<token>"

And in FaceBook, the following was used as the callback:

<URL>/webhooks/facebook/webhook/

where <URL> is the deployment URL, so, in the case where ngrok was being used, it might be something like this:

https://XXXXXXXX.ngrok.io -> http://localhost:5005

Now if I do all the above with BotFront (including specifying the credentials in the particular language NLU settings), the messages are detected by the ngrok listener, and provide status code 200 for the http request, but no payload is actually delivered.

So, given that Botfront has been dockerised using various docker containers, are the callback addresses correct (ie <URL>/webhooks/facebook/webhook/), and, is the 5005 the right port to listen on?

Action server does not register custom actions

I just added a custom action as explained in the tutorial, but rasa_core_sdk (action server) does not register my new action (file saved, rebuild, restart container..)

./actions
-/custom_actions
--/init.py
`class ActionFAQ(Action):

def name(self):
    return 'action_faq'`

-> OK
--/my_actions.py
`class GuestsAction(Action):

def name(self):
    return 'action_guests'`

-> Not registered (see screenshot) https://imgur.com/0I6xspD

All imports are done.

Do you have any idea what's the problem ?

Thank you.

Entities and bot api?

** Is your feature request related to a problem? Please describe. **

  1. I read about "duckling" and I can’t understand. An example of the phrase “How much will be 2 + 2” in the interface, I saw that you can select a phrase and define entities for them. How can I answer "4" with a bot? Where is this logic described? How to handle entities?

  2. As I understand it, we can have many projects created through the command "botfront init" and they will be processed by one server. How to communicate with the server via API in order to implement the same chat as in Botfront UI along with responses? Can you provide a small example on which port? and is there any documentation?

Toggle button and Empty Page when Trying Chatbot

Describe the bug
Toggle button for This bot response should be triggered by NLU criteria and Empty redirect page when clicking on Try out your chatbot

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Responses'
  2. Click on 'Add new bot response'
  3. See error

Expected behavior
Toggle button appears and Ability to test Chatbot

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu 6.04.6 LTS (Xenial Xerus)
  • Browser Chrome
  • Version 75.0.3770.100

[Error: ENOENT: no such file or directory, access 'C:\C:\Users\SnP\AppData\Roaming\npm\node_modules\botfront\project-template'] {

Hello! I can't get rid of this error,I tried everything, what is the problem?

? What do you want to do? Create a new project
? The project will be created in a subdirectory. How do you want to name it? mid_emerald
[Error: ENOENT: no such file or directory, access 'C:\C:\Users\SnP\AppData\Roaming\npm\node_modules\botfront\project-template'] {
errno: -4058,
code: 'ENOENT',
syscall: 'access',
path: 'C:\C:\Users\SnP\AppData\Roaming\npm\node_modules\botfront\project-template'
}
Error: ENOENT: no such file or directory, open 'C:\WINDOWS\system32\mid_emerald.botfront\docker-compose.yml'
at Object.openSync (fs.js:447:3)
at Proxy.readFileSync (fs.js:349:35)
at getComposeFile (C:\Users\SnP\AppData\Roaming\npm\node_modules\botfront\src\utils.js:154:29)
at getServices (C:\Users\SnP\AppData\Roaming\npm\node_modules\botfront\src\utils.js:158:22)
at getMissingImgs (C:\Users\SnP\AppData\Roaming\npm\node_modules\botfront\src\utils.js:168:12)
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async createProject (C:\Users\SnP\AppData\Roaming\npm\node_modules\botfront\src\commands\init.js:151:32)
at async Object.initCommand [as cmd] (C:\Users\SnP\AppData\Roaming\npm\node_modules\botfront\src\commands\init.js:52:20) {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'C:\WINDOWS\system32\mid_emerald\.botfront\docker-compose.yml'

dispatcher.utter_message not working

Describe the bug
dispatcher.utter_message doesn't print out the message

To Reproduce
Steps to reproduce the behavior:

  1. Open the actions folder and add a new file called my_actions.py
import logging
from functools import reduce
from rasa_core_sdk import Action
from rasa_core_sdk.events import SlotSet, ReminderScheduled

logging.basicConfig(level="DEBUG")
logger = logging.getLogger()

class GuestsAction(Action):

    def name(self):
        return 'action_guests'

    def run(self, dispatcher, tracker, domain):
    
            dispatcher.utter_message("How many are you?")
            return []

Chat window crashed, cannot recover.

The chat window 'blue-screened of death' on me today, when presenting concept to a potential client. Not sure what has caused it, but every browser does the same, (chrome, safari, firefox). Opening the chat window, everything goes white.

It was caused after executing an action, from the action server, if I had to put my finger on it, I think I uttered a float/number via dispatcher.utter_message(...) instead of a string.

Deleting story history (in the conversations history tab) doesn't fix the issue either.

There is a javascript error that I can pick up in the browser console, which I have posted here as a screenshot.

Pretty much don't know how to reset things, all my browsers now do not work in terms of having a conversation with BotFront instance.

Screen Shot 2019-10-10 at 3 19 09 pm

Duckling Configuration

Hey

I would like to add duckling to my project. I followed the documentation:
https://docs.botfront.io/rasa/nlu/training/#compositing-entities

pipeline:
  - name: rasa_addons.nlu.components.language_setter.LanguageSetter
  - name: WhitespaceTokenizer
  - name: CountVectorsFeaturizer
  - name: EmbeddingIntentClassifier
  - BILOU_flag: true
    name: CRFEntityExtractor
    features:
      - [low, title, upper]
      - [low, bias, prefix5, prefix2, suffix5, suffix3, suffix2, upper, title, digit, pattern]
      - [low, title, upper]
  - name: rasa_addons.nlu.components.gazette.Gazette
  - name: EntitySynonymMapper
  - name: components.botfront.duckling_http_extractor.DucklingHTTPExtractor
    url: http://duckling:8000
    dimensions: 
    - "number"
    - "time"
    - "duration"

Error while training : Training failed: undefined
LOGS

Have I forgotten any parameters or other?

I can't choice :
3-add-a-bot-response
compositing-entities

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.