A vector field is a relation of a vector and a point in space. So if you have a function f it assigns every point in space a vector. If you have a scalar function F and if you take the gradient of it and it turns out to be another vector field f then you call F a potential field for f. If youre able to do this then f is always a conservative field.