简体   繁体   English

Twilio Flex 语音邮件 Flex 任务分配工作流程

[英]Twilio Flex Voicemail Flex Task Assignment Workflow

Hello I have a workflow here It sends callers to a queue with a single worker.您好,我这里有一个工作流程它将呼叫者发送到一个带有单个工作人员的队列。 I want to implement voicemail and have followed the instructions here https://support.twilio.com/hc/en-us/articles/360021082934-Implementing-Voicemail-with-Twilio-Flex-TaskRouter-and-Insights我想实现语音邮件并按照此处的说明进行操作https://support.twilio.com/hc/en-us/articles/360021082934-Implementing-Voicemail-with-Insight-and-TaskRouter-

If I put the filter first in the workflow then it always goes to voicemail, if next then it never goes.如果我将过滤器放在工作流中的第一位,那么它总是会转到语音邮件,如果是下一个则永远不会。

How can I make it so that if calls are maybe reserved but not answered they go to the voicemail queue?我怎样才能做到这一点,如果呼叫可能被保留但没有应答,他们 go 到语音邮件队列?

{
  "task_routing": {
    "filters": [
      {
        "filter_friendly_name": "Voicemail ",
        "expression": "1==1",
        "targets": [
          {
            "queue": "theRealqueue",
            "timeout": 10
          },
          {
            "queue": "voicemail",
            "timeout": 10
          }
        ]
      }
    ],
    "default_filter": {
      "queue": "gfhfghgfhghfghgfhfghgfh"
    }
  }
}

There were 3 problems.有3个问题。 I decided to put in a, "skip_if": "workers.available == 0" On the first filter and it makes sense now as in the GUI, it is DO NOT SKIP as the default, so to my thinking that means what it says.我决定在第一个过滤器上添加一个“skip_if”:“workers.available == 0”,现在它在 GUI 中是有意义的,它是默认的 DO NOT SKIP,所以在我看来这意味着什么说。

And WOW it worked, I had earlier set a TASK RESERVATION TIMEOUT of 8 seconds but when I tried increasing this it never got to voicemail/never went to next step.哇,它起作用了,我之前设置了 8 秒的任务预订超时,但是当我尝试增加它时,它从来没有进入语音信箱/从来没有进入下一步。

I could only get it to work with that 8 second TASK RESERVATION TIMEOUT, not a larger value so then I looked in the Studio Flow, SEND TO FLEX had a timeout of 10 second, my bad.我只能让它与 8 秒的 TASK RESERVATION TIMEOUT 一起工作,而不是更大的值,所以我查看了 Studio Flow,SEND TO FLEX 有 10 秒的超时,我的错。 Increased and all good now.现在增加了,一切都很好。

The documentation/tutorial here is terrible, https://support.twilio.com/hc/en-us/articles/360021082934-Implementing-Voicemail-with-Twilio-Flex-TaskRouter-and-Insights这里的文档/教程很糟糕, https://support.twilio.com/hc/en-us/articles/360021082934-Implementing-Voicemail-with-Twilio-Flex-TaskRouter-and-Insight

  1. Select the default Assign to Anyone workflow, or the appropriate workflow if you have modified this. Select 默认的“分配给任何人”工作流程,或者如果您修改了相应的工作流程。

  2. Click Add a Filter.单击添加过滤器。 Name your Filter Voicemail (or something similarly identifiable), and then change the TIMEOUT to 30 seconds.命名您的过滤语音邮件(或类似可识别的名称),然后将 TIMEOUT 更改为 30 秒。 Click Add a Step when finished.完成后单击添加步骤。

  3. Click the QUEUE value, and then select the Voicemail queue you created in the previous section.单击 QUEUE 值,然后单击 select 您在上一节中创建的语音邮件队列。 Press Save when finished.完成后按保存。

That is all not so relevant here, it seems that the thing that controls the going to next step is the TASK RESERVATION TIMEOUT and that no step would be skipped/passed unless a "skip_if": is defined.这一切都不是那么相关,似乎控制下一步的事情是任务保留超时,除非定义了“skip_if”:否则不会跳过/通过任何步骤。 I would really love to get clarification on all this.我真的很想澄清这一切。 But the steps that I have done have provided a solution.但是我所做的步骤提供了解决方案。 I banged my head into walls for a few days here.我在这里撞了几天的头。

I believe that the timeout you have set for each of the targets counts as the time the task spends in that queue regardless of the target.我相信您为每个目标设置的超时都算作任务在该队列中花费的时间,而与目标无关。 In the case of the workflow you shared, when a task spends 10 seconds in theRealqueue and then times out, it also times out of the voicemail queue because that was also 10 seconds.在您共享的工作流的情况下,当任务在 Realqueue 中花费 10 秒然后超时时,它也会超时语音邮件队列,因为那也是 10 秒。

Try setting the voicemail queue target to a bigger timeout than theRealqueue.尝试将语音邮件队列目标设置为比 Realqueue 更大的超时。

        "targets": [
          {
            "queue": "theRealqueue",
            "timeout": 10
          },
          {
            "queue": "voicemail",
            "timeout": 20
          }
        ]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM