Building an AI that chats with you before you sleep, ask about your day, and writes your diaries for you.