Actions not working

hi, I want to run rasa default custom action, I mean hello world. but it seems it doesn’t work. I uncommented ActionHelloWorld class in Actions file, then I uncommented action_endpoint: url: “http://localhost:5055/webhook” in endpoint file. after that, I inserted “action_hello_world” in actions in domain file. then I inserted “action_hello_world” in the story.

in one terminal I run: rasa run actions and in another I run: rasa shell --endpoints endpoints.yml where did I wrong?

Hey and welcome! The steps you posted sound good - can you run with --debug and add the log output here to the question?

somehow when I removed old trained models and train the rasa again it worked, but there is another problem. it just can answer to one question. I mean when I send hi it calls action_hello_world(which is correct). but if ask any question it doesn’t answer anything. here is my story:

## say goodbye
* goodbye
  - utter_goodbye
  
## normal path
* greet
  - action_hello_world

and here is domain file:

intents:
    - greet
    - goodbye

templates:
  utter_goodbye:
  - text: Bye
  
actions:
    - utter_goodbye
    - action_hello_world

this is debugging output:

Bot loaded. Type a message and press enter (use '/stop' to exit):
Your input ->  hi
2019-08-27 12:02:06 DEBUG    rasa.core.agent  - Created a new lock for conversation 'default'
2019-08-27 12:02:06 DEBUG    rasa.core.tracker_store  - Creating a new tracker for id 'default'.
2019-08-27 12:02:06 DEBUG    rasa.core.processor  - Received user message 'hi' with intent '{'name': 'greet', 'confidence': 0.9595979452133179}' and entities '[]'
2019-08-27 12:02:06 DEBUG    rasa.core.processor  - Logged UserUtterance - tracker now has 2 events
2019-08-27 12:02:06 DEBUG    rasa.core.policies.memoization  - Current tracker state [None, None, None, {}, {'prev_action_listen': 1.0, 'intent_greet': 1.0}]
2019-08-27 12:02:06 DEBUG    rasa.core.policies.memoization  - There is a memorised next action '8'
2019-08-27 12:02:06 DEBUG    rasa.core.policies.ensemble  - Predicted next action using policy_0_MemoizationPolicy
2019-08-27 12:02:06 DEBUG    rasa.core.processor  - Predicted next action 'action_hello_world' with confidence 1.00.
2019-08-27 12:02:07 DEBUG    rasa.core.actions.action  - Calling action endpoint to run action 'action_hello_world'.
2019-08-27 12:02:09 DEBUG    rasa.core.processor  - Action 'action_hello_world' ended with events '['BotUttered(text: Hello World!, data: {"elements": null, "quick_replies": null, "buttons": null, "attachment": null, "image": null, "custom": null}, metadata: {})']'
2019-08-27 12:02:09 DEBUG    rasa.core.policies.memoization  - Current tracker state [None, None, {}, {'prev_action_listen': 1.0, 'intent_greet': 1.0}, {'prev_action_hello_world': 1.0, 'intent_greet': 1.0}]
2019-08-27 12:02:09 DEBUG    rasa.core.policies.memoization  - There is a memorised next action '0'
2019-08-27 12:02:09 DEBUG    rasa.core.policies.mapping_policy  - There is no mapped action for the predicted intent, 'greet'.
2019-08-27 12:02:09 DEBUG    rasa.core.policies.ensemble  - Predicted next action using policy_0_MemoizationPolicy
2019-08-27 12:02:09 DEBUG    rasa.core.processor  - Predicted next action 'action_listen' with confidence 1.00.
2019-08-27 12:02:09 DEBUG    rasa.core.processor  - Action 'action_listen' ended with events '[]'
2019-08-27 12:02:09 DEBUG    rasa.core.agent  - Deleted lock for conversation 'default' (unused)
Hello World!
Your input ->  hi
2019-08-27 12:02:13 DEBUG    rasa.core.agent  - Created a new lock for conversation 'default'
2019-08-27 12:02:13 DEBUG    rasa.core.tracker_store  - Recreating tracker for id 'default'
2019-08-27 12:02:13 DEBUG    rasa.core.processor  - Received user message 'hi' with intent '{'name': 'greet', 'confidence': 0.9595979452133179}' and entities '[]'
2019-08-27 12:02:13 DEBUG    rasa.core.processor  - Logged UserUtterance - tracker now has 6 events
2019-08-27 12:02:13 DEBUG    rasa.core.policies.memoization  - Current tracker state [None, {}, {'prev_action_listen': 1.0, 'intent_greet': 1.0}, {'prev_action_hello_world': 1.0, 'intent_greet': 1.0}, {'prev_action_listen': 1.0, 'intent_greet': 1.0}]
2019-08-27 12:02:13 DEBUG    rasa.core.policies.memoization  - There is no memorised next action
2019-08-27 12:02:13 DEBUG    rasa.core.policies.ensemble  - Predicted next action using policy_1_KerasPolicy
2019-08-27 12:02:13 DEBUG    rasa.core.processor  - Predicted next action 'action_listen' with confidence 0.40.
2019-08-27 12:02:13 DEBUG    rasa.core.processor  - Action 'action_listen' ended with events '[]'
2019-08-27 12:02:13 DEBUG    rasa.core.agent  - Deleted lock for conversation 'default' (unused)

thank you in advance.