我们开始使用Twilio可编程语音作为预约提示,我们使用的是MachineDetection参数设置为"DetectMessageEnd“的AMD,这样我们就可以在应答机上留下语音邮件消息。我们还在Gather
中使用TwiML标记来获取用户输入(Ex )。“按1确认你的预约”)。
然而,我们注意到,如果呼叫转到语音信箱,Gather
提示仍然会被触发。我们希望能够防止这种情况发生,这样收件人就不会在他们的语音邮件中听到提示。
这有可能吗?下面是我们当前TwiML的一个示例:
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say voice="Polly.Joanna">
<prosody rate="95%">Hello, you have an appointment tomorrow at 10:30AM</prosody>
</Say>
<Pause length="1" />
<Gather action="https://example.com" timeout="5">
<Say voice="Polly.Joanna">
<prosody rate="95%">Press 1 to confirm your appointment, Press 2 to repeat the message</prosody>
</Say>
</Gather>
</Response>
发布于 2022-03-01 10:41:36
AMD AnsweredBy参数将用于确定要返回的TwiML。
如果它是一台机器,您将不会返回包含此集合的TwiML (因为它是一台机器,您将等待DetectMessageEnd事件删除公告)。如果它是一个人(AnsweredBy=human),您可以使用该集合来获得他们对预约的可用性的响应。
https://stackoverflow.com/questions/71308643
复制相似问题