04-06-2010 09:42 AM - edited 03-14-2019 05:32 AM
I have a main AA script and it calls another script when caller press option 6. When a caller presss 6 it is only transferring the call to the sub script. it does not return any values to the main script.
In this situation, is it better to use subflow or redirect step. i am think redirect step but just want to check with the user community.
thanks in advance.
04-06-2010 12:06 PM
Either will work. Here are a few thoughts to consider in no particular order:
If you were asking me as an individual my answer would be this: Is the code small enough and not reused elsewhere? If yes, then put it in the first script and avoid this topic all together. If it's reused in a bunch of places from multiple scripts and does not represent a large quantity of steps: use a subflow. Otherwise use Trigger Application if you're on a new enough version or Call Redirect if you're not.
04-06-2010 03:05 PM
Good summary Jon. And I will add these two in now particular order:
Subflows inherit the Triggering Contact by default, whereas a Triggered Application will need it passed in. This may not seem like a big deal, but storing the contact and changing every single step that references it can present confusion for casual administrators who makes changes.
i.e., This:
Play Prompt (--Triggering Contact--)
Menu (--Triggering Contact--)
Set Enterprise Call Info(--Triggering Contact--)
Becomes:
Play Prompt (contact_variable)
Menu (contact_variable)
Set Enterprise Call Info(contact_variable)
Subflows pass data back to the calling script, whereas a Triggered Application will need to store it, then have it retrieved by the calling script. i.e., Using session variables to store caller data.
04-06-2010 06:58 PM
One comment about redirects. They can play havoc with reporting. Make sure you think this part through if you want to use redirects.
Regards,
Geoff
10-09-2010 07:19 PM
How do you pass the Triggering Contact into an application triggered by the Trigger Application step? I like being able to debug modular code reactively without setting each module up with it's own JTAPI trigger as would be done for a Subflow Step.
01-28-2015 08:33 PM
Jonathon,
Just ran across this discussion and see it was 5 years ago, so wanted to get advice on similiar situation. I have inherited a contact center that has approx. 30 scripts each handling calls for different campaigns, each of these scripts has an option 8 for Spanish, which just sets a csq paramater that then is defined in each application. Now my client wants to trim down all those extra csq and have one Spanish csq. easy enough just change the parameter in each application but now they want some other on hold recordings for Spanish as well as after certain minutes redirect to another number.
All that said I believe I will create a Spanish script, would it be better to use a subflow in of the 30 scripts to this or put in a redirect to a trigger for this script? Or better off to keep the set csq= that is in script today and just modify each of the 30 with the extra criteria they are wanting? Appreciate any advice.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: