Not able to catch slot color values in rasa

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

Hi @rohanaj, welcome to the forum!

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ā€¦ ```

yes i have clinks color and links in the list of slots domain.yml

slots:
  clinks:
    type: list
  color:
    type: text
  link:
    type: text
  

intents:
 - greet
 - thankyou
 - goodbye
 - get_links
 

entities:
 - shirts

templates:
  utter_greet:
    - text: "hey there!"
  utter_goodbye:
    - text: "goodbye :("
  utter_default:
    - text: "default message"
  utter_youarewelcome:
    - text: "you're very welcome"
  utter_iamabot:
    - text: "I am a bot, powered by Rasa."

actions:
  - utter_default
  - utter_greet
  - utter_goodbye
  - utter_youarewelcome
  - action_get_links

and in my stories.yml i have

## greet
* greet
    - utter_greet

## happy
* thankyou
    - utter_youarewelcome

## goodbye
* goodbye
    - utter_goodbye

## link_get
* color
    - action_get_links
    - slot{"clinks":[{"color":"red","link":"https://www.amazon.com/s?k=red+shirts&ref=nb_sb_noss_2"}]}

I by mistake wrote spacy i am using language: en


policies:
  - name: KerasPolicy
    epochs: 200
    batch_size: 50
    max_training_samples: 300
  - name: FallbackPolicy
  - name: MemoizationPolicy
  - name: MappingPolicy

Your story file contains the intent color, which is not in your domain. It should be get_links instead of color.

I am still getting no slots is it because i am using supervised empbedding pipeline