Rihab,
It depends where / when you want to use the data.
If you want it within Architect (or another Script) then you will need Data Actions. It is also possible to work around the "multiple participant" issue Christoph mentions, but it takes a bit of lateral thinking!
If you are using the data in an external system, then you can either export the data using the CLI, or embed the code to access the API directly into that system. That being said, if the external system has an API to accept data, then it may be easier to have the Script send the data over (as discussed above) rather than having the external system "reach in".
If you can elaborate a little on what you are trying to achieve, we will be able to give you better advice.
------------------------------
Paul Simpson
Views expressed are my own and do not necessarily reflect those of my employer.
------------------------------
Original Message:
Sent: 01-15-2024 06:57
From: Rihab BEN MALEK
Subject: ollect data entered in fields on a script
Hello,
thank you for your help.
to be honest I'm new to genesys cloud.
how could I collect participant data via api, is it by creating actions on the script or through actions under integrations ?
Thanks
------------------------------
Rihab BEN MALEK
Teleperformance France SA
Original Message:
Sent: 01-12-2024 02:11
From: Christoph Domaschke
Subject: ollect data entered in fields on a script
Hi Rihab,
as mentioned, you can write script variables simply to the participant data by declaring them as output variables. You can collect participant data via api. It is the most flexible way. (GET /api/v2/conversations/${input.conversionID}). But you have to keep in mind to check, that there are more than one participants in each call and to get the vairables from the participant data you will have to know, which participant holds the data. Is it always the same (for example the last one) = fine. If not, it gets complicated.
You can write data to data tables with POST /api/v2/flows/datatables/${input.dataTableID}/rows. Depending on how often these actions are needed you have to keep in mind, that data tables are limited to 5000 rows.
If you are in an outbound capaign you can just add the needed variables to the contact list fields and by activating "outbound" in the script properties use read and write actions provided by the script.
I hope that helps
Best regards
Christoph
------------------------------
Christoph Domaschke
CRONBANK AG
Original Message:
Sent: 01-11-2024 05:53
From: Rihab BEN MALEK
Subject: ollect data entered in fields on a script
hello,
how could we collect data entered by an agent in fields on a script on a table via api or data table or other?
Thanks
#ArchitectureandDesign
#Implementation
#PlatformAdministration
#Reporting/Analytics
#Routing(ACD/IVR)
------------------------------
Rihab BEN MALEK
Teleperformance France SA
------------------------------