Genesys Cloud - Main

 View Only

Sign Up

  • 1.  New Trigger Logic Based on Participant Data

    Posted 10-07-2025 11:03

    Hi Team,

    I need to create a trigger that initiates a workflow based on participant data. Specifically, once the conversation ends, the system should check if the participant data contains isTrigger = true. If it does, the workflow should be triggered; if not, it should not be triggered.


    #API/Integrations
    #Implementation
    #Roadmap/New Features

    ------------------------------
    Haridass Sarangan
    ------------------------------


  • 2.  RE: New Trigger Logic Based on Participant Data
    Best Answer

    Posted 10-07-2025 12:27

    For that you will probably trigger on v2.detail.events.conversation.{id}.user.end then in the workflow check the value of the attribute to decide whether or not to continue. You might be able to narrow it down based upon the disconnect type or another value in the Schema.



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME
    Technical Adoption Champion
    Genesys
    2024 Community Member of the Year
    ------------------------------



  • 3.  RE: New Trigger Logic Based on Participant Data

    Posted 10-08-2025 10:43

    It sounds like you are hoping to filter on a participant attribute to reduce the number of workflow invocations.  Unfortunately participant attributes are not available on the conversation details events.  The only thing that you can do it always execute the workflow, and the first block in the workflow should call a Data Action to get the conversation JSON and look at the participant attributes.  If isTrigger=true then you continue on in the flow, otherwise you exit the flow.



    ------------------------------
    Jim Crespino
    Senior Director, Developer Evangelism
    Genesys
    https://developer.genesys.com
    ------------------------------



  • 4.  RE: New Trigger Logic Based on Participant Data

    Posted 10-08-2025 13:00

    Jim, is it required to use a Data Action for that notification?

    Or, can you pull the conversationId into the workflow and use the Get Conversation Data action to access the Participant Data value?



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME
    Technical Adoption Champion
    Genesys
    2024 Community Member of the Year
    ------------------------------



  • 5.  RE: New Trigger Logic Based on Participant Data

    Posted 10-09-2025 08:34

    In one of our implementations, we followed a similar approach to what Jim described: triggering the workflow on the user.end event and using a Data Action as the first step to fetch the conversation object via the Conversations API.

    What worked well for us was:

    Using a lightweight Data Action that queries only the participants array and extracts the custom attribute (is Trigger) to minimize API load.

    Handling the logic inside the workflow if is Trigger = true, proceed with the business process (e.g. follow-up automation); otherwise, exit gracefully.

    Adding logging for both paths to help monitor trigger frequency and false positives.

    This design keeps the trigger lean while preserving control within the workflow itself.

    Curious to know if anyone has tested pulling the participant data directly via Get Conversation Data instead of a Data Action it would simplify the architecture a bit if supported.



    ------------------------------
    MARTHA VELASCO
    ------------------------------



  • 6.  RE: New Trigger Logic Based on Participant Data

    Posted 10-09-2025 14:49

    I set it up using user.end and the Get Conversation Data in the workflow. Works fine.

    Simple trigger. In production I would narrow it down by Queue or other parameters.

    Flow.conversationId set up as an input variable

    Use to get the attribute Trigger

    Interaction Details:



    ------------------------------
    George Ganahl GCCX-AI, GCP, GCSME
    Technical Adoption Champion
    Genesys
    2024 Community Member of the Year
    ------------------------------



  • 7.  RE: New Trigger Logic Based on Participant Data

    Posted 10-09-2025 11:12

    This sounds like what we did.  

    v2.detail.events.conversation.{id}.attributes

    attributes['name of attribute'] contains "value"

    We are looking for one specific attribute and the value is static.  This goes to a workflow for handling.

    Not sure if this helps.



    ------------------------------
    Byron Nelson
    Customer Operations System Administrator
    Oklahoma Gas and Electric Company[Designation]
    Engage Cloud 2015 to 2021
    Cloud CX 2022 to Present
    ------------------------------



  • 8.  RE: New Trigger Logic Based on Participant Data

    Posted 10-09-2025 18:37

    I've done something similar. I had a need to trigger a call to ServiceNow when an attribute is added to the Genesys Conversation.  Here's what my trigger looked like. I only wanted it to run when a specific attribute the SN_externalInteractionId is added.



    ------------------------------
    Peter Stoltenberg
    TTEC Digital
    ------------------------------