# Why is my FollowupAction not working?

**URL:** <https://forum.rasa.com/t/why-is-my-followupaction-not-working/43721>\
**Category:** Rasa Open Source\
**Created:** [May 18, 2021, 8:11pm UTC](https://forum.rasa.com/t/why-is-my-followupaction-not-working/43721 "2021-05-18T20:11:35Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![john.mcquaid](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/john.mcquaid/32/14508_2.png) [@john.mcquaid](https://forum.rasa.com/u/john.mcquaid)\
**Post date:** [May 18, 2021, 8:11pm UTC](https://forum.rasa.com/t/why-is-my-followupaction-not-working/43721/1 "2021-05-18T20:11:35Z")

</div>

I have a very simple outcome that I am trying to achieve. If a user asks a question that meets one of two conditions then it responds accordingly. If {condition A} do {response A} else if {condition B} do {response B, w/ Buttons}. Since entities are not usable, the story cannot be set up to “figure out” which path to go so I need to programmatically force it; otherwise the buttons will be disabled since a second action (not “action\_listen”) is immediately executed after the custom action.

Here’s a snippet of the code:

 ![Untitled4](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/1/190dcb16fa82d1bb35083322ad05846dd6483af8.png)

From what I have seen from other similar threads, this **SHOULD** be correct. Obviously, it isn’t since it does not work.

---

<div class="post-metadata">

**Author:** ![kalkbrennerei](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kalkbrennerei/32/11609_2.png) [@kalkbrennerei](https://forum.rasa.com/u/kalkbrennerei)\
**Post date:** [May 19, 2021, 9:38am UTC](https://forum.rasa.com/t/why-is-my-followupaction-not-working/43721/2 "2021-05-19T09:38:37Z")

</div>

Hi! Can you clarify, what exactly doesn’t work for you? Is the button disabled? Can you also link the thread you mentioned?

---

<div class="post-metadata">

**Author:** ![john.mcquaid](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/john.mcquaid/32/14508_2.png) [@john.mcquaid](https://forum.rasa.com/u/john.mcquaid)\
**Post date:** [May 19, 2021, 1:18pm UTC](https://forum.rasa.com/t/why-is-my-followupaction-not-working/43721/3 "2021-05-19T13:18:17Z")

</div>

Yes, Rasa X disables buttons when an action occurs after their initialization. There are a few different threads that I looked at, but here is one of them. [Getting action\_listen for followup\_action value even after adding a followup action - #14 by gonesbuyo](http://forum.rasa.com/t/getting-action-listen-for-followup-action-value-even-after-adding-a-followup-action/1087/14)

---

<div class="post-metadata">

**Author:** ![kalkbrennerei](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kalkbrennerei/32/11609_2.png) [@kalkbrennerei](https://forum.rasa.com/u/kalkbrennerei)\
**Post date:** [May 21, 2021, 8:13am UTC](https://forum.rasa.com/t/why-is-my-followupaction-not-working/43721/4 "2021-05-21T08:13:49Z")

</div>

Hi @john.mcquaid! Is there any code that comes after the code snippet that you posted? It shouldn’t be necessary at all to set a follow up action there.

---

<div class="post-metadata">

**Author:** ![john.mcquaid](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/john.mcquaid/32/14508_2.png) [@john.mcquaid](https://forum.rasa.com/u/john.mcquaid)\
**Post date:** [May 21, 2021, 2:38pm UTC](https://forum.rasa.com/t/why-is-my-followupaction-not-working/43721/5 "2021-05-21T14:38:49Z")

</div>

@kalkbrennerei Yes, there is more after the snippet. There are two options, so what you’re seeing is the end of an `if` catching statement. It is absolutely necessary if I need more than a static outcome.

---

<div class="post-metadata">

**Author:** ![kalkbrennerei](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/kalkbrennerei/32/11609_2.png) [@kalkbrennerei](https://forum.rasa.com/u/kalkbrennerei)\
**Post date:** [May 26, 2021, 7:24am UTC](https://forum.rasa.com/t/why-is-my-followupaction-not-working/43721/6 "2021-05-26T07:24:45Z")

</div>

Can you post a screenshot of the complete code (before and after your snippet above)?

I also think that it should work…

---

<div class="post-metadata">

**Author:** ![john.mcquaid](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/john.mcquaid/32/14508_2.png) [@john.mcquaid](https://forum.rasa.com/u/john.mcquaid)\
**Post date:** [May 26, 2021, 7:10pm UTC](https://forum.rasa.com/t/why-is-my-followupaction-not-working/43721/7 "2021-05-26T19:10:22Z")

</div>

Sure thing, this is most of that method:

 ![Untitled5](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/e315b3ae25ec6f7980832998cdd914de952c5943.png)

Normally, custom classes just allow the NLU stories to handle the conversation, but for this case I need the custom action to force the next actions. To my knowledge, there is absolutely no way the stories can predict if buttons were required and initialized to redirect the story as needed. All other occurrences of button initializing have singular outcomes so I never had a need to redirect stories based on custom action data calculations.
