Skip to content
This repository has been archived by the owner on Jun 24, 2020. It is now read-only.

Utterance templates don't get resolved #65

Open
ElBullet opened this issue Apr 29, 2020 · 1 comment
Open

Utterance templates don't get resolved #65

ElBullet opened this issue Apr 29, 2020 · 1 comment

Comments

@ElBullet
Copy link

ElBullet commented Apr 29, 2020

Rasa Addons version: 0.9.18+
Rasa Core version: I don't know. I'm using following images:

  • botfront: 'botfront/botfront:v0.22.2'
  • botfront-api: 'botfront/botfront-api:v0.22.2'
  • rasa: 'botfront/rasa-for-botfront:v1.9.0-bf.5'
  • duckling: 'botfront/duckling:latest'
  • mongo: 'mongo:latest'
  • actions: 'rasa/rasa-sdk:1.9.0'

I updated rasa-addons via requirements.txt:
https://github.com/botfront/rasa-addons/archive/0.9.18.zip

Describe the problem:

Utterance templates don't get resolved. Instead of uttering the correct text the bot just responds with the template name, e.g. utter_getstarted.
Botfront logs:

botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.processor - Starting a new session for conversation ID '198e65087d5b454490d7eae57629287a'.
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.processor - Action 'action_session_start' ended with events '[<rasa.core.events.SessionStarted object at 0x7f44f837c940>, <rasa.core.events.ActionExecuted object at 0x7f44f837c9e8>]'.
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.processor - Current slot values:
botfront-rasa | disambiguation_message: None
botfront-rasa | fallback_language: de
botfront-rasa | known_answers: None
botfront-rasa | questions_count: None
botfront-rasa | questions_not_answered: None
botfront-rasa | requested_slot: None
botfront-rasa | support_email: None
botfront-rasa | support_message: None
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.processor - Received user message '/get_started' with intent '{'name': 'get_started', 'confidence': 1.0}' and entities '[]'
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 4 events.
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.form_policy - There is no active form
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3).
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, {}, {'intent_get_started': 1.0, 'prev_action_listen': 1.0}]
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.memoization - There is a memorised next action 'utter_getstarted'
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, {}, {'intent_get_started': 1.0, 'prev_action_listen': 1.0}]
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.memoization - There is a memorised next action 'utter_getstarted'
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa_addons.core.policies.mapping - Triggers: ^map..+
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_AugmentedMemoizationPolicy
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.processor - Predicted next action 'utter_getstarted' with confidence 1.00.
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa_addons.core.nlg.graphql - Requesting NLG for utter_getstarted from http://botfront:3000/graphql.
botfront-rasa | 2020-04-29 10:32:20 ERROR sgqlc.endpoint.http - http://botfront:3000/graphql: HTTP Error 400: Bad Request
botfront-rasa | 2020-04-29 10:32:20 ERROR sgqlc.endpoint.http - GraphQL query failed with 5 errors
botfront-rasa | 2020-04-29 10:32:20 ERROR rasa_addons.core.nlg.graphql - NLG web endpoint returned an invalid response: 'data'
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.processor - Action 'utter_getstarted' ended with events '[BotUttered('utter_getstarted', {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, {}, 1588156340.5093675)]'.
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.form_policy - There is no active form
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3).
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {'intent_get_started': 1.0, 'prev_action_listen': 1.0}, {'intent_get_started': 1.0, 'prev_utter_getstarted': 1.0}]
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.memoization - There is a memorised next action 'action_listen'
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {'intent_get_started': 1.0, 'prev_action_listen': 1.0}, {'intent_get_started': 1.0, 'prev_utter_getstarted': 1.0}]
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.memoization - There is a memorised next action 'action_listen'
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa_addons.core.policies.mapping - Triggers: ^map..+
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa_addons.core.policies.mapping - Predicted intent is not handled by BotfrontMappingPolicy.
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_AugmentedMemoizationPolicy
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 1.00.
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'.
botfront-rasa | 2020-04-29 10:32:20 DEBUG rasa.core.lock_store - Deleted lock for conversation '198e65087d5b454490d7eae57629287a'.

It used to work with version 0.9.17. Botfront logs:

botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.processor - Starting a new session for conversation ID 'ff21f771feb34807a3d7eade85cb3f0e'.
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.processor - Action 'action_session_start' ended with events '[<rasa.core.events.SessionStarted object at 0x7f70686c47b8>, <rasa.core.events.ActionExecuted object at 0x7f70686c4860>]'.
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.processor - Current slot values:
botfront-rasa | disambiguation_message: None
botfront-rasa | fallback_language: de
botfront-rasa | known_answers: None
botfront-rasa | questions_count: None
botfront-rasa | questions_not_answered: None
botfront-rasa | requested_slot: None
botfront-rasa | support_email: None
botfront-rasa | support_message: None
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.processor - Received user message '/get_started' with intent '{'name': 'get_started', 'confidence': 1.0}' and entities '[]'
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 4 events.
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.policies.form_policy - There is no active form
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3).
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, {}, {'intent_get_started': 1.0, 'prev_action_listen': 1.0}]
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.policies.memoization - There is a memorised next action 'utter_getstarted'
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, {}, {'intent_get_started': 1.0, 'prev_action_listen': 1.0}]
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.policies.memoization - There is a memorised next action 'utter_getstarted'
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa_addons.core.policies.mapping - Triggers: ^map..+
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_AugmentedMemoizationPolicy
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa.core.processor - Predicted next action 'utter_getstarted' with confidence 1.00.
botfront-rasa | 2020-04-29 10:34:22 DEBUG rasa_addons.core.nlg.graphql - Requesting NLG for utter_getstarted from http://botfront:3000/graphql.
botfront-rasa | 2020-04-29 10:34:22 DEBUG sgqlc.endpoint.http - Query:
botfront-rasa |
botfront-rasa | query(
botfront-rasa | $template: String!
botfront-rasa | $arguments: Any
botfront-rasa | $tracker: ConversationInput
botfront-rasa | $channel: NlgRequestChannel
botfront-rasa | ) {
botfront-rasa | getResponse(
botfront-rasa | template: $template
botfront-rasa | arguments: $arguments
botfront-rasa | tracker: $tracker
botfront-rasa | channel: $channel
botfront-rasa | ) {
botfront-rasa | text
botfront-rasa | metadata
botfront-rasa | ...on QuickReplyPayload { buttons { title, type, ...on WebUrlButton { url } ...on PostbackButton { payload } } }
botfront-rasa | ...on ImagePayload { image }
botfront-rasa | ...on CustomPayload { buttons { title, type, ...on WebUrlButton { url } ...on PostbackButton { payload } }, elements, attachment, image, custom }
botfront-rasa | }
botfront-rasa | }
botfront-rasa |
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa.core.processor - Action 'utter_getstarted' ended with events '[BotUttered('Hallo, ich bin der Universalprozess Chatbot.
botfront-rasa |
botfront-rasa | Wie kann ich Ihnen helfen?', {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, {"metadata": null}, 1588156463.0015583)]'.
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa.core.policies.form_policy - There is no active form
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa.core.policies.fallback - NLU confidence threshold met, confidence of fallback action set to core threshold (0.3).
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {'intent_get_started': 1.0, 'prev_action_listen': 1.0}, {'intent_get_started': 1.0, 'prev_utter_getstarted': 1.0}]
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa.core.policies.memoization - There is a memorised next action 'action_listen'
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, {}, {'intent_get_started': 1.0, 'prev_action_listen': 1.0}, {'intent_get_started': 1.0, 'prev_utter_getstarted': 1.0}]
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa.core.policies.memoization - There is a memorised next action 'action_listen'
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa_addons.core.policies.mapping - Triggers: ^map..+
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa_addons.core.policies.mapping - Predicted intent is not handled by BotfrontMappingPolicy.
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_2_AugmentedMemoizationPolicy
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 1.00.
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'.
botfront-rasa | 2020-04-29 10:34:23 DEBUG sgqlc.endpoint.http - Query:
botfront-rasa |
botfront-rasa | mutation updateTracker(
botfront-rasa | $senderId: String!
botfront-rasa | $projectId: String!
botfront-rasa | $tracker: Any
botfront-rasa | $env: Environement
botfront-rasa | ) {
botfront-rasa | updateTrackerStore(senderId: $senderId, projectId: $projectId, tracker: $tracker, env: $env){
botfront-rasa | lastIndex
botfront-rasa | lastTimestamp
botfront-rasa | }
botfront-rasa | }
botfront-rasa |
botfront-rasa | 2020-04-29 10:34:23 DEBUG rasa.core.lock_store - Deleted lock for conversation 'ff21f771feb34807a3d7eade85cb3f0e'.

@pheel
Copy link
Contributor

pheel commented May 20, 2020

@ElBullet were you able to solve your problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants