AI document recognition and automation