Creating a flask app from rasa - configuring action servers

I am trying to train and run my bot from a flask app. But I have no Idea how to configure the action server. rasa run actions working fine for now. But how do I integrate it with a flask app. Is there any way to start the action server from a python script? And who does the action endpoints interfere with the flask endpoints?