Accessing UDF through chronograf

How can the Machine learning/forecasting algorithms defined through udf functions be implemented in the alerting rule in chronograf?

@Arpan_Paul UDFs are not currently supported in the UI. Those rules need to be defined using the Kapacitor API.