# Greedy intent?

**URL:** <https://forum.rasa.com/t/greedy-intent/21014>\
**Category:** Rasa Open Source\
**Created:** [November 7, 2019, 6:22pm UTC](https://forum.rasa.com/t/greedy-intent/21014 "2019-11-07T18:22:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sten](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@sten](https://forum.rasa.com/u/sten)\
**Post date:** [November 7, 2019, 6:22pm UTC](https://forum.rasa.com/t/greedy-intent/21014/1 "2019-11-07T18:22:36Z")

</div>

Lets say I have the following story :

```
## story1
* something
 - ask_question
* answer
 - process_answer

```

Now the problem is that the answer could not be captured by intents as they are … it could be anything.

/but I’m OK with not been able to get out of it going directly to “process\_answer” after that i.e. no chitchat or other branching i.e. for the time being no other way out of the loop/  
Said otherwise :

```
  if ask_question then 
     answer followed by process_answer : score=1.0

```

How can I make it so whatever happens in “answer” is saved in a slot and available to “process\_answer” ?

---

<div class="post-metadata">

**Author:** ![tonysinghmss](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tonysinghmss/32/5846_2.png) [@tonysinghmss](https://forum.rasa.com/u/tonysinghmss)\
**Post date:** [November 7, 2019, 6:36pm UTC](https://forum.rasa.com/t/greedy-intent/21014/2 "2019-11-07T18:36:12Z")

</div>

Hello @sten ,

It seems you can use a FormAction here to capture the answer. Once the answer is captured, you can call process\_action.

> ```
> # story1
> * something
> - ask_question
> - answer_formaction
> - form{"name": "answer_formaction"}
> - form{"name": "null"}
> - process_answer
> 
> ```

---

<div class="post-metadata">

**Author:** ![sten](https://avatars.discourse-cdn.com/v4/letter/s/73ab20/32.png) [@sten](https://forum.rasa.com/u/sten)\
**Post date:** [November 7, 2019, 6:39pm UTC](https://forum.rasa.com/t/greedy-intent/21014/3 "2019-11-07T18:39:20Z")

</div>

hmm … thanks will try it … i just happen to be reading the tutorial on FORMS 😉

---

<div class="post-metadata">

**Author:** ![tonysinghmss](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tonysinghmss/32/5846_2.png) [@tonysinghmss](https://forum.rasa.com/u/tonysinghmss)\
**Post date:** [November 7, 2019, 6:42pm UTC](https://forum.rasa.com/t/greedy-intent/21014/4 "2019-11-07T18:42:07Z")

</div>

If this helps, mark it as solution. A solved issue helps other newcomers to discern the posts easily.
