Use architect call-flow variable value in script

Hello,

I'm trying to make simple script, that will allow agent to transfer the call to survey call-flow.
But, in initial call-flow we ask customer if he/she agrees to participate. Based on customer's answer I will set a variable (now I try using string variable - Flow.IsSurveyAgreed), and then in the script, I'd like to show this value to agent. I have a string type variable IsSurveyAgreed in script. Is there a way to pass the variable value from call-flow to script?
Script to be used is now set in queue properties. Maybe I should invoke script in different way, from the call-flow itself? - but I don't know if it's possible or don't know how to do it.

Or maybe my idea is wrong, and I should look for different solution?

Best regards,
Paweł

Hello,

The way to exchange information between an Architect Flow and a Script is leveraging the conversation's participant data.
Participant Data are set of keynames/values attached/saved in the conversation context.

In your Architect flow, you would have to use a Set Participant Data action using Name (keyname of the participant data) IsSurveyAgreed.
The value will have to be set to your Flow.IsSurveyAgreed architect flow variable (Set as Expression)

In your Script, when you define your IsSurveyAgreed string variable in your Script, you would also enable the Input toggle.
This means that when the Script is loading, it will try to check if there is a participant data with keyname "IsSurveyAgreed" and extract its value.

Regards,

Thank you.
It's working as expected now. Seems i was not aware it's participant data that needs to be used. So actually I don't need any separate variable in callflow, just use Set participant data.

Best Regards,
Paweł

Just wanted to say, this blew my mind...

I've been using Agent Script Variables as Inputs and then in my flows doing Get Participant Data Action to get earlier flow variables and in the Set Screen Pop Action, adding those variables as the inputs manually.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.