building an artificial intelligence application