There numerous tools that are used for instance AI, Wit.ai, DialogFlow, Node JS, ManyChat, Recast.Ai, ChatFuel, etc.