An idea for choosing between different routers on the same page
FeaturedNormally a router contains a set of queues, and this is good enough for most of our routing needs. The router will go through each of the queues to determine the best fit for the prospect.
What if we wanted to use different router settings, redirect, or queues depending on what a prospect chooses on a form? We could always disqualify them, and then on the thank you page show them another router to book a meeting or look at a webinar, but what if we want the options to show up right away, without having to disqualify?
This can be done with a simple if statement in the code:
<script src="https://js.na.chilipiper.com/marketing.js" type="text/javascript" async></script>
<script>
let chosenOption = document.getElementsByName("Region")[0].value;
if ( chosenOption === "United States"){
ChiliPiper.submit("domain", "NA_router");
} else {
ChiliPiper.submit("domain", "catch_all_router");
}
</script>
Now this is obviously a very broad example - you could again likely set this up with just a single router, but the benefit here is that you could potentially redirect to a region specific thank you page, route to different workspaces, or even route to different Chili Piper instances (if your org has multiple).
There's a lot you can do with the Concierge snippet, and this is one way of pre-routing to a router before the actual routing takes place!
Do any ideas come to mind on how you might utilize this or improve it?
-
Would this work if the routers were in different workspaces?
1 -
Ross Muelheim Yes! And for some clients, it can work even with separate instances/tenants of Chili Piper!
1
Please sign in to leave a comment.
Comments
2 comments