Exception: No registered Action found for name ‘action_example’. 127.0.0.1 - - [2018-09-27 18:52:44] “POST /webhook HTTP/1.1” 500 412 0.001259
rasa_core.actions.action - Failed to run custom action ‘action_example’. Action server responded with a non 200 status code of 500. Make sure your action server properly runs actions and returns a 200 once the action is executed. Error: 500 Server Error: INTERNAL SERVER ERROR for url: http://localhost:5055/webhook 2018-09-27 18:52:44 ERROR rasa_core.processor - Encountered an exception while running action ‘action_example’. Bot will continue, but the actions events are lost. Make sure to fix the exception in your custom code. 2018-09-27 18:52:44 ERROR rasa_core.processor - Failed to execute custom action.
actions.py location in along side the action.py rasa core
from rasa_core_sdk import Action
class ActionTest(Action): def name(self):
return "action_example"
def run(self, dispatcher, tracker, domain): # type: (Dispatcher, DialogueStateTracker, Domain) -> List[Event] dispatcher.utter_template(“utter_ask_name”, tracker)
Domain.yml
slots: name: type: text
intents:
- Greet
- affirm
- deny
- close
templates: utter_ask_name: - “May I have your first and last name please?”
actions:
- utter_ask_name
- action_example
stories :
Generated Story -2116955147822496342
- Greet
- action_example
story 2
- deny
- action_example
Generated Story 391231716455346403042
- Greet
- action_example