Agent Automation fails when using more than one required attribute #680
-
We have recently been exploring using the agent automation feature after using our own implementation for some time, simply to cut back on the number of listeners being added at different points. When investigating, I found that, due to how For instance, I could set the configuration to be the following:
If I then make an inbound call, while I expect the call to be automatically accepted, it is not, because it continues checking the remaining attributes, and when that check fails, the boolean is set back to false. The same is true when checking worker attributes. I would recommend doing something similar to the following when checking the required attributes and the required worker attributes:
This allows us to break the loops when a matching condition is found, which using .forEach does not provide. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @stjohnson44! I think there's a slight misunderstanding here--the intent with the logic as it stands is that all of the attributes listed must match (i.e. it's an AND condition, not an OR). So for your use case, you'd create two different configs--one config with direction=inbound and taskType=predictive-dial, and another config with direction=inbound and taskType=message-dial. |
Beta Was this translation helpful? Give feedback.
Hi @stjohnson44! I think there's a slight misunderstanding here--the intent with the logic as it stands is that all of the attributes listed must match (i.e. it's an AND condition, not an OR). So for your use case, you'd create two different configs--one config with direction=inbound and taskType=predictive-dial, and another config with direction=inbound and taskType=message-dial.