问题标签 [twilio-flex]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
twilio - 当没有工作人员可用时,如何确保隐藏 WebChat?
我没有在任何地方的文档中看到隐藏聊天的能力。
https://www.twilio.com/docs/flex/flex-webchat-basic-configuration
本质上,如果没有可用的代理,我希望聊天不会显示在网站上。这可能吗?
twilio - 使用 twilio flex,创建不同环境的推荐方法是什么?开发、产品等
我意识到我可以从字面上启动一个完全不同的 twilio flex 项目,并让一个项目构成分离。但是有没有推荐的更好的方法来实现这一点?
reactjs - 如何创建 Twilio Flex UI 主题的 hml 元素
我想在我的组件中添加按钮、表单元素等,但它们看起来没有样式。如何让他们使用主题样式进行渲染?我可以使用的按钮/下拉菜单/选项卡或 css 类的任何常见组件以及如何使用?
twilio - Twilio Flex - 转移聊天任务
我正在使用 Twilio Flex 构建一个内部支持工具。第一次部署将只处理来自 WebChat 小部件或 SMS 的聊天。我还没有找到将聊天任务转移到另一个可用代理的方法。我找到了语音的温暖转移,但没有找到聊天任务的方法。这可能吗?
twilio - Twilio Flex Webchat - 最终用户终止聊天的能力
我正在使用 Twilio Flex 构建一个内部支持工具。第一次部署将只处理来自 WebChat 小部件或 SMS 的聊天。对于 WebChat 小部件,我找不到任何允许最终用户终止聊天的内容。这可能吗?
twilio - 对于 Twilio Flex 中的语音任务,如何获取当前会议 ConferenceSid?
我可以看到,对于所有的语音交互,flex 在幕后使用它的语音 API 来创建呼叫者和工作人员之间的会议。选择并保留任务后如何获取创建的ConferenceSid?
我想做的只是在连接时获取价值。
我可以看到一个很长而且不是很漂亮的方法,即运行一个迭代每个会议的 twilio 函数,发出额外的请求来查看参与者。但这对我来说似乎很复杂。我可以在日志中看到正在打印会议友好
有没有人可以在这里提供帮助?
更新:下面的@philnash 准确地回答了这个问题。
twilio - After creating conference in Twilio Flex using voice API, how do I add hangup button call controls for each participant?
Ive successfully been able to create a custom directory popout component on the right of flex in order to transfer to an external number. Ive used the Voice API through flex manually, and after doing so I notice that flex automatically adds most of the necessary controls to both the TaskDetailsPanel > ParticipantCanvas and TaskDetailsButtons. The only part missing is the hangup buttons, in ParticipantCanvas. How can I create them myself whil still perhaps using the controls provided by default if possible?
Also, I noticed that the mute button for participant 2 works, except it simply mutes the wrong participant, participant 1. (1 being first caller that is added to conference) I don't necessarily need the 'toggle' feature that the native flex has for warm transfer. I just the ability to mute, and remove participant(s) to start.
Here is the link for what its worth to the warm-transfer that was built into flex as of v1.11
https://www.twilio.com/docs/flex/warm-transfer-end-user-guide
I will eventually use this native transfer feature, but right now I need to transfer to external numbers only so I can roll out incrementally.
One approach I think might work is to listen for changes to voice task attributes, specifically the
How can I watch for task attribute changes and respond accordingly?
I see I can invoke 'KickParticipant' as described here.
https://www.twilio.com/docs/flex/actions-framework
Just need to figure out how to add UI controls which have references to each participant other than myself (since there are 3 participants technically). Hopefully this is possible within the existing TaskDetailsPanel so that I dont have to completely rewrite both TaskDetailsPanel and perhaps TaskDetailsButtons.
UPDATE: I have been able to successfully create a twilio function which kicks the participant. Ill update when I have a working version. Still need to figure out how to add kick buttons for each participant since there can be more than 1?