To show how ILEX supports opportunistic text generation, we will here outline the parts of the system and the operation of its text planning. Basically the ILEX task agenda at each point consists of the facts that the system knows which have not yet been conveyed to the user. Each of these `tasks' has an opportunity value (its educational value, assumed interest to the reader and contribution to coherence). At each point of the discourse, we `perform tasks' (include facts) which provide the highest opportunity gain.