Hi Team,
The clients are running the FB campigain…
Use case:- If the user responds to fb campigain that should redirect to WA then we should show the Message along with 2 QR button mention below.
text:- “Do you want to connect with live agent”
QR button:- Yes and
we create the journey to send the message
return new Promise(resolve => {
// Your logic goes here
if (app.source == "whatsapp") {
app.whatsapp.sendQuickReplies({
title: "Do you want to connect with live agent",
options: [{
title: "YES",
text: "yes"
}, {
title: "NO",
text: "no"
}]
})
}
resolve();
});
Also in the main function we used the call the event
if (app.data && app.data.event && app.data.event.code && app.data.event.code === 'whatsapp-referral'){
return app.triggerIntent("wa-redirect")
}
please help is this correct event and how we can move further.