Using enterprise intelligent automation for cognitive tasks