That's great news! Hopefully that covers everything then. Let me know if you need anything else.
Original Message:
Sent: 04-19-2024 06:38
From: Charis Sideridis
Subject: Invoke URL when dialing contact in preview campaign
Thanks Steven, the try/on error now works. I had to play round with the on error part.
------------------------------
Charis Sideridis
INTRACOM SINGLE MEMBER S.A. TELECOM SOLUTIONS.
Original Message:
Sent: 04-17-2024 07:24
From: Steven Busse
Subject: Invoke URL when dialing contact in preview campaign
Yeah anything that has a timed delay is not going to work ideally. Add Change Pages endlessly into the mix and I'm sure it'll end up running out of resources eventually. I am intrigued by why Try Error is not working for you. If you'd like to test a few more things, you can keep your boolean value default to False, then set some text boxes on a page based on new string variables (saying whatever you want, just make 2 and have them be distinct).
Then:
- Try
- If boolean = True
- Update String Variable 1 to anything else
- On Error
- If boolean = False
- Update String Variable 2 to anything else
- Update boolean to True
- Call URL
Mess with something to this effect and see if you can pinpoint why the Try Error may or may not be working.
------------------------------
Steven Busse
Vice President, Lead Business Analyst
M&T Bank
Original Message:
Sent: 04-17-2024 03:11
From: Charis Sideridis
Subject: Invoke URL when dialing contact in preview campaign
OK so it turns out that the try/on error approach is not doing anything! Or at least the logic in my situation needs further consideration. The only solution I found, was to create 2 if/else custom actions that were loaded to 2 script pages and each action would simply change the page in the end of the action:
Home Page and Dial Page are the exact same.
Home Page loaded custom action:
- Delay 3 seconds
- if boolean=false
- if Scripter.Interaction State = Connecting
- Then Set boolean=true
- Scripter.Open URL
- Else change Page to Dial Page
Dial Page loaded custom action:
- Delay 3 sconds
- if boolean=false
- if Scripter.Interaction State = Connecting
- Then Set boolean=true
- Scripter.Open URL
- Else change Page to Home Page
This worked but I know it is not ideal. The script keeps changing pages even though it is not visible at all and I do not know what could this cause in matters of performance. I experienced a memory issue during one of my test calls (had to refresh the page).
------------------------------
Charis Sideridis
INTRACOM SINGLE MEMBER S.A. TELECOM SOLUTIONS.
Original Message:
Sent: 04-16-2024 08:19
From: Steven Busse
Subject: Invoke URL when dialing contact in preview campaign
Good Morning Charis -
Disappointing! Let's try a few more things. First, in addition to logging the boolean (which should theoretically stay False), add some text values to follow along with {{Scripter.Interaction State}} and {{Scripter.Interaction Type}}.
The following Interaction States will be labeled with their respective strings:
- While "Previewing" a call, the {{Interaction State}} will be "Connected". The {{Interaction Type}} will be "Callback".
- Once you click "Begin Dial", the {{Interaction State}} changes to "Connecting" and the {{Interaction Type}} changes to "Call".
- If the customer/person accepting the call answers the call, the {{Interaction State}} changes to "Connected", and the {{Interaction Type}} remains "Call".
Knowing these three facts, it's important to account for them in our script. Add those attributes as text fields, and see if they change in the same manner that I am reporting. If not, you may have to account for the specific names you see. You may also have to add an extra layer that says something to the effect of:
- Try If {{Scripter.Interaction Status}} Equals (Ignoring Case) Connecting
- Do the stuff we talked about above
- On Error
- Try If {{Scripter.Interaction Status}} Equals (Ignoring Case) Connected
- If {{Scripter.Interaction Type}} Equals (Ignoring Case) Call
- On Error
This way you account for not only the "Connecting" Status, which should happen upon dialing (maybe yours is called Dialing?), but also account for what happens if the customer answers before it loops back (Status: Connected / Type: Call).
Sorry this is such a mess! Hopefully you're able to come up with a solution. Let me know if I can help in any other way.
------------------------------
Steven Busse
Vice President, Lead Business Analyst
M&T Bank
Original Message:
Sent: 04-16-2024 05:00
From: Charis Sideridis
Subject: Invoke URL when dialing contact in preview campaign
Hi Steven,
Tried your suggestion but unfortunately it didn't work. I did numerous tests, worked with delays, removed boolean variable, etc and I can only assume that the script cannot handle the interaction state variable. I added the boolean variable as text in order to monitor if it changes values, in order to have some kind of "logging" during my tests. No changes whatsoever.
I am now more confused. Your suggestion should work, it is pretty straightforward, yet the behavior of the script states that it cannot handle the interaction state at all.
------------------------------
Charis Sideridis
INTRACOM SINGLE MEMBER S.A. TELECOM SOLUTIONS.
Original Message:
Sent: 04-15-2024 12:07
From: Steven Busse
Subject: Invoke URL when dialing contact in preview campaign
No problem! Curious how it turns out, so let me know. The set / check for boolean is a good trick in situations where you cannot do a proper do while/until loop; which beyond having something that natively binds to clicking the "Begin Call" button, sounds like you need.
You're basically just saying "if this isn't ready yet, wait and go back to the top of the script".
------------------------------
Steven Busse
Vice President, Lead Business Analyst
M&T Bank
Original Message:
Sent: 04-15-2024 11:53
From: Charis Sideridis
Subject: Invoke URL when dialing contact in preview campaign
Hi Steven,
"This would happen endlessly until the interaction is terminated"
Now this is something new to me. I thought it would only check once. I will give it a try tommorrow and see what happens. Thanks again!
Cheers,
------------------------------
Charis Sideridis
INTRACOM SINGLE MEMBER S.A. TELECOM SOLUTIONS.
Original Message:
Sent: 04-15-2024 11:38
From: Steven Busse
Subject: Invoke URL when dialing contact in preview campaign
My pleasure!
So, with my solution in mind, I'd like to point out two things:
- If the user never hits begin call, the URL will not be invoked. If that's not the behavior you want - we can try to work around that but I will need more details.
- The way the Try On Error in my situation works is, it says "Check if the boolean is still false, if not, wait 3 seconds and try again". This would happen endlessly until the interaction is terminated. So whether it takes 1 second, or it takes 10 minutes, the result would occur with a potential delay of up to 3 seconds. This can naturally be modified to suit your needs; shorter/longer/etc.
So, that being said, are there other situations where the URL would still need to be invoked?
------------------------------
Steven Busse
Vice President, Lead Business Analyst
M&T Bank
Original Message:
Sent: 04-15-2024 11:29
From: Charis Sideridis
Subject: Invoke URL when dialing contact in preview campaign
Hi Steven,
Thanks for your reply. Your approach is based on the fact that the agent would actually press the begin call button. That would be OK, but there are scenarios where an agent would not call the customer (e.g. skip). Furthermore, there is no time limit. An agent could spend between a second and 10 minutes before doing any action.
I was wondering if there is a way to use boolean variables as "trigger" points.
Regards,
------------------------------
Charis Sideridis
INTRACOM SINGLE MEMBER S.A. TELECOM SOLUTIONS.
Original Message:
Sent: 04-15-2024 11:12
From: Steven Busse
Subject: Invoke URL when dialing contact in preview campaign
There may be something you can do with Data Actions to make this work properly, but that's out of my wheelhouse. Strictly working within Scripts, nothing comes to mind that's clean... you could always try something like:
1) Set boolean Variable, default: False
2) Custom Script - Name it "URL".
- Try
- If boolean = False
- If {{Scripter.Interaction State}} Equals (Ignoring Case) Connecting
- {{Scripter.Set Variable}} boolean = True
- {{Script.Open URL}}
- On Error
3) Set Start Page > Page Load Action = "URL"
Naturally, this is not something I tested, and it's not very clean using a millisecond timer. Without Data Actions I'm not sure it really can be clean. Though I'd be intrigued if it could.
------------------------------
Steven Busse
Vice President, Lead Business Analyst
M&T Bank
Original Message:
Sent: 04-15-2024 10:23
From: Charis Sideridis
Subject: Invoke URL when dialing contact in preview campaign
Hello everyone,
Is there a way to open a URL at the moment the agent clicks on the "begin call" during a preview interaction?
Using an if/else scenario with the scripter.interaction state at the page load action did not work. Any ideas?
Regards,
#ArchitectureandDesign
------------------------------
Charis Sideridis
INTRACOM SINGLE MEMBER S.A. TELECOM SOLUTIONS.
------------------------------