The following vector shows how to collect an account number. Agents can see the account number if the call is answered by the available agent after steps 1 to 3 are executed. Agents cannot see the account number after the customer is prompted at step 4. This is because the collect in step 4 overwrites the digits buffer that is sent to the agent’s display.
1. collect 9 digits after announcement 4501 [announcement 4501 asks customers for their account number. Nine digits are stored in the digits
buffer after customers enter their account number]
2. queue-to skill 1st pri h [Queue the call]
3. wait-time 30 secs hearing music [call waits, digits buffer = variable A = 9 digits]
4. collect 1 digits after announcement 4502 [Press 1 if customer wants to leave a message. The digits buffer now contains the response,
overwriting previous collected digits.]
5. goto step 8 if digits = 1 [Check if the caller wants to leave a message]
6. goto step 3 if unconditionally [The caller does not want to leave a message. Go back to wait.]
7. stop
8. messaging skill 2nd for extension active [Caller leaves a message]
9. treatment if messaging skill out of service