Learning a few standard pieces or riffs that can be easily improvised can be good preparation. It is also useful to be prepared to listen and interact with other musicians in order to be able to react to their playing. Openness and flexibility are also important aspects.