The best way to keep xanthan gum from clumping is to incorporate it with another ingredient before adding. My number one way to easily add xanthan gum is by mixing it with olive oil. It easily dissolves with zero clumps. I use to whisk with water cold and warm and it would still be slightly clumpy.