How to implement Bayesian variational inference of arbitrary functions like "blackbox"?

Can we customize the likelihood function and gradient function of ADVI?