I would like to implement a functionality where my character's speed slows down upon detecting a ray or trigger. I am not using root motion. How can I achieve this?
You can use the state system to have it change the acceleration/damping values when you enter the trigger. The docs have an explanation of the state system.