# Not able to call custom actions

**URL:** <https://forum.rasa.com/t/not-able-to-call-custom-actions/13394>\
**Category:** Rasa Open Source\
**Created:** [July 23, 2019, 9:35am UTC](https://forum.rasa.com/t/not-able-to-call-custom-actions/13394 "2019-07-23T09:35:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![123v](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/123v/32/4961_2.png) [@123v](https://forum.rasa.com/u/123v)\
**Post date:** [July 23, 2019, 9:35am UTC](https://forum.rasa.com/t/not-able-to-call-custom-actions/13394/1 "2019-07-23T09:35:48Z")

</div>

Hi all, I’ve done exact same things mentioned in rasa github examples, mapped all the versions and tried all the commands but not able to call my custom actions. I’m attaching my files. Please help me. [actions.py](https://forum.rasa.com/uploads/short-url/kDDU8XtgA1fi0nszA53KXxRbirp.py) (1.3 KB) [domain.yml](https://forum.rasa.com/uploads/short-url/wrkYZu6Ma0bljQgosQlghotQgCT.yml) (650 Bytes) [stories.md](https://forum.rasa.com/uploads/short-url/q4NYqAUYnVlsSrQZyt79CDydMvr.md) (468 Bytes)

---

<div class="post-metadata">

**Author:** ![imLew](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/imlew/32/3744_2.png) [@imLew](https://forum.rasa.com/u/imLew)\
**Post date:** [July 23, 2019, 2:07pm UTC](https://forum.rasa.com/t/not-able-to-call-custom-actions/13394/2 "2019-07-23T14:07:52Z")

</div>

Hi Vaishnavi Rai,

are you running the rasa action server? (The command is `rasa run actions`) Also make sure that all your files either have the default names (such as `endpoints.yml`) or that you are passing the names as arguments.

---

<div class="post-metadata">

**Author:** ![BrunoRoth95](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/brunoroth95/32/4165_2.png) [@BrunoRoth95](https://forum.rasa.com/u/BrunoRoth95)\
**Post date:** [July 23, 2019, 2:29pm UTC](https://forum.rasa.com/t/not-able-to-call-custom-actions/13394/3 "2019-07-23T14:29:29Z")

</div>

Hi Vaishnavi,

There are some things missing in your files. You need to create an action to be executed after the intent is predicted. In your actions.py file, you should have something like `return "action_location"` instead of `return "utter_ask_location"`. utter\_(smth) is usually used as the bot responses. This `action_location` needs to be also included in the domain.yml.

In your stories file you need to add all the possible paths, like:

> ```
> ## happy path action_location
> * inform
> - action_location
> 
> ```

You are also missing the most important thing for the NLU to work, which is the input examples in your nlu.md file. You need to add data to all your intents.

```
## intent:inform
- can you tell me the weather?
- please inform me the weather
- can you please tell me the weather in [Bengaluru](location)
- can you give me the temperature in [Bengaluru](location)
- please, i need the temperature in [Bengaluru](location)
- whats the temperature in [Bengaluru](location)

```

Don’t forget to include in your actions endpoint url in endpoints.yml and run the server with `rasa run actions`

You can find all these informations in the [docs](https://rasa.com/docs/rasa/).

---

<div class="post-metadata">

**Author:** ![123v](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/123v/32/4961_2.png) [@123v](https://forum.rasa.com/u/123v)\
**Post date:** [July 23, 2019, 3:38pm UTC](https://forum.rasa.com/t/not-able-to-call-custom-actions/13394/4 "2019-07-23T15:38:59Z")

</div>

Thanks @imLew and @BrunoRoth95 … it’s working now. I was not doing anything in nlu.md file… I’ve added the data and now its working.
