Giter Site home page Giter Site logo

Comments (3)

johnfischelli avatar johnfischelli commented on August 24, 2024 1

Sure - here is an example of a workflow I maintain purely for demonstration purposes in my personal Twilio account handling both direct to agent and queue transfer scenarios.

  "task_routing": {
    "filters": [
      {
        "filter_friendly_name": "Find Specific Agent",
        "expression": "transferTargetType == 'worker'",
        "targets": [
          {
            "queue": "WQ...",
            "expression": "worker.sid == task.targetSid"
          }
        ]
      },
      {
        "filter_friendly_name": "Everyone Queue",
        "expression": "transferTargetType == 'queue' && targetSid == 'WQ...'",
        "targets": [
          {
            "queue": "WQ..."
          }
        ]
      },
      {
        "filter_friendly_name": "Sales Queue",
        "expression": "transferTargetType == 'queue' && targetSid == 'WQ...'",
        "targets": [
          {
            "queue": "WQ..."
          }
        ]
      },
      {
        "filter_friendly_name": "Support Queue",
        "expression": "transferTargetType == 'queue' && targetSid == 'WQ...'",
        "targets": [
          {
            "queue": "WQ..."
          }
        ]
      },
      {
        "filter_friendly_name": "Gold Support Queue",
        "expression": "transferTargetType == 'queue' && targetSid == 'WQ...'",
        "targets": [
          {
            "queue": "WQ..."
          }
        ]
      }
    ],
    "default_filter": {
      "queue": "WQ..."
    }
  }
}```

from plugin-chat-sms-transfer.

johnfischelli avatar johnfischelli commented on August 24, 2024

Hey @sbaar, to my knowledge you're absolutely right - when transferring to a queue you unfortunately have to setup a filter in your workflow for each queue. It's due to how the Workflow's work.

Flex's voice transfers actually route tasks/calls to agents without running them through the workflow again, in the future I expect native chat transfers to work similarly, but until then if you want to transfer chats to queues, you'll need a filter for each.

I'm not sure when you initially installed the plugin but I was made aware of an issue (#21) that could affect you yesterday and was fixed yesterday in #20

There were changes both to the plugin itself and the provided Twilio Serverless Function that actually performs the transfer, so be sure to update both!

from plugin-chat-sms-transfer.

jonathan-contracts avatar jonathan-contracts commented on August 24, 2024

Yeah also had to do this and expected their to be a better way of doing it. In the end we decided not to use Queues for chat, but good to know this is the only way to do it if we do want to put it back in! @johnfischelli would it be possible for you to provide your task router rules for comparison? I think I've done it in a similar way to @sbaar , but always good to have a reference to make sure nothing is being missed! :)

from plugin-chat-sms-transfer.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.