我正在使用 twilio 函数(支持节点 js 的内置功能)进行 IVR 并在 zoho CRM 中记录详细信息,并希望



我正在使用twilio函数(在内置功能支持节点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: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);
};

第二功能(图书(

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);
};

如果在第一个功能中按 1,则重定向到"交通信息"功能和 2 个"共享路线服务"功能

我想跟踪此事件用户按下的键并登录zoho crm。 这可能吗?

Twilio开发者布道者在这里。

Twilio Functions运行Node.js看起来Zoho CRM有一个API和一个Node模块。我自己没有使用过它,但我想你可以在第二个函数中调用 Zoho API 来记录用户的响应。

相关内容

最新更新