We have created a Script Agent with some variables (participant data) to be filled by the agent during his call with outbound campaign
Now, if we want to retrieves all this data (participant data) later, we think to put custom action to update the calling list with particpant data (variables) defined on the Script agent
Then, we can import the call list when the campaign finish to obtain all data entered by the agents
Please, could you let me know if this possible ? if yes how to do it ?
Hi Smith,
Thanks for your reply, but this is not my question, I already add this component
What I ask, is to put variable on the Script agent (like input component) and when agent fills this component, the data should be added on two places: on the script (as participant data) and on the calling list, in order to retieve all this data by importing only the calling list after the campaign finished
Thanks for following-up, I see this now. Scripts can have "output variables":
These are like normal vars but when the scripts exist, their contents are written to Participant Data (the "attributes" array) on the conversation object. You should be able to assign the values of any contact list fields also to an output variable so the result will be in both places.
I don't believe you'll need an action at all. The contact list display (see my first post) will display and let you update the contact list fields. You can have a separate output variable that mirrors the value of any of the variables displayed in that list, the built-in ones such as "Outbound.Home Phone". You can create a new variable and set its value to the value of any of those variables and it should bind to it, reflecting any changes.
If this approach doesn't work, then yes - you can also update the list contact directly via data action using the API resource noted above (the PUT request).
Thank you Smith, yes I understand what you mean
Create a new output variable and put its value as built-in ones, for example variable 1 = outbound.name, then when agent enter a text on the Script it will update automatically on two places : calling list and participant data
But my problem is, On the Script, I have already defined a variable for example: variable 1 = "text to be entered by agent"
where I should put the outbound.name for example ?
Sorry for all this questions, but still I have some confusion
Can you change the script so that the Agent just updates the value in the Contact List, instead of a custom field with a different variable?
If not, you should still be able to define a binding that sets:
Outbound.<field_name> = yourVariable1
And then just make sure your variable is set with "Output" variable flag, so that it is written to Participant Data at the end of the script execution.
No, this is not possible for the customer to write the data two times (on the calling list and on the Script)
For the second solution, it will be better for him
For the binding :
Outbound.<field_name> = yourVariable1
Where I have to define it ? just create dynamic variable on the Script, for example variable 2 with : (Outbound.<field_name> = yourVariable1) is enough ?