Author Topic: WDE Customization. Add attached data during ACW  (Read 302 times)

Offline jeddite

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
WDE Customization. Add attached data during ACW
« on: August 25, 2019, 07:59:04 PM »
Hi all,
Is it possible to add attached data during agent in ACW status? Attached date should be collected by Speechminer.
I tried to create custom command and use method interaction.setAttachedData() but it`s not work. Could anyone help me with coorect method?

Code: [Select]
        public bool Execute(IDictionary<string, object> parameters, IProgressUpdater progressUpdater)
        {
            //this.log.Info((object)nameof(CompleteVoiceDispositionCodeOnBundleCommand));
            this.container.Resolve<IEventAggregator>();
            var bandle = parameters["CommandParameter"] as IInteractionsBundle;
            if (bandle != null)
            {
                foreach (IInteraction interaction in (IEnumerable<IInteraction>)bandle.Interactions)
                {
                    IInteractionVoice interactionVoice = interaction as IInteractionVoice;


                    if (interactionVoice != null)
                    {

                       
                        KeyValueCollection userData3 = new KeyValueCollection();
                        userData3.Add("Theme123","qwerty");
                        interaction.SetAttachedData(userData3);


                        var connID = interactionVoice.TConnectionId;

                        WindowsOptions newInstance = WindowsOptions.CreateNewInstance(interaction.ContextualConfigManager);

                        var result = this.voiceService.BeginSetCallQualification(interaction.Media.Channel, interactionVoice.Device[0],
                    }
                }
            }
            return false;
        }
« Last Edit: August 25, 2019, 08:10:10 PM by jeddite »

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7040
  • Karma: 56330
Re: WDE Customization. Add attached data during ACW
« Reply #1 on: August 26, 2019, 01:05:42 PM »
The interaction already is dead as far for Inbound calls. The telephony ConnID was disposed when the EventReleased happened.
In outbound, yes it is possible as OCS controls the interaction in a different way.


Offline jeddite

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: WDE Customization. Add attached data during ACW
« Reply #2 on: August 26, 2019, 06:04:18 PM »
The interaction already is dead as far for Inbound calls. The telephony ConnID was disposed when the EventReleased happened.
In outbound, yes it is possible as OCS controls the interaction in a different way.

Maybe, but after call release  and when i press "mark done" i see in the logs RequestDistributeUserEvent with ConnID.
 

01:52:23.163 Trc 04541 RequestDistributeUserEvent received from [232] (00000034 WorkspaceDesktop_123 192.168.10.98:46751)
message RequestDistributeUserEvent
   AttributeReferenceID   16
   AttributeUserData   [44] 00 02 01 00..
      'R_TimeInFocus'   39
      'R_AgentDBID'   102
   AttributeUserEvent   EventUserEvent
   AttributeThisDN   '7001'
   AttributeConnID   010a02e56c8f802d
   AttributeCommunicationDN   '7001'

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7040
  • Karma: 56330
Re: WDE Customization. Add attached data during ACW
« Reply #3 on: August 26, 2019, 10:52:56 PM »
And what is the return of that event? You can send anything, the important thing is the return

Enviado de meu SM-G9650 usando o Tapatalk


Offline Leon

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
Re: WDE Customization. Add attached data during ACW
« Reply #4 on: August 26, 2019, 11:01:20 PM »
You answer yourself, I don't know much about speechminer but with InfoMart you could do that configuring the propagation rule of UserData and using RequestDistributeUserEvent to send the information :



https://docs.genesys.com/Documentation/GIM/8.5.0/Dep/GIMPropagationRulesv

"Use the PARTY propagation rule to capture KVP values that are set after the interaction leaves the agent (for example, during after call work [ACW]) or for user data that should be associated only with the subject of the IRF or MSF record and not propagated to other resources."