Automatizing two creative functions for advertising