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".
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.
------------------------------