The agent process serves as the command interface between the Dialer and any Agent API application such as sim_agt. This process is started on the Dialer when the system is started and runs as a permanent process. In its permanent state, the agent process simply listens to a specific port waiting for a socket connection to be established in this case by sim_agt.
When a connection is established, the agent process creates a copy of itself. This copy becomes the individual agent process associated with the particular copy of sim_agt that established the connection. The individual agent process handles all interaction between the Dialer and the Virtual Agent script. When the sim_agt process executes a logout command, the socket connection between the agent process and the sim_agt process is dropped and the associated individual agent process is terminated.