# Is it possible to slet a slot in one action then call it with tracker and use it in another action?

**URL:** <https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488>\
**Category:** \[Deprecated\] Rasa X Community Edition\
**Created:** [July 7, 2021, 3:39pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488 "2021-07-07T15:39:59Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahma](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rahma](https://forum.rasa.com/u/rahma)\
**Post date:** [July 7, 2021, 3:39pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/1 "2021-07-07T15:39:59Z")

</div>

hi ! so i set a slot “type” in one action and it’s submitted perfectly, now when i’m calling it in another actions, it’s giving me back the last slot the i set ! ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/b/b353c8f98729871a812ebaf2419be5452268358a.png) ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/a/a9d204035ce8602681adeaa06211d6c21583e176.png)can somebody help me ?

---

<div class="post-metadata">

**Author:** ![rahma](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rahma](https://forum.rasa.com/u/rahma)\
**Post date:** [July 7, 2021, 3:49pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/2 "2021-07-07T15:49:14Z")

</div>

@nik202 can u plz help me again? thank u

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 7, 2021, 4:08pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/3 "2021-07-07T16:08:18Z")

</div>

@rahma Sure! You need to reset as blank all slots for other query!

---

<div class="post-metadata">

**Author:** ![rahma](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rahma](https://forum.rasa.com/u/rahma)\
**Post date:** [July 7, 2021, 4:15pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/4 "2021-07-07T16:15:23Z")

</div>

> [@nik202](#):
>
> `from rasa_sdk.events import AllSlotsReset`

@nik202 in fact, i’m not going to ask the user to enter it again, i want to call the slot already entered by the user , i asked the user to choose a type, either “auction” or “call for tender” then asked him to choose a location, i made the action where i submitted those two slots and they are well set . now after they have been set , i need to use them in another action, that’s why i’m calling them with tracker, the slot “location” is called with right value , but the slot “type” is called with the value of the slot “location” !!

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 7, 2021, 4:17pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/5 "2021-07-07T16:17:50Z")

</div>

@rahma need to see **action.py** file then.

What I understand, you need to take two value of input for your slot and then give those values to other slots? For other process. Right

---

<div class="post-metadata">

**Author:** ![rahma](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rahma](https://forum.rasa.com/u/rahma)\
**Post date:** [July 7, 2021, 4:48pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/6 "2021-07-07T16:48:39Z")

</div>

@nik202 you should know it was working fine yesterday, i just wanted to add one another slot and it stopped performing as before, even when i deleted the new slot. this is my action,

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/8/8a650d7665c88e6c5e1b93c71df48e7f9f924520.png)this is the rules, ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/a/a9728f6c2fb83271e956234998525ec693c1a0ab.png)during the conversation ,slots are well set and they are returned correctly, the issue is when i want to reuse them in “action\_search” , ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/3/3a5c5c49bfe13eadcef036c06a34f81414d223de.png)the first slot “types” is supposed to return “call for tender” as it does through the conversation. hope this clearifies things for you haha

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 7, 2021, 5:05pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/7 "2021-07-07T17:05:49Z")

</div>

@rahma Honestly, I’m trying to see what is going on but, I guess its still not the complete code. Even your output screen, I can’t find your choice is: etc etc. I think you need to check the code again, try print the values at ever steps in action file and see what value it is returning, or even check the story/rules. Hope you mention all the actions in domain.yml files?

---

<div class="post-metadata">

**Author:** ![rahma](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rahma](https://forum.rasa.com/u/rahma)\
**Post date:** [July 7, 2021, 6:47pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/8 "2021-07-07T18:47:08Z")

</div>

@nik202 yes it’s just missing two actions, the ones setting the type and location slots ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/9/901dfbbdb9b1ed6c8e623f36d2cb89ae4a469691.png) ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/3/3d5c8cb7a74af6c49a4f1ecd8b69bf9ef7ab4add.png)

---

<div class="post-metadata">

**Author:** ![rahma](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rahma](https://forum.rasa.com/u/rahma)\
**Post date:** [July 7, 2021, 6:50pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/9 "2021-07-07T18:50:12Z")

</div>

@nik202 the issue is that the slots are well fit and submitted but when i call them in another process ,the action “action\_search” both are returning the same value, which is the value of the location slot

---

<div class="post-metadata">

**Author:** ![rahma](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rahma](https://forum.rasa.com/u/rahma)\
**Post date:** [July 7, 2021, 6:51pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/10 "2021-07-07T18:51:04Z")

</div>

@nik202 when i print the values at each step it returns the right values, then when i call it in other action it does not

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 7, 2021, 6:59pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/11 "2021-07-07T18:59:20Z")

</div>

@rahma share action.py and stories.yml please.

---

<div class="post-metadata">

**Author:** ![rahma](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rahma](https://forum.rasa.com/u/rahma)\
**Post date:** [July 7, 2021, 8:22pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/12 "2021-07-07T20:22:06Z")

</div>

@nik202 there it is [actions.py](https://forum.rasa.com/uploads/short-url/aK8QCb0O3bOeJp9K5lS70RhQSS2.py) (5.2 KB) [rules.yml](https://forum.rasa.com/uploads/short-url/yOyutoxgIV5H40HhyYKjecsWgyM.yml) (1.8 KB)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 7, 2021, 8:30pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/14 "2021-07-07T20:30:32Z")

</div>

@rahma Where this come?

on line 125?

```
if(types=="auction"):
                    typ="Vente aux enchères"
                elif(types== "call for tender"):
                    typ="Appel d'offre"
                print(typ)

```

Why only type where is location in actions\_search?

---

<div class="post-metadata">

**Author:** ![rahma](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rahma](https://forum.rasa.com/u/rahma)\
**Post date:** [July 7, 2021, 8:36pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/15 "2021-07-07T20:36:13Z")

</div>

@nik202 yea because the type in my data is in french so i translated in, there is a condition about both right after that , i tried the action\_search as a python function where i set manually the types and locations and it workes perfectly so there is nothing wrong about it , the issue is with rasa slots as much as i think

---

<div class="post-metadata">

**Author:** ![rahma](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rahma](https://forum.rasa.com/u/rahma)\
**Post date:** [July 7, 2021, 8:46pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/17 "2021-07-07T20:46:21Z")

</div>

@nik202 , what do u mean ?

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [July 7, 2021, 8:54pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/19 "2021-07-07T20:54:29Z")

</div>

@rahma If you code is perfect, delete the old models, re-train again and do let me know again.@rahma If still the issue, and you believe your code is perfect then check the rule. submit and action\_search one.

---

<div class="post-metadata">

**Author:** ![rahma](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rahma](https://forum.rasa.com/u/rahma)\
**Post date:** [July 7, 2021, 8:57pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/20 "2021-07-07T20:57:57Z")

</div>

@nik202 i’m okey with meet, i would like to have some help ! thank u

---

<div class="post-metadata">

**Author:** ![rahma](https://avatars.discourse-cdn.com/v4/letter/r/ee59a6/32.png) [@rahma](https://forum.rasa.com/u/rahma)\
**Post date:** [July 7, 2021, 11:13pm UTC](https://forum.rasa.com/t/is-it-possible-to-slet-a-slot-in-one-action-then-call-it-with-tracker-and-use-it-in-another-action/45488/22 "2021-07-07T23:13:43Z")

</div>

@nik202 [actions.py](https://forum.rasa.com/uploads/short-url/gcpogyErLqENxw3fFdxfoyRr4Vm.py) (10.6 KB)
