How to integrate Rasa with an optimization algorithm?

I am new to RASA. I want to join Rasa with an optimization algorithm to change the parameters. However, I am a bit confused about where to start.