Hello,
A few ideas come to mind, you could store something in a variable when the agent answers the chat.
I don't remember exactly when the "Output" save action is triggered on scripts, it might be that it doesn't save it until the first agent ends wrap-up in which case you would need to save the participant data using Data Action for it to show right away to the second agent.
Another way would be to GET conversation details from API and from that you can find out if the conversation was transferred.
I haven't had reason to do this myself but those are the alternatives I would try out to accomplish it.
------------------------------
Jan Heinonen
Contact Center Specialist
GlobalConnect AB
------------------------------