The flow is like this.
After you have created, trained and published your utterances in your Luis application, get the endpoint URL and from your program make an HTTP request to this api endpoint with the utterance appended to it at the end.
This will return the detected intent, its score and the entities present with the positions.
Based on the intent and entities received you can construct your responses.
If you need premade responses I suggest you use chatbot builders like
- Dialogflow
- Microsoft bot framework
- Alexa Skill kit
Hope this helps
Edit:
The code for getting the intent, as you have asked for in the comments
let result: any = await request({
"method": "GET",
"uri": url,//Your API endpoint with the utternce appended
"json": true,
"headers": {
"User-Agent": "demo get"
}
}).then(function (data) {
console.log(data);
});