Despite my efforts, I have yet to find a satisfactory solution.
I am in the process of creating an agent on Dialogflow. This agent will be embedded on a webpage, not as part of Facebook Messenger or Google Assistant. The purpose of this agent is to guide users to specific pages on the website based on their inquiries.
I would like guidance on what code to use in my inline editor to create an intent response that automatically opens a URL in a new browser window/tab.
The desired outcome is illustrated below:
User: "Hi, I would like the list of red bikes that are available in your shop"
Bot reply: "OK, here you have the list of all the red bikes we have in stock".
-> Then the bot open the page with the red bikes in a new tab/window.
I believe this portion of the code should be placed within the following block, but as a beginner, I am unsure if my approach is correct:
function userNeed(agent) {
// code that would open the URL
}
intentMap.set('User Need', userNeed);
If implementing such an action is not feasible, is there a way to include the URL as a clickable link in the bot's response?
I hope this explanation is clear. Thank you very much.