我正在使用twilio函数(支持node js的内置功能)进行IVR,并在zoho crm中记录详细信息,希望记录调用者按下的键
我正在使用twilio函数(支持node js的内置功能)进行IVR,并在zoho crm中记录详细信息。因此,我想知道在zoho crm中,对于twilio IVR中的给定选项,调用方按下了什么键 第一功能我正在使用twilio函数(支持node js的内置功能)进行IVR,并在zoho crm中记录详细信息,希望记录调用者按下的键,twilio,Twilio,我正在使用twilio函数(支持node js的内置功能)进行IVR,并在zoho crm中记录详细信息。因此,我想知道在zoho crm中,对于twilio IVR中的给定选项,调用方按下了什么键 第一功能 exports.handler=function(context, event, callback){ const twiml=new Twilio.twiml.VoiceResponse(); twiml.gather({ numDigits:1, timeout
exports.handler=function(context, event, callback){
const twiml=new Twilio.twiml.VoiceResponse();
twiml.gather({
numDigits:1,
timeout:5,
hints:1,
action:'/Book-Ride'
}).say('Welcome to Softnet Relocations Transportation services.Press 1 for Transportation services information,Press 2 for ShareRoute services');
callback(null, twiml);
};
第二功能(书籍骑乘)
如果在第1个功能中按1,则会重定向到“交通信息”功能和2“共享路线服务”功能
我想跟踪这个事件,用户按下这个键,然后登录zoho crm。
这可能吗?这里是Twilio开发者福音传道者 Twilio函数运行Node.js,看起来是和。我自己没有使用过它,但我可以想象,您可以在第二个函数中调用ZohoAPI,以便记录用户的响应
exports.handler=function(context,event,callback){
const twiml=new Twilio.twiml.VoiceResponse();
switch(event.Digits){
case'1':
twiml.say('getting info');
twiml.redirect('transportation-info');
break;
case'2':
twiml.redirect('ShareRoute-services');
break;
default:twiml.say('Invalid input');
twiml.Reject();
break;
}
callback(null,twiml);
};