General Approach to Automatically Generating Need-based Assistance