Hello,
I tried to split a story by using checkpoint “vpn_solution” but when I click for example on “vpn_no_internet” the bot does an action_fallback. If i write 3 seperated stories, all works great… What is wrong there? Do I use checkpoints the wrong way?
Output Bot:
? Du hast also Probleme mit dem VPN. Nach meiner Erfahrung liegt es an einem der folgenden Gründe:
1. Das verwendete Gerät hat keine Verbindung zum Internet
2. Beim arbeiten mit einer RDP-Verbindung, ist das Gerät (PC / Notebook) im Büro ggf. nicht eingeschaltet.
3. Kennwort gesperrt.
Bitte wähle eines der Themen aus, damit ich dir weiterhelfen kann.
Input User:
1: Internet nicht verfügbar (/vpn_no_internet)
Debug-shell output:
2021-09-15 14:19:04 DEBUG rasa.core.lock_store - Issuing ticket for conversation '07b81a445b5a45078f242335d19ebdb7'.
2021-09-15 14:19:04 DEBUG rasa.core.lock_store - Acquiring lock for conversation '07b81a445b5a45078f242335d19ebdb7'.
2021-09-15 14:19:04 DEBUG rasa.core.lock_store - Acquired lock for conversation '07b81a445b5a45078f242335d19ebdb7'.
2021-09-15 14:19:04 DEBUG rasa.core.tracker_store - Recreating tracker for id '07b81a445b5a45078f242335d19ebdb7'
2021-09-15 14:19:04 DEBUG rasa.core.processor - Received user message '/vpn_no_internet' with intent '{'name': 'vpn_no_internet', 'confidence': 1.0}' and entities '[]'
2021-09-15 14:19:04 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 36 events.
2021-09-15 14:19:04 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_greet
[state 3] user intent: problem_vpn | previous action name: action_listen
[state 4] user intent: problem_vpn | previous action name: ticket_form | slots: {'email': (1.0,), 'name': (1.0,)}
[state 5] user intent: vpn_no_internet | previous action name: action_listen | slots: {'email': (1.0,), 'name': (1.0,)}
2021-09-15 14:19:04 DEBUG rasa.core.policies.memoization - Launch DeLorean...
2021-09-15 14:19:04 DEBUG rasa.core.policies.memoization - Current tracker state [{}, {'user': {'intent': 'vpn_no_internet'}, 'prev_action': {'action_name': 'action_listen'}}]
2021-09-15 14:19:04 DEBUG rasa.core.policies.memoization - There is no memorised next action
2021-09-15 14:19:04 DEBUG rasa.core.policies.ted_policy - TED predicted 'utter_goodbye' based on user intent.
2021-09-15 14:19:04 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_greet
[state 3] user intent: problem_vpn | previous action name: action_listen
[state 4] user intent: problem_vpn | previous action name: ticket_form | slots: {'email': (1.0,), 'name': (1.0,)}
[state 5] user intent: problem_vpn | previous action name: utter_submit | slots: {'email': (1.0,), 'name': (1.0,)}
[state 6] user intent: problem_vpn | previous action name: utter_slots_values | slots: {'email': (1.0,), 'name': (1.0,)}
[state 7] user intent: problem_vpn | previous action name: utter_vpnmoeglicheProbleme | slots: {'email': (1.0,), 'name': (1.0,)}
[state 8] user text: /vpn_no_internet | previous action name: action_listen | slots: {'email': (1.0,), 'name': (1.0,)}
2021-09-15 14:19:04 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-09-15 14:19:04 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_greet
[state 3] user intent: problem_vpn | previous action name: action_listen
[state 4] user intent: problem_vpn | previous action name: ticket_form | slots: {'email': (1.0,), 'name': (1.0,)}
[state 5] user intent: problem_vpn | previous action name: utter_submit | slots: {'email': (1.0,), 'name': (1.0,)}
[state 6] user intent: problem_vpn | previous action name: utter_slots_values | slots: {'email': (1.0,), 'name': (1.0,)}
[state 7] user intent: problem_vpn | previous action name: utter_vpnmoeglicheProbleme | slots: {'email': (1.0,), 'name': (1.0,)}
[state 8] user intent: vpn_no_internet | previous action name: action_listen | slots: {'email': (1.0,), 'name': (1.0,)}
2021-09-15 14:19:04 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-09-15 14:19:04 DEBUG rasa.core.policies.ensemble - Made prediction using user intent.
2021-09-15 14:19:04 DEBUG rasa.core.policies.ensemble - Added `DefinePrevUserUtteredFeaturization(False)` event.
2021-09-15 14:19:04 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_RulePolicy.
2021-09-15 14:19:04 DEBUG rasa.core.processor - Predicted next action 'action_fallback' with confidence 0.50.
2021-09-15 14:19:04 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_fallback'.
2021-09-15 14:19:05 DEBUG rasa.core.processor - Policy prediction ended with events '[<rasa.shared.core.events.DefinePrevUserUtteredFeaturization object at 0x000001664E770BE0>]'.
2021-09-15 14:19:05 DEBUG rasa.core.processor - Action 'action_fallback' ended with events '[BotUttered('Tut mir leid, ich habe das nicht verstanden. Könntest du das Umformulieren?', {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, {}, 1631708345.018423)]'.
2021-09-15 14:19:05 DEBUG rasa.core.processor - Current slot values:
email: max.mustermann@example.com
name: max
requested_slot: None
session_started_metadata: None
2021-09-15 14:19:05 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_greet
[state 3] user intent: problem_vpn | previous action name: action_listen
[state 4] user intent: problem_vpn | previous action name: ticket_form | slots: {'email': (1.0,), 'name': (1.0,)}
[state 5] user intent: vpn_no_internet | previous action name: action_listen | slots: {'email': (1.0,), 'name': (1.0,)}
[state 6] user intent: vpn_no_internet | previous action name: action_fallback | slots: {'email': (1.0,), 'name': (1.0,)}
2021-09-15 14:19:05 DEBUG rasa.core.policies.memoization - Launch DeLorean...
2021-09-15 14:19:05 DEBUG rasa.core.policies.memoization - Current tracker state [{}, {'prev_action': {'action_name': 'action_fallback'}}]
2021-09-15 14:19:05 DEBUG rasa.core.policies.memoization - There is no memorised next action
2021-09-15 14:19:05 DEBUG rasa.core.policies.ted_policy - TED predicted 'action_listen' based on user intent.
2021-09-15 14:19:05 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_greet
[state 3] user intent: problem_vpn | previous action name: action_listen
[state 4] user intent: problem_vpn | previous action name: ticket_form | slots: {'email': (1.0,), 'name': (1.0,)}
[state 5] user intent: problem_vpn | previous action name: utter_submit | slots: {'email': (1.0,), 'name': (1.0,)}
[state 6] user intent: problem_vpn | previous action name: utter_slots_values | slots: {'email': (1.0,), 'name': (1.0,)}
[state 7] user intent: problem_vpn | previous action name: utter_vpnmoeglicheProbleme | slots: {'email': (1.0,), 'name': (1.0,)}
[state 8] user intent: vpn_no_internet | previous action name: action_listen | slots: {'email': (1.0,), 'name': (1.0,)}
[state 9] user intent: vpn_no_internet | previous action name: action_fallback | slots: {'email': (1.0,), 'name': (1.0,)}
2021-09-15 14:19:05 DEBUG rasa.core.policies.rule_policy - There is no applicable rule.
2021-09-15 14:19:05 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_1_TEDPolicy.
2021-09-15 14:19:05 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 0.99.
2021-09-15 14:19:05 DEBUG rasa.core.processor - Policy prediction ended with events '[]'.
2021-09-15 14:19:05 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'.
2021-09-15 14:19:05 DEBUG rasa.core.lock_store - Deleted lock for conversation '07b81a445b5a45078f242335d19ebdb7'.
Tut mir leid, ich habe das nicht verstanden. Könntest du das Umformulieren?
rules.yml:
version: "2.0"
rules:
- rule: Say goodbye anytime the user says goodbye
steps:
- intent: goodbye
- action: utter_goodbye
- rule: contact the support
steps:
- intent: contact_support
- action: utter_contact_support
- rule: activate ticketform
steps:
- intent: problem_vpn
- action: ticket_form
- active_loop: ticket_form
- rule: submit ticketform
condition:
- active_loop: ticket_form
steps:
- action: ticket_form
- active_loop: null
- slot_was_set:
- requested_slot: null
- action: utter_submit
- action: utter_slots_values
- action: utter_vpnmoeglicheProbleme
wait_for_user_input: false
config.yml:
language: de
pipeline:
- name: SpacyNLP
case_sensitive: false
model: de_core_news_lg
- name: SpacyTokenizer
- name: SpacyFeaturizer
- name: RegexFeaturizer
- name: LexicalSyntacticFeaturizer
- name: CountVectorsFeaturizer
- name: CountVectorsFeaturizer
analyzer: char_wb
min_ngram: 1
max_ngram: 4
- name: DIETClassifier
epochs: 100
- name: EntitySynonymMapper
- name: ResponseSelector
epochs: 100
policies:
- name: AugmentedMemoizationPolicy
max_history: 0
- name: TEDPolicy
max_history: 5
epochs: 100
constrain_similarities: true
- name: RulePolicy
core_fallback_threshold: 0.5
core_fallback_action_name: action_fallback
enable_fallback_prediction: True
stories.yml:
version: "2.0"
stories:
- story: happy path
steps:
- intent: greet
- action: utter_greet
- intent: mood_great
- action: utter_goodbye
- story: VPN Problems - inet
steps:
- intent: greet
- action: utter_greet
- intent: problem_vpn
- action: ticket_form
- active_loop: ticket_form
- checkpoint: vpn_solution
- story: VPN Problems - vpn_no_internet
steps:
- checkpoint: vpn_solution
- intent: vpn_no_internet
- action: utter_vpn_no_internet
- story: VPN Problems - vpn_rdp_Problem
steps:
- checkpoint: vpn_solution
- intent: vpn_rdp_Problem
- action: utter_vpn_rdp_problem
- story: VPN Problems - vpn_kennwort_gesperrt
steps:
- checkpoint: vpn_solution
- intent: vpn_kennwort_gesperrt
- action: utter_vpn_kennwort_gesperrt
domain.yml:
version: '2.0'
config:
store_entities_as_slots: true
session_config:
session_expiration_time: 60
carry_over_slots_to_new_session: true
intents:
- greet:
use_entities: true
- goodbye:
use_entities: true
- affirm:
use_entities: true
- deny:
use_entities: true
- mood_great:
use_entities: true
- need_something_else:
use_entities: true
- vpn_no_internet:
use_entities: true
- problem_vpn:
use_entities: true
- vpn_rdp_Problem:
use_entities: true
- vpn_kennwort_gesperrt:
use_entities: true
- contact_support:
use_entities: true
- vpn_rdp_problem:
use_entities: true
entities: []
slots:
email:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
name:
type: rasa.shared.core.slots.TextSlot
initial_value: null
auto_fill: true
influence_conversation: true
requested_slot:
type: rasa.shared.core.slots.UnfeaturizedSlot
initial_value: null
auto_fill: true
influence_conversation: false
responses:
utter_greet:
- text: Hi, ich bin der BrainBot. Wie kann ich dir helfen?
utter_goodbye:
- text: Bye, bis zum nächsten Mal!
utter_HowToHelp:
- text: Alles klar, wobei ich kann dir helfen?
utter_ask_email:
- text: Für die weitere Bearbeitung benötige ich bitte deine E-Mailadresse
utter_ask_name:
- text: Wie ist dein Name?
utter_submit:
- text: Vielen Dank!
utter_slots_values:
- text: Dein name ist {name} und deine email lautet {email}
utter_vpnmoeglicheProbleme:
- buttons:
- payload: /vpn_no_internet
title: Internet nicht verfügbar
- payload: /vpn_rdp_Problem
title: 'RDP: Gerät nicht eingeschaltet'
- payload: /vpn_kennwort_gesperrt
title: Kennwort gesperrt
- payload: /contact_support
title: Sonstiges (Ticket eröffnen)
text: |-
Du hast also Probleme mit dem VPN. Nach meiner Erfahrung liegt es an einem der folgenden Gründe:
1. Das verwendete Gerät hat keine Verbindung zum Internet
2. Beim arbeiten mit einer RDP-Verbindung, ist das Gerät (PC / Notebook) im Büro ggf. nicht eingeschaltet.
3. Kennwort gesperrt.
Bitte wähle eines der Themen aus, damit ich dir weiterhelfen kann.
utter_vpn_no_internet:
- text: |
Bitte überprüfe, ob das Notebook oder der PC mit dem Internet verbunden ist.
Versuche mal, die Braintec-Website zu öffnen.
Kann diese nicht geöffnet werden, prüfen bitte deine WLAN bzw. LAN Verbindung.
Solltest du über LAN verbunden sein, kontrolliere bitte die Anzeigen an deinem Router.
Leuchten diese durchgängig GRÜN, starte bitte den Router neu.
Blinken diese ROT, dann wende dich an deinen Provider.
Bist du über WLAN verbunden, prüfen bitte die Verbindung an deinem Notebook und verbinde dich ggf. neu.
utter_vpn_rdp_problem:
- text: |
Bitte rufe in deinem Büro an, so dass geprüft werden kann, ob das Gerät eingeschaltet ist. Wenn es ausgeschaltet ist, bitte das Gerät, einschalten zu lassen.
Ist das Gerät eingeschaltet, muss für die Störungsbeseitigung ein Techniker hinzugezogen werden.
utter_vpn_kennwort_gesperrt:
- text: |
Sollte das Kennwort gesperrt sein, kann dies nur durch einen Techniker behoben werden.
utter_contact_support:
- text: Ich habe für dich ein Ticket erstellt. Ein Techniker wird sich schnellstmöglich bei dir melden. Kann ich dir sonst irgendwie helfen?
actions:
- action_fallback
forms:
ticket_form:
required_slots:
email:
- type: from_text
name:
- type: from_text
e2e_actions: []