How to load libraries upon initialization of custom action server in RASA

I am creating a bot in RASA that calls custom actions using the custom action server. My custom action simply takes the user’s sentence, does some processing aided by a python library and returns a new sentence.

The issue I have is that upon calling the custom action, the libraries are being loaded in which takes up time and causes a timeout (which I can probably fix by increasing timeout, but is still not efficient).

Is there a way in RASA, upon starting the custom action server, to load all libraries at the start (prior to calling any actions)?

Many thanks!

@carlobee you can install all the related libraries and packages for your custom action code in your conda environment whilst using pip install -r requirement.txt (you need to mention the package name) , some time the API you calling, you need to check the response time and hits you are allowed.