# No registered action found for name \\'action\_session\_start\\'

**URL:** <https://forum.rasa.com/t/no-registered-action-found-for-name-action-session-start/39839>\
**Category:** Getting Started with Rasa\
**Created:** [February 4, 2021, 10:30am UTC](https://forum.rasa.com/t/no-registered-action-found-for-name-action-session-start/39839 "2021-02-04T10:30:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyle\_pjk](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kyle_pjk/32/13203_2.png) [@kyle\_pjk](https://forum.rasa.com/u/kyle_pjk)\
**Post date:** [February 4, 2021, 10:30am UTC](https://forum.rasa.com/t/no-registered-action-found-for-name-action-session-start/39839/1 "2021-02-04T10:30:37Z")

</div>

I want to custom action\_session\_start. So I create actions.py

```
from typing import Any, Text, Dict, List

from rasa_sdk import Action, Tracker
from rasa_sdk.executor import CollectingDispatcher

class ActionSessionStart(Action):

    def name(self) -> Text:
        return "action_session_start"

    def run(self, dispatcher: CollectingDispatcher,
            tracker: Tracker,
            domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:

        dispatcher.utter_message(text="hi can you repay now?")

        return []

```

and added in domain.yml

```
actions:
- action_session_start

```

but I run rasa shell. and type /restart

```
Your input -> /restart                                                                                                                                                           
2021-02-04 18:26:06 ERROR rasa.core.processor - Encountered an exception while running action 'action_session_start'.Bot will continue, but the actions events are lost. Please check the logs of your action server for more information.
Traceback (most recent call last):
  File "/Users/pjk/.pyenv/versions/3.7.4/lib/python3.7/site-packages/rasa/core/actions/action.py", line 671, in run
    json=json_body, method="post", timeout=DEFAULT_REQUEST_TIMEOUT
  File "/Users/pjk/.pyenv/versions/3.7.4/lib/python3.7/site-packages/rasa/utils/endpoints.py", line 155, in request
    response.status, response.reason, await response.content.read()
rasa.utils.endpoints.ClientResponseError: 404, Not Found, body='b'{"error":"No registered action found for name \'action_session_start\'.","action_name":"action_session_start"}''

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/pjk/.pyenv/versions/3.7.4/lib/python3.7/site-packages/rasa/core/processor.py", line 751, in _run_action
    output_channel, nlg, temporary_tracker, self.domain
  File "/Users/pjk/.pyenv/versions/3.7.4/lib/python3.7/site-packages/rasa/core/actions/action.py", line 694, in run
    raise RasaException("Failed to execute custom action.") from e
rasa.shared.exceptions.RasaException: Failed to execute custom action.

```

can you help me?

---

<div class="post-metadata">

**Author:** ![saumitrasapre](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saumitrasapre/32/13384_2.png) [@saumitrasapre](https://forum.rasa.com/u/saumitrasapre)\
**Post date:** [February 13, 2021, 8:00pm UTC](https://forum.rasa.com/t/no-registered-action-found-for-name-action-session-start/39839/2 "2021-02-13T20:00:29Z")

</div>

Because the `action_session_start` is a default action in Rasa, you need to follow certain rules while overriding it. For instance:

1. The session should begin with a `session_started` event
2. Any slots that should be carried over should come after the `session_started` event
3. An `action_listen` should be added at the end

You can refer to the docs [here](https://rasa.com/docs/rasa/default-actions/#customization) to get a blueprint so that you can customise the `action_session_start`
