Digital technology is transforming the nature of therapy - and AI is its next frontier.