I want to run my first, simple chatbot on my website. So I chose that stack:
- Dialogflow (ML, AI etc.)
- Dialogflow Messeger (frontend communicator app)
- Firebase Functions with Dialogflow Fulfillment Library (backend)
I noticed that Dialogflow Fulfillment Library is no longer maintained. And for example quick replies (rich message) works on Dialogflow Console, but doesn’t work on Dialogflow Messenger.
My code (fulfillment webhook):
const functions = require('firebase-functions');
const { WebhookClient } = require('dialogflow-fulfillment');
const { Suggestion } = require('dialogflow-fulfillment');
exports.dialogflowFirebaseFulfillment = functions.https.onRequest((request, response) => {
const agent = new WebhookClient({ request, response });
let intentMap = new Map();
intentMap.set('richmessage', richMessageButtonHandler);
function richMessageButtonHandler(agent) {
agent.add('Select one');
agent.add(new Suggestion('Quick Reply'));
agent.add(new Suggestion('Suggestion'));
}
agent.handleRequest(intentMap);
});
Question: I need simple chatbot for website with quick replies (suggestions). Can I achieve that with these technologies (without Facebook Messenger or other external service)? Is any successor? Some alternatives?
Thanks in advance!