Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  ollect data entered in fields on a script

    Posted 01-11-2024 05:53
    No replies, thread closed.

    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
    ------------------------------


  • 2.  RE: ollect data entered in fields on a script

    Posted 01-11-2024 07:43
    Edited by Breno Canyggia Ferreira Marreco 01-12-2024 07:01
    No replies, thread closed.

    Hi Rihab, Their data can be added with Participant Data in interaction through Script.

    The participant Data an be bulk extracted through API: https://developer.genesys.cloud/organization/search/conversation-participant-attribute-search

    Or... if you prefer, send this data for an external solution through API external, for example: Your script executes POST (data action) to send information for your CRM, database...

    Att,



    ------------------------------
    Breno Canyggia Ferreira Marreco
    https://www.linkedin.com/in/brenocfm-40b62182/
    ------------------------------



  • 3.  RE: ollect data entered in fields on a script

    Posted 01-12-2024 02:11
    No replies, thread closed.

    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
    ------------------------------



  • 4.  RE: ollect data entered in fields on a script

    Posted 01-15-2024 06:58
    No replies, thread closed.

    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
    ------------------------------



  • 5.  RE: ollect data entered in fields on a script
    Best Answer

    Posted 01-15-2024 07:42
    No replies, thread closed.

    Hello Rihab,

    yes, you have to create actions under integrations. You will find examples for most APIs in the forum. I suggest to try every API you plan to use in the developer center like here: https://developer.genesys.cloud/routing/conversations/conversations-apis#get-api-v2-conversations--conversationId- for a better understanding befor building the action. You will have to invest some time to understand that topic.
    After you sucessfully build an Data Action in integrations you are able to use them in scripts.
    Best regards
    Christoph



    ------------------------------
    Christoph Domaschke
    CRONBANK AG
    ------------------------------



  • 6.  RE: ollect data entered in fields on a script

    Posted 01-15-2024 10:41
    No replies, thread closed.

    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.
    ------------------------------