# Variable is assigned a value when it shouldn't be assigned

**URL:** <https://forum.rasa.com/t/variable-is-assigned-a-value-when-it-shouldnt-be-assigned/470>\
**Category:** Rasa Open Source\
**Created:** [August 15, 2018, 1:45pm UTC](https://forum.rasa.com/t/variable-is-assigned-a-value-when-it-shouldnt-be-assigned/470 "2018-08-15T13:45:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![msingh](https://avatars.discourse-cdn.com/v4/letter/m/db5fbb/32.png) [@msingh](https://forum.rasa.com/u/msingh)\
**Post date:** [August 15, 2018, 1:45pm UTC](https://forum.rasa.com/t/variable-is-assigned-a-value-when-it-shouldnt-be-assigned/470/1 "2018-08-15T13:45:04Z")

</div>

I have attached screenshot for nlu.md, domain.yml, stories.md. Also pasting below excerpt from nlu.md. Whole code is at [https://drive.google.com/file/d/1QDxlUo5cdI3gp2yN2F5LTKoHiMxml3tF/view?usp=sharing](https://drive.google.com/file/d/1QDxlUo5cdI3gp2yN2F5LTKoHiMxml3tF/view?usp=sharing)

## nlu.md

### intent:fruit\_intent

- i would like to have orange
- i would like to have apple
- i want fruits
- orange
- apple

### intent:welcome

- hi
- hey
- howdy

There are a few issues over here:

1. When i try to say ‘hi’, somehow rasa tries to assign slot ‘fruit’ with the value of ‘hi’. Since the variable is of type categorical, slot class doesn’t assign the value. Which makes me believe that intent classification logic isn’t working right. Since ‘hi’ should have matched to ‘welcome’ intent. I am using sklearn pipeline here.
2. I have used check points in stories.md so that I can define the flow. There is a followup question for ‘yes or no’. It is in the form of an intent. But hasn’t been defined directly in stories.md. It has only been defined as a child of a story using checkpointing. But even if I directly utter ‘yes’ at agent launch, the yes intent gets triggered.

## nlu.md

 ![md](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/1X/ba4f6f071a9dad879a6e5307731ed21c12b88666.png)

## domain.yml

 ![yml](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/1X/4ba8f2ee839cb460c0a2aa408d8cd50c11cbba45.png)

## stories.md

 ![md](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/1X/d426f639bbfec4a4c70e08e654ed7eb7fef6ddeb.png)

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [August 24, 2018, 1:29pm UTC](https://forum.rasa.com/t/variable-is-assigned-a-value-when-it-shouldnt-be-assigned/470/2 "2018-08-24T13:29:23Z")

</div>

what NLU version are you using?
