Custom action with slots and entities

hey there i am making a chatbot that recommend movies and i have a python code (i am using jupyter notebook) to do this

Untitled5.ipynb (9.1 KB) and this is the datatset for this code: The Movies Dataset | Kaggle

i want to add this code as a custom action in my rasa chatbot this is me trying to do this in the actions file: actions.py (3.9 KB)

here is the nlu, stories and domain files nlu.yml (3.3 KB) stories.yml (933 Bytes) domain.yml (1.5 KB)

i hope someone help me fast please thank you all.

Hi,

Can you please share the screenshot, and let us know the exact problem, you are facing. Don’t forget to check out our YouTube channel for demos and hands-on example on Rasa.

i want to work with the user input as text and then preprocess user unput so i can compare the input with the dataset using cosine similarity (like the code work)