How to pass slots to Custom Action


    slot{"http_action_config": "get_intent5"}

I need to get the slot value from story to custom action based on value certain API will be invoked but when I try to access slot in custom i get None

If the slot value is None that’s because it’s not being set. The story here is just providing a training example where the slot has already been set rather than specifying that the slot should be set to get_intent5 whenever the intent is detected.

If you want to set the slot based on an intent, you can do that using a form and filling the slot from_intent. (It can be a very short form.) Or, since you have a custom action, you can skip using a slot at all and instead just get the last intent directly from the tracker. (This is what I would recommend personally.)