How do I invoke a custom action inside another custom action?

Suppose I have an if-else statement in my custom action and I need to invoke/call another custom action when a particular condition is met. How do I call this custom action inside my if statement?

Also, is there a way to call/invoke a custom action in the return statement of another custom action?

I use: return [FollowupAction(name=‘action_customaction’)]


I created a action which has two buttons. And If i type instead of selecting buttons and it is not related to the button(intent) or the text which is related to other action. I want to show that previous action with buttons. How can i do that?