Hi
I am not able to catch slot values in my custom action I have made a custom action that returns a slot set of the clinks ie. links that are correspoding to colors like red blue or black The clinks is a list of dict.Here is my run method
def run(self, dispatcher, tracker, domain):
clinks = [
{"color": "red","link":"https://www.amazon.com/s?k=red+shirts&ref=nb_sb_noss_2"},
{"color": "blue", "link": "https://www.amazon.com/s?k=blue+shirts&ref=nb_sb_noss"},
{"color":"black","link":"https://www.amazon.com/s?k=black+shirts&ref=nb_sb_noss"}
]
color = tracker.get_slot("color")
print(color)
link = [c["link"] for c in clinks if c["color"] == color]
print(link)
dispatcher.utter_message("{}".format(link))
return [SlotSet("clinks", clinks)]
I am using supervised empbedding pipeline But the output of server shows that value of slot is None
How to solve this problem
Could you please share the story that you are training on and going through? Also, what does your domain.yml file look like? Are color and clinks in your list of slots?
P.S.: You can write code blocks in the forum like this:
```
your codeā¦
```