Skip to content

Instantly share code, notes, and snippets.

@ktoraskartwilio
Created September 10, 2015 05:08
Show Gist options
  • Save ktoraskartwilio/b94037bd515be22da994 to your computer and use it in GitHub Desktop.
Save ktoraskartwilio/b94037bd515be22da994 to your computer and use it in GitHub Desktop.
{
"task_routing":{
"filters":[
{
"friendly_name":"Gold Tickets",
"expression":"customer_value == 'Gold' AND type == 'ticket'",
"targets":[
{
"queue":"WQ0123456789abcdef0123456789abcdef",
"priority":"2"
}
]
},
{
"friendly_name":"Silver and Bronze Tickets",
"expression":"customer_value IN ['Silver', 'Bronze'] AND type == 'ticket'",
"targets":[
{
"queue":"WQabcdef0123456789abcdef0123456789",
"priority":"1",
"timeout":"300"
},
{
"queue":"WQabcdef01234567890123456789abcdef"
}
]
},
{
"friendly_name":"Leads",
"expression":"type == 'lead'",
"targets":[
{
"queue":"WQabcdef01234567890123456789abcdef",
"priority":"3"
}
]
}
],
"default_filter":{
"queue":"WQabcdef01234567890123456789abcdef"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment