Is there a way to end the conversation with code in Node.js? Following the documentation provided by google I've tried using agent.end()
but it doesn't work (i guess it did in the first version). I don't want to use set intent
as end of conversation option since I want the conversation to end only if the user is able to make an appointment.