I have created a data action that allows me to view the routing status (number of idle agents on a queue) and it is working great. However, I want to add another layer where after it checks if there are idle agents, it then checks what language skills are assigned to those idle agents.
The goal is to have one queue for multiple languages, with a priority to route calls into that queue if there is an idle agent who can handle that language; and if not, to "overflow" and route it to another queue handled by vendor partners.
I thought I could add the additional layer to the existing data action I created; however, after trial and error all day I am unable to make it work.
If possible, I am trying to see if I can:
Prevent multiple API calls by combining the action into one.
Not have any agent userIDs hard coded into the architect flow.
I've attached a new version of the Data Action you uploaded.
I tweaked the output contract to now give you a count of the IDLE agents by language skills.
The resulting number is called total. If there are agents in an IDLE routing status with the language skills you have specified, the total won't be 0 - It'll show the count.
However, if there aren't any agents meeting those conditions, total will be 0.
These numbers can help you decide whether there is an overflow situation or maybe stay in the inital queue.
I uploaded the data action you attached and tested it. It appears that no matter what I test, the value is always resulting in 0 which makes me think it's taking the Translation Map Default path.
I've tried it with both the language name (e.g. English) and the language ID (e.g. b0518e4f-0309-429d-b767-7a86451d3249). I've also confirmed there are idle agents on the queue with those language skills. Is there something I'm doing wrong?
This implies that you are applying a language filter. However, based on the screenshot of the Queue Activity, it seems you intend to filter based on ACD skills, which isn't the same as language.
I would suggest using the Data Action I shared v2, and ensure that the agents have been assigned the appropriate language.
You can verify at the agent level (Admin/people).
I can confirm that the Data Action is working on my end.