How to use Machine Learning in Custom Actions

Good morning, everyone.

In my project I would like to use machine learning algorithms in custom chatbot actions. For example, if I wanted to ask my chatbot to define a new culinary recipe for me based on some recipes taken as input (training dataset), is it possible to do so? Or, for example, use Clustering algorithms for profiling certain objects, I would like to make my chatbot more “intelligent” in this respect.

Does anyone have any advice for me?

@victormarcel09 Yes, that is my intention. Or anyway to have my chatbot figure out from the training recipes how certain foods (for example) pair with others in order to create a new culinary recipe.

My question is really about whether the chatbot will be able to use Machine Learning algorithms to predict something, or population profiling (e.g. use algorithms like K-Means)