Organisations are embracing artificial intelligence (AI) and machine learning, but they need to be careful with what is still in many ways a nascent technology. Executed well, it can deliver competitive advantage; do it badly and it can cost credibility as well as money. Ian Campbell reports