A Network-based End-to-End Trainable Task-oriented Dialogue System