# Not able to run multiple custom actions defined in rules.yml

**URL:** <https://forum.rasa.com/t/not-able-to-run-multiple-custom-actions-defined-in-rules-yml/52575>\
**Category:** Rasa Open Source\
**Created:** [April 13, 2022, 2:49pm UTC](https://forum.rasa.com/t/not-able-to-run-multiple-custom-actions-defined-in-rules-yml/52575 "2022-04-13T14:49:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![webdev-rohit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/webdev-rohit/32/18943_2.png) [@webdev-rohit](https://forum.rasa.com/u/webdev-rohit)\
**Post date:** [April 13, 2022, 2:49pm UTC](https://forum.rasa.com/t/not-able-to-run-multiple-custom-actions-defined-in-rules-yml/52575/1 "2022-04-13T14:49:53Z")

</div>

So, I have a form which takes two slots as requirements, fills them perfectly and executes the required custom action after it. However, I need another custom action to be running after this custom action and so I have defined it in my rules.yml as shown -

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/0/5/0551390589a503d8472e53150732ca1c13dbcd86.png)

The action- action\_ack\_user\_input runs perfectly fine, but the next custom action below it i.e. action\_slack\_workflow\_execution doesn’t run at all. In my prompt, rasa run actions --debug after the action\_ack\_user\_input finishes running, there is nothing else in the prompt, basically no other custom action runs after it.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/c/7/c7d33ed57b5443d178e5f6f2a8b333c220b60af8.png)

As shown, nothing is there after last line. Is this a glitch in rasa 2.x with rules.yml?

Note: I’m running rasa 2.8.15

@nik202 do you mind taking a look at this one?

---

<div class="post-metadata">

**Author:** ![itsjhonny](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/itsjhonny/32/20201_2.png) [@itsjhonny](https://forum.rasa.com/u/itsjhonny)\
**Post date:** [April 13, 2022, 4:12pm UTC](https://forum.rasa.com/t/not-able-to-run-multiple-custom-actions-defined-in-rules-yml/52575/2 "2022-04-13T16:12:41Z")

</div>

I created a init rasa project to test it and works fine using rasa 2.8.27

domain.yml

```auto
actions:
  - action_hello_1
  - action_hello_2

```

rules.yml

```auto

rules:

- rule: Say goodbye anytime the user says goodbye
  steps:
  - intent: goodbye
  - action: action_hello_1
  - action: action_hello_2

```

actions.py

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

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

class ActionHelloWorld(Action):

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

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

         dispatcher.utter_message(text="Hello action 1")
         return []
class ActionHelloWorld2(Action):

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

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

         dispatcher.utter_message(text="Hello action 2")
         return []

```

Maybe, you can use `FollowupAction('name_action')`

[fallowup](https://rasa.com/docs/action-server/2.x/events#followup)

---

<div class="post-metadata">

**Author:** ![webdev-rohit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/webdev-rohit/32/18943_2.png) [@webdev-rohit](https://forum.rasa.com/u/webdev-rohit)\
**Post date:** [April 13, 2022, 5:46pm UTC](https://forum.rasa.com/t/not-able-to-run-multiple-custom-actions-defined-in-rules-yml/52575/3 "2022-04-13T17:46:20Z")

</div>

@itsjhonny Actually, my case might be since I’m trying to run an action which dispatches responses in a slack app. Slack shows responses only if they show up within 3 secs of timeout. That might be the case, however, the action should still run in command prompt and give out atleast the print statements. Wonder, what’s going on with it.

---

<div class="post-metadata">

**Author:** ![itsjhonny](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/itsjhonny/32/20201_2.png) [@itsjhonny](https://forum.rasa.com/u/itsjhonny)\
**Post date:** [April 13, 2022, 5:50pm UTC](https://forum.rasa.com/t/not-able-to-run-multiple-custom-actions-defined-in-rules-yml/52575/4 "2022-04-13T17:50:07Z")

</div>

Wow, 3secs its too fast lol I never build bot to Slack app

Did you make little test using rasa shell?

---

<div class="post-metadata">

**Author:** ![webdev-rohit](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/webdev-rohit/32/18943_2.png) [@webdev-rohit](https://forum.rasa.com/u/webdev-rohit)\
**Post date:** [April 13, 2022, 6:16pm UTC](https://forum.rasa.com/t/not-able-to-run-multiple-custom-actions-defined-in-rules-yml/52575/5 "2022-04-13T18:16:19Z")

</div>

Yeah, my action has some interactive elements, so will try in some other channel. Maybe a socket channel and update here then!
