# Custom action doesn't work

**URL:** <https://forum.rasa.com/t/custom-action-doesnt-work/21253>\
**Category:** Rasa Open Source\
**Created:** [November 14, 2019, 1:22pm UTC](https://forum.rasa.com/t/custom-action-doesnt-work/21253 "2019-11-14T13:22:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![vivitare](https://avatars.discourse-cdn.com/v4/letter/v/c57346/32.png) [@vivitare](https://forum.rasa.com/u/vivitare)\
**Post date:** [November 14, 2019, 1:22pm UTC](https://forum.rasa.com/t/custom-action-doesnt-work/21253/1 "2019-11-14T13:22:54Z")

</div>

I’m trying a simple hello-world in custom action but the bot don’t reply.

this is my action.py file :

```python
from rasa_sdk.events import SlotSet
from rasa_sdk import Action

class ActionHelloWorld(Action):
    def name(self):
        return "action_hello_world"

    def run(self, dispatcher, tracker, domain):
        dispatcher.utter_message("Hello world !") # send the message back to the user
        return []

```

domain.yml :

```auto
actions:
- utter_greet
- utter_goodbye
- utter_searching
- action_hello_world

```

and stories.md :

```nohighlight
## greet + ask_qst
* greet
  - action_hello_world

```

and this is the debugging during shell command :

```nohighlight
Your input -> hey
2019-11-14 13:03:40 DEBUG rasa.core.tracker_store - Creating a new tracker for id 'default'.
2019-11-14 13:03:40 DEBUG rasa.core.processor - Received user message 'hey' with intent '{'name': 'greet', 'confidence': 0.817916027907992}' and entities '[]'
2019-11-14 13:03:40 DEBUG rasa.core.processor - Logged UserUtterance - tracker now has 2 events
2019-11-14 13:03:40 DEBUG rasa.core.policies.memoization - Current tracker state [None, None, None, {}, {'prev_action_listen': 1.0, 'intent_greet': 1.0}]
2019-11-14 13:03:40 DEBUG rasa.core.policies.memoization - There is a memorised next action '8'
2019-11-14 13:03:40 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy
2019-11-14 13:03:40 DEBUG rasa.core.processor - Predicted next action 'action_hello_world' with confidence 1.00.
2019-11-14 13:03:40 DEBUG rasa.core.actions.action - Calling action endpoint to run action 'action_hello_world'.
2019-11-14 13:03:40 DEBUG rasa.core.processor - Action 'action_hello_world' ended with events '[]'
2019-11-14 13:03:40 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-11-14 13:03:40 DEBUG rasa.core.policies.memoization - There is a memorised next action '0'
2019-11-14 13:03:40 DEBUG rasa.core.policies.mapping_policy - There is no mapped action for the predicted intent, 'greet'.
2019-11-14 13:03:40 DEBUG rasa.core.policies.ensemble - Predicted next action using policy_0_MemoizationPolicy
2019-11-14 13:03:40 DEBUG rasa.core.processor - Predicted next action 'action_listen' with confidence 1.00.
2019-11-14 13:03:40 DEBUG rasa.core.processor - Action 'action_listen' ended with events '[]'
2019-11-14 13:03:40 DEBUG rasa.core.lock_store - Deleted lock for conversation 'default'.
Your input ->

```

Why the bot don’t show the dispatcher.utter\_message(“Hello world !”) message defined in the action.py ?

I’m running action server with Docker from rasa/rasa-sdk:latest. rasa version : Rasa 1.5.0a1

---

_[View the full topic](https://forum.rasa.com/t/custom-action-doesnt-work/21253)._
