Can artificial intelligence be creative, can it create art? Just come to this, as only joined a few weeks ago. As a practising writer, I would like to add a couple of points. As has been argued here already, Artificial Intelligence is a programme, set up by human intelligence, so dependent on the initial criteria set by human agency. Computer programmes have been long used in writing and musical composition, particularly to generate randomness (in, for example, Harrison Birtwistle's music), but as such, are a tool, not a source of creativity.
The more important point is that a great deal of literature is already produced by second-level creativity even though written by humans, in being written to formulae - almost all 'literary fiction' published today is generated by Creative Writing course graduates following templates or simply recycling current tropes. To be be genuinely creative, literature has to be self-reflexive to the extent of undermining its own status as 'literature', pointing back to the world from a self-declared artifice. It's difficult to believe programmed computers would develop that self-reflexivity.