Cognitive script