A knowledge-based communication framework