Agent Trace

With different parties creating new agents, it can be cumbersome tracking if the desired agents are being traced. Here is a query for a Designer Report to help identify untraced agents.

• The inputs include a list of skills for which you are trying to identify untraced agents. Enter a semicolon delimited list or enter a range such as 1-199.

• Enter a date, usually -1 (use yesterday’s business date to avoid miscues due to records being purged from ag_actv) to compare log id’s for agents who logged in yesterday to log id’s in the agent activity table.

The query checks the dagent table for log id’s of yesterday’s active agents and table ag_actv for log id’s of traced agents. It produces a list of the agents who logged in but are not in ag_actv, meaning they are not traced. If an agent logged in but took no calls, it could give a false reading.

If you want the .rep file, I’ll post it as a .doc to prevent rejection.


ob_AgentTrace_NotTraced

Input skills and date=-1. Finds IDs of agents who logged in for input skills but are not traced (not in ag_actv table).

SELECT UNIQUE ACD, ROW_DATE, LOGID, SPLIT FROM dagent

Where ACD=$acd and ROW_DATE = [Date:] AND SPLIT = [Skills:] and dagent.LOGID not in (select ag_actv.logid from ag_actv)