I'm trying to achieve a Unified Transfer use case which described as follows:
1- The cal is received by agent who realized that this call needs to be transferred to some other queue.
2- Agent use the script to select the destination queue from a dropdown menu.
3- Agent click on Transfer button in the script and there is a custom action behind that script:
Check if the agent didn't select a queue and clicked on the button, it will alert A queue must be selected first before transferring the call
Otherwise, the selected queue name is stored in input/output variable then a blind transfer to UnifiedTransfer is taken.
The problem here is that the input/output variable is set to the customer participant data but when I use the Get Participant Data action to capture it, I see the value is empty. Do you have any idea about what could be wrong here with my solution?
Hi @mostafaawad
I suggest using a custom data action to update participant data using PATCH /api/v2/conversations/{conversationId}/participants/{participantId}/attributes, instead of setting the Output variable in the script. This solved the problem for another user here on the forum:
Thanks for your suggestion and reference. I tried that solution but it seems something wrong and unexpected happens which makes the button loads up to infinity
@mostafaawad Based on the blurb "Data Action Success: false" it looks like the data action is failing. You can run a test within the data action itself to see what's going wrong. I set the data action up myself and was able to update participant attributes successfully