Rasa Server Logs:
2021-03-23 13:35:15 DEBUG rasa.cli.utils - Parameter ‘endpoints’ not set. Using default location ‘endpoints.yml’ instead.
2021-03-23 13:35:15 DEBUG rasa.cli.utils - Parameter ‘credentials’ not set. Using default location ‘credentials.yml’ instead.
2021-03-23 13:35:15 DEBUG rasa.core.utils - Available web server routes:
/conversations/<conversation_id:path>/messages POST add_message
/conversations/<conversation_id:path>/tracker/events POST append_events
/webhooks/rasa GET custom_webhook_RasaChatInput.health
/webhooks/rasa/webhook POST custom_webhook_RasaChatInput.receive
/webhooks/rest GET custom_webhook_RestInput.health
/webhooks/rest/webhook POST custom_webhook_RestInput.receive
/model/test/intents POST evaluate_intents
/model/test/stories POST evaluate_stories
/conversations/<conversation_id:path>/execute POST execute_action
/domain GET get_domain
/ GET hello
/model PUT load_model
/model/parse POST parse
/conversations/<conversation_id:path>/predict POST predict
/conversations/<conversation_id:path>/tracker/events PUT replace_events
/conversations/<conversation_id:path>/story GET retrieve_story
/conversations/<conversation_id:path>/tracker GET retrieve_tracker
/status GET status
/model/predict POST tracker_predict
/model/train POST train
/conversations/<conversation_id:path>/trigger_intent POST trigger_intent
/model DELETE unload_model
/version GET version
2021-03-23 13:35:15 INFO root - Starting Rasa server on http://localhost:5005
2021-03-23 13:35:15 DEBUG rasa.core.utils - Using the default number of Sanic workers (1).
2021-03-23 13:35:15 INFO rasa.model - Loading model models\20210323-090846.tar.gz…
2021-03-23 13:35:16 DEBUG rasa.model - Extracted model to ‘C:\Users\banug\AppData\Local\Temp\tmpk_ifpm8r’.
2021-03-23 13:35:16 DEBUG urllib3.connectionpool - Starting new HTTPS connection (1): api.segment.io:443
2021-03-23 13:35:17 DEBUG urllib3.connectionpool - https://api.segment.io:443 “POST /v1/track HTTP/1.1” 200 21
2021-03-23 13:35:17 INFO root - Enabling coroutine debugging. Loop id 1440187070976.
2021-03-23 13:35:17 INFO rasa.model - Loading model models\20210323-090846.tar.gz…
2021-03-23 13:35:17 DEBUG rasa.model - Extracted model to ‘C:\Users\banug\AppData\Local\Temp\tmp7dllze25’.
2021-03-23 13:35:17 DEBUG rasa.utils.tensorflow.models - Loading the model from C:\Users\banug\AppData\Local\Temp\tmp7dllze25\nlu\component_5_DIETClassifier.tf_model with finetune_mode=False…
2021-03-23 13:35:18 DEBUG rasa.nlu.classifiers.diet_classifier - Following metrics will be logged during training:
2021-03-23 13:35:18 DEBUG rasa.nlu.classifiers.diet_classifier - t_loss (total loss)
2021-03-23 13:35:18 DEBUG rasa.nlu.classifiers.diet_classifier - i_acc (intent acc)
2021-03-23 13:35:18 DEBUG rasa.nlu.classifiers.diet_classifier - i_loss (intent loss)
2021-03-23 13:35:19 DEBUG rasa.utils.tensorflow.models - Finished loading the model.
2021-03-23 13:35:19 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph…
2021-03-23 13:35:24 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph.
c:\users\banug\anaconda3\envs\rasaconda\lib\site-packages\rasa\utils\train_utils.py:451: UserWarning: constrain_similarities is set to False
. It is recommended to set it to True
when using cross-entropy loss. It will be set to True
by default, Rasa Open Source 3.0.0 onwards.
rasa.shared.utils.io.raise_warning(
c:\users\banug\anaconda3\envs\rasaconda\lib\site-packages\rasa\utils\train_utils.py:425: UserWarning: model_confidence is set to softmax
. It is recommended to try using model_confidence=linear_norm
to make it easier to tune fallback thresholds.
rasa.shared.utils.io.raise_warning(
2021-03-23 13:35:24 DEBUG rasa.core.tracker_store - Connected to InMemoryTrackerStore.
2021-03-23 13:35:24 DEBUG rasa.core.lock_store - Connected to lock store ‘InMemoryLockStore’.
2021-03-23 13:35:24 DEBUG rasa.model - Extracted model to ‘C:\Users\banug\AppData\Local\Temp\tmpnygvputq’.
2021-03-23 13:35:24 DEBUG rasa.utils.tensorflow.models - Loading the model from C:\Users\banug\AppData\Local\Temp\tmpnygvputq\core\policy_1_TEDPolicy\ted_policy.tf_model with finetune_mode=False…
2021-03-23 13:35:25 DEBUG rasa.utils.tensorflow.models - Finished loading the model.
2021-03-23 13:35:25 DEBUG rasa.utils.tensorflow.models - Building tensorflow prediction graph…
2021-03-23 13:35:30 DEBUG rasa.utils.tensorflow.models - Finished building tensorflow prediction graph.
c:\users\banug\anaconda3\envs\rasaconda\lib\site-packages\rasa\core\policies\mapping_policy.py:49: FutureWarning: ‘MappingPolicy’ is deprecated and will be removed in the future. It is recommended to use the ‘RulePolicy’ instead. (will be removed in 3.0.0)
rasa.shared.utils.io.raise_deprecation_warning(
2021-03-23 13:35:30 DEBUG rasa.core.nlg.generator - Instantiated NLG to ‘TemplatedNaturalLanguageGenerator’.
2021-03-23 13:35:30 INFO root - Rasa server is up and running.
2021-03-23 13:35:39 DEBUG rasa.core.lock_store - Issuing ticket for conversation ‘4ba2f485-56ae-443d-9eb0-41144382dfd6’.
2021-03-23 13:35:39 DEBUG rasa.core.lock_store - Acquiring lock for conversation ‘4ba2f485-56ae-443d-9eb0-41144382dfd6’.
2021-03-23 13:35:39 DEBUG rasa.core.lock_store - Acquired lock for conversation ‘4ba2f485-56ae-443d-9eb0-41144382dfd6’.
2021-03-23 13:35:39 DEBUG rasa.core.tracker_store - Could not find tracker for conversation ID ‘4ba2f485-56ae-443d-9eb0-41144382dfd6’.
2021-03-23 13:35:39 DEBUG rasa.core.processor - Starting a new session for conversation ID ‘4ba2f485-56ae-443d-9eb0-41144382dfd6’.
2021-03-23 13:35:39 DEBUG rasa.core.processor - Policy prediction ended with events ‘’.
2021-03-23 13:35:39 DEBUG rasa.core.processor - Action ‘action_session_start’ ended with events ‘[<rasa.shared.core.events.SessionStarted object at 0x0000014F55636220>, ActionExecuted(action: action_listen, policy: None, confidence: None)]’.
2021-03-23 13:35:39 DEBUG rasa.core.processor - Current slot values:
session_started_metadata: None
2021-03-23 13:35:40 DEBUG rasa.core.processor - Received user message ‘welcome’ with intent ‘{‘id’: 4799303944577008966, ‘name’: ‘welcome_msg’, ‘confidence’: 0.9999802112579346}’ and entities ‘’
c:\users\banug\anaconda3\envs\rasaconda\lib\site-packages\rasa\shared\utils\io.py:93: UserWarning: Interpreter parsed an intent ‘welcome_msg’ which is not defined in the domain. Please make sure all intents are listed in the domain.
More info at Domain
2021-03-23 13:35:40 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 4 events.
2021-03-23 13:35:40 DEBUG rasa.core.policies.memoization - Current tracker state:
[state 1] user intent: welcome_msg | previous action name: action_listen
2021-03-23 13:35:40 DEBUG rasa.core.policies.memoization - There is a memorised next action ‘action_welcome_message’
2021-03-23 13:35:40 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user text: welcome | previous action name: action_listen
2021-03-23 13:35:40 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-03-23 13:35:40 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user intent: welcome_msg | previous action name: action_listen
2021-03-23 13:35:40 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-03-23 13:35:40 DEBUG rasa.core.policies.ensemble - Made prediction using user intent.
2021-03-23 13:35:40 DEBUG rasa.core.policies.ensemble - Added DefinePrevUserUtteredFeaturization(False)
event.
2021-03-23 13:35:40 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy.
2021-03-23 13:35:40 DEBUG rasa.core.processor - Predicted next action ‘action_welcome_message’ with confidence 1.00.
2021-03-23 13:35:40 DEBUG rasa.core.actions.action - Calling action endpoint to run action ‘action_welcome_message’.
2021-03-23 13:35:40 DEBUG rasa.utils.endpoints - The URL ‘http://localhost:5055/webhook/’ has a trailing slash. Please make sure the target server supports trailing slashes for this endpoint.
2021-03-23 13:35:42 DEBUG rasa.core.processor - Policy prediction ended with events ‘[<rasa.shared.core.events.DefinePrevUserUtteredFeaturization object at 0x0000014F55636A30>]’.
2021-03-23 13:35:42 DEBUG rasa.core.processor - Action ‘action_welcome_message’ ended with events ‘[BotUttered(‘Welcome to Rasa Chat’, {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, {}, 1616486742.1606255), <rasa.shared.core.events.UserUtteranceReverted object at 0x0000014F598AD850>]’.
2021-03-23 13:35:42 DEBUG rasa.core.processor - Current slot values:
session_started_metadata: None
2021-03-23 13:35:42 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00.
2021-03-23 13:35:42 DEBUG rasa.core.processor - Policy prediction ended with events ‘’.
2021-03-23 13:35:42 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘’.
2021-03-23 13:35:42 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘4ba2f485-56ae-443d-9eb0-41144382dfd6’.
2021-03-23 13:36:09 DEBUG rasa.core.lock_store - Issuing ticket for conversation ‘4ba2f485-56ae-443d-9eb0-41144382dfd6’.
2021-03-23 13:36:09 DEBUG rasa.core.lock_store - Acquiring lock for conversation ‘4ba2f485-56ae-443d-9eb0-41144382dfd6’.
2021-03-23 13:36:09 DEBUG rasa.core.lock_store - Acquired lock for conversation ‘4ba2f485-56ae-443d-9eb0-41144382dfd6’.
2021-03-23 13:36:09 DEBUG rasa.core.tracker_store - Recreating tracker for id ‘4ba2f485-56ae-443d-9eb0-41144382dfd6’
2021-03-23 13:36:09 DEBUG rasa.core.processor - Received user message ‘hi’ with intent ‘{‘id’: -1322965128742587521, ‘name’: ‘greet’, ‘confidence’: 0.9999854564666748}’ and entities ‘’
2021-03-23 13:36:09 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 10 events.
2021-03-23 13:36:09 DEBUG rasa.core.policies.memoization - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
2021-03-23 13:36:09 DEBUG rasa.core.policies.memoization - There is no memorised next action
2021-03-23 13:36:09 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user text: hi | previous action name: action_listen
2021-03-23 13:36:09 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-03-23 13:36:09 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
2021-03-23 13:36:09 DEBUG rasa.core.policies.rule_policy - There is a rule for the next action ‘utter_welcome_message’.
2021-03-23 13:36:09 DEBUG rasa.core.policies.ensemble - Made prediction using user intent.
2021-03-23 13:36:09 DEBUG rasa.core.policies.ensemble - Added DefinePrevUserUtteredFeaturization(False)
event.
2021-03-23 13:36:09 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_3_RulePolicy.
2021-03-23 13:36:09 DEBUG rasa.core.processor - Predicted next action ‘utter_welcome_message’ with confidence 1.00.
2021-03-23 13:36:09 DEBUG rasa.core.processor - Policy prediction ended with events ‘[<rasa.shared.core.events.DefinePrevUserUtteredFeaturization object at 0x0000014F55637D00>]’.
2021-03-23 13:36:09 DEBUG rasa.core.processor - Action ‘utter_welcome_message’ ended with events ‘[BotUttered(‘Hi, Welcome to Insights Intelligence Bot, I am here to help you’, {“elements”: null, “quick_replies”: null, “buttons”: null, “attachment”: null, “image”: null, “custom”: null}, {“template_name”: “utter_welcome_message”}, 1616486769.5332313)]’.
2021-03-23 13:36:09 DEBUG rasa.core.policies.memoization - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
[state 2] user intent: greet | previous action name: utter_welcome_message
2021-03-23 13:36:09 DEBUG rasa.core.policies.memoization - There is no memorised next action
2021-03-23 13:36:09 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘greet’.
2021-03-23 13:36:09 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
[state 2] user intent: greet | previous action name: utter_welcome_message
2021-03-23 13:36:09 DEBUG rasa.core.policies.rule_policy - There is a rule for the next action ‘utter_select’.
2021-03-23 13:36:09 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_3_RulePolicy.
2021-03-23 13:36:09 DEBUG rasa.core.processor - Predicted next action ‘utter_select’ with confidence 1.00.
2021-03-23 13:36:09 DEBUG rasa.core.processor - Policy prediction ended with events ‘’.
2021-03-23 13:36:09 DEBUG rasa.core.processor - Action ‘utter_select’ ended with events ‘[BotUttered(‘Please, let me know which topic you are interested in knowing more about:’, {“elements”: null, “quick_replies”: null, “buttons”: [{“title”: “Update/Append Column”, “payload”: “/column_update”}, {“title”: “Update/Append Row”, “payload”: “/row_update”}, {“title”: “Download Data”, “payload”: “/download_data”}, {“title”: “Delete Assessment”, “payload”: “/delete_assessment”}], “attachment”: null, “image”: null, “custom”: null}, {“template_name”: “utter_select”}, 1616486769.5512207)]’.
2021-03-23 13:36:09 DEBUG rasa.core.policies.memoization - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
[state 2] user intent: greet | previous action name: utter_welcome_message
[state 3] user intent: greet | previous action name: utter_select
2021-03-23 13:36:09 DEBUG rasa.core.policies.memoization - There is no memorised next action
2021-03-23 13:36:09 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, ‘greet’.
2021-03-23 13:36:09 DEBUG rasa.core.policies.rule_policy - Current tracker state:
[state 1] user intent: greet | previous action name: action_listen
[state 2] user intent: greet | previous action name: utter_welcome_message
[state 3] user intent: greet | previous action name: utter_select
2021-03-23 13:36:09 DEBUG rasa.core.policies.rule_policy - There is a rule for the next action ‘action_listen’.
2021-03-23 13:36:09 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_3_RulePolicy.
2021-03-23 13:36:09 DEBUG rasa.core.processor - Predicted next action ‘action_listen’ with confidence 1.00.
2021-03-23 13:36:09 DEBUG rasa.core.processor - Policy prediction ended with events ‘’.
2021-03-23 13:36:09 DEBUG rasa.core.processor - Action ‘action_listen’ ended with events ‘’.
2021-03-23 13:36:09 DEBUG rasa.core.lock_store - Deleted lock for conversation ‘4ba2f485-56ae-443d-9eb0-41144382dfd6’.
Browser Console Logs:
Failed to load resource: the server responded with a status of 404 (Not Found)
script.js:709 Response from Rasa: Array(1)0: recipient_id: “4ba2f485-56ae-443d-9eb0-41144382dfd6”
text: “Welcome to Rasa Chat”
proto: Object
constructor: ƒ Object()
hasOwnProperty: ƒ hasOwnProperty()
isPrototypeOf: ƒ isPrototypeOf()
propertyIsEnumerable: ƒ propertyIsEnumerable()
toLocaleString: ƒ toLocaleString()
toString: ƒ toString()
valueOf: ƒ valueOf()
defineGetter: ƒ defineGetter()
defineSetter: ƒ defineSetter()
lookupGetter: ƒ lookupGetter()
lookupSetter: ƒ lookupSetter()
get proto: ƒ proto()
set proto: ƒ proto()
length: 1
proto: concat: ƒ concat()
constructor: ƒ Array()
copyWithin: ƒ copyWithin()
entries: ƒ entries()
every: ƒ every()
fill: ƒ fill()
filter: ƒ filter()
find: ƒ find()
findIndex: ƒ findIndex()
flat: ƒ flat()
flatMap: ƒ flatMap()
forEach: ƒ forEach()
includes: ƒ includes()
indexOf: ƒ indexOf()
join: ƒ join()
keys: ƒ keys()
lastIndexOf: ƒ lastIndexOf()
length: 0
map: ƒ map()
pop: ƒ pop()
push: ƒ push()
reduce: ƒ reduce()
reduceRight: ƒ reduceRight()
reverse: ƒ reverse()
shift: ƒ shift()
slice: ƒ slice()
some: ƒ some()
sort: ƒ sort()
splice: ƒ splice()
toLocaleString: ƒ toLocaleString()
toString: ƒ toString()
unshift: ƒ unshift()
values: ƒ values()
Symbol(Symbol.iterator): ƒ values()
Symbol(Symbol.unscopables): {copyWithin: true, entries: true, fill: true, find: true, findIndex: true, …}
proto: Object
Status: success
script.js:709 Response from Rasa: Array(2)0: recipient_id:
"4ba2f485-56ae-443d-9eb0-41144382dfd6"text: "Hi, Welcome to Insights Intelligence Bot, I am here to help you"proto: Object
proto:
constructor: ƒ Object()
hasOwnProperty: ƒ hasOwnProperty()
isPrototypeOf: ƒ isPrototypeOf()
propertyIsEnumerable: ƒ propertyIsEnumerable()
toLocaleString: ƒ toLocaleString()
toString: ƒ toString()
valueOf: ƒ valueOf()
defineGetter: ƒ defineGetter()
defineSetter: ƒ defineSetter()
lookupGetter: ƒ lookupGetter()
lookupSetter: ƒ lookupSetter()
get proto: ƒ proto()
set proto: ƒ proto()
1:
buttons: Array(4)
0: {title: “Update/Append Column”, payload: “/column_update”}
1: {title: “Update/Append Row”, payload: “/row_update”}
2: {title: “Download Data”, payload: “/download_data”}
3: {title: “Delete Assessment”, payload: “/delete_assessment”}
length: 4
proto: Array(0)
concat: ƒ concat()
constructor: ƒ Array()
copyWithin: ƒ copyWithin()
entries: ƒ entries()
every: ƒ every()
fill: ƒ fill()
filter: ƒ filter()
find: ƒ find()
findIndex: ƒ findIndex()
flat: ƒ flat()
flatMap: ƒ flatMap()
forEach: ƒ forEach()
includes: ƒ includes()
indexOf: ƒ indexOf()
join: ƒ join()
keys: ƒ keys()
lastIndexOf: ƒ lastIndexOf()
length: 0
map: ƒ map()
pop: ƒ pop()
push: ƒ push()
reduce: ƒ reduce()
reduceRight: ƒ reduceRight()
reverse: ƒ reverse()
shift: ƒ shift()
slice: ƒ slice()
some: ƒ some()
sort: ƒ sort()
splice: ƒ splice()
toLocaleString: ƒ toLocaleString()
toString: ƒ toString()
unshift: ƒ unshift()
values: ƒ values()
Symbol(Symbol.iterator): ƒ values()
Symbol(Symbol.unscopables): {copyWithin: true, entries: true, fill: true, find: true, findIndex: true, …}
proto: Object
recipient_id: "4ba2f485-56ae-443d-9eb0-41144382dfd6"text: "Please, let me know which topic you are interested in knowing more about:
proto:
constructor: ƒ Object()
hasOwnProperty: ƒ hasOwnProperty()
isPrototypeOf: ƒ isPrototypeOf()
propertyIsEnumerable: ƒ propertyIsEnumerable()
toLocaleString: ƒ toLocaleString()
toString: ƒ toString()
valueOf: ƒ valueOf()
defineGetter: ƒ defineGetter()
defineSetter: ƒ defineSetter()
lookupGetter: ƒ lookupGetter()
lookupSetter: ƒ lookupSetter()
get proto: ƒ proto()
set proto: ƒ proto()
length: 2
proto: Array(0)
concat: ƒ concat()
constructor: ƒ Array()
copyWithin: ƒ copyWithin()
entries: ƒ entries()
every: ƒ every()
fill: ƒ fill()
filter: ƒ filter()
find: ƒ find()
findIndex: ƒ findIndex()
flat: ƒ flat()
flatMap: ƒ flatMap()
forEach: ƒ forEach()
includes: ƒ includes()
indexOf: ƒ indexOf()
join: ƒ join()
keys: ƒ keys()
lastIndexOf: ƒ lastIndexOf()
length: 0
map: ƒ map()
pop: ƒ pop()
push: ƒ push()
reduce: ƒ reduce()
reduceRight: ƒ reduceRight()
reverse: ƒ reverse()
shift: ƒ shift()
slice: ƒ slice()
some: ƒ some()
sort: ƒ sort()
splice: ƒ splice()
toLocaleString: ƒ toLocaleString()
toString: ƒ toString()
unshift: ƒ unshift()
values: ƒ values()
Symbol(Symbol.iterator): ƒ values()
Symbol(Symbol.unscopables): {copyWithin: true, entries: true, fill: true, find: true, findIndex: true, …}
proto: Object
Status: success
actions.py
This files contains your custom actions which can be used to run
custom Python code.
See this guide on how to implement these action:
This is a simple example for a custom action which utters “Hello World!”
from typing import Any, Text, Dict, List
from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher
from rasa_sdk.events import UserUttered, UserUtteranceReverted
class ActionWelcomeMessage(Action):
def name(self) -> Text:
return "action_welcome_message"
def run(self, dispatcher: CollectingDispatcher,
tracker: Tracker,
domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
dispatcher.utter_message("Welcome to Rasa Chat")
return [UserUtteranceReverted()]
BOT UI