# Execute certain action based on previous bot action

**URL:** <https://forum.rasa.com/t/execute-certain-action-based-on-previous-bot-action/5107>\
**Category:** Getting Started with Rasa\
**Created:** [February 12, 2019, 9:33am UTC](https://forum.rasa.com/t/execute-certain-action-based-on-previous-bot-action/5107 "2019-02-12T09:33:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgonzalez](https://avatars.discourse-cdn.com/v4/letter/l/fbc32d/32.png) [@lgonzalez](https://forum.rasa.com/u/lgonzalez)\
**Post date:** [February 12, 2019, 9:33am UTC](https://forum.rasa.com/t/execute-certain-action-based-on-previous-bot-action/5107/1 "2019-02-12T09:33:46Z")

</div>

Hi there,

I have the following scenario: when my bot asks the user certain questions, I want the user answer not to go through Rasa NLU, but to be saved in a slot (for example), and execute a custom action. The problem is that when the user responds, Rasa executes intent recognition and the dialogue follows a different course.

To make it better understood, I will give an example:

```
bot: "what do you want to search the internet?"

user: "what is the largest river in the world?"

bot: executes a custom action where it sends the query to a server.

```

I don’t matter what the user said, I just want to get the query to send it to a server. How can that be done with Rasa?

Thanks in advance 🙂
