# Custom actions never call

**URL:** <https://forum.rasa.com/t/custom-actions-never-call/60880>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [January 28, 2024, 8:00am UTC](https://forum.rasa.com/t/custom-actions-never-call/60880 "2024-01-28T08:00:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexng88](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@alexng88](https://forum.rasa.com/u/alexng88)\
**Post date:** [January 28, 2024, 8:00am UTC](https://forum.rasa.com/t/custom-actions-never-call/60880/1 "2024-01-28T08:00:16Z")

</div>

Hello, I already spent lots of hours to figure out why my custom action doesnt call. inside my rules.yml

- rule: Respond to where to buy money bags steps:
  - intent: ask\_where\_to\_buy\_money\_item
  - action: action\_validate\_product \<—this line try to call actions.py

inside actions.py class ValidateProductAction(Action): def name(self) → Text: return “action\_validate\_product”

```
def run(self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any]) -> List[Dict[Text, Any]]:
    product_entity = next(tracker.get_latest_entity_values("brand"), None)
    print("alex this is called from outside")
    if product_entity and product_entity.lower() != "monkey":
        dispatcher.utter_message("Sorry, we only offer monkey bags. Please ask for a monkey bag.")
        return [SlotSet("brand", None)]
    return []

```

in nlu.yml

- intent: ask\_where\_to\_buy\_designated\_item examples: |
  - Where can we buy a monkey bag?

end point also running…but seems never call. I want to accept “monkey” as the keyword, other than that, I will give “sorry message”
