Tried to access non existent slot 'location' in custom action using tracker.get_slot("location")

Hi,

I need your help.

I used tracker.get_slot(“location”) in my custom action, I got the error messages: Tried to access non existent slot ‘location’. Thanks.

You can try rasa interactive in terminal to test if your entities are put into the slots. Did you write out your slots and entities in domain file?

my entities in domain as follows: entities:

  • location
  • askdate
  • choice
  • stock

Do you have something like

slots:

  location:

       type: text
1 Like

no

Yep to set the slots, you need to key in this in your domain file also

I will try it as your advice.

It’s fine now. Thanks a lot @gcgloven

no problem~