Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Multiple topics when using the topic trigger

    Posted 3 days ago

    Hi All,

    I'm trying to use the topic trigger v2.speechandtextanalytics.conversation.{id}.topics to match on multiple topics, details can be found here - Speech and Text Analytics Topics Notification

    When I use the expression - topics[?(@.topicName == 'Greeting')] - the trigger will save and work.

    When I try to use the example expression for multiple topics - topics[?(@.topicName == 'Billing Issue' | | @.topicName == 'Payment Problem' | | @.topicName == 'Account Access')] - I get an error popup, developer tools don't show anything meaningful as to why it won't save, any ideas?

    I have a customer who needs to trigger on multiple topics, maybe over 100 (I'm trying to get this number down), and there is a limit of up to 100 triggers in a GC org so I need to be able to put multiple topics in the 1 trigger.

    Thanks in advance.


    #Triggers

    ------------------------------
    Nathan Kaden
    ------------------------------


  • 2.  RE: Multiple topics when using the topic trigger

    Posted 3 days ago

    ChatGPT to the rescue, I figured out the issue, the expression on the developer centre has a space between the pipes which was causing the error, so I was using

    topics[?(@.topicName == 'Billing Issue' | | @.topicName == 'Payment Problem' | | @.topicName == 'Account Access')]

    When I should have been using 

    topics[?(@.topicName == 'Billing Issue' || @.topicName == 'Payment Problem' || @.topicName == 'Account Access')]

    I'm not a programmer so missed the spaces....

    I also only figured this out when using the topic update API as the front end trigger config didn't give you any error details



    ------------------------------
    Nathan Kaden
    ------------------------------



  • 3.  RE: Multiple topics when using the topic trigger

    Posted 2 days ago

    Good to know that the trigger filter expects the || operator without spaces when matching multiple topics. We are currently structuring a workflow where specific topics trigger an automation that sends an email notification to the quality team.

    Thanks!



    ------------------------------
    Mateus Nunes
    Tech Leader Of CX at Solve4ME
    Brazil
    ------------------------------



  • 4.  RE: Multiple topics when using the topic trigger

    Posted 7 hours ago

    I'm doing the same, something to note, the trigger only fires at the end of the interaction once the STA and Topic Spotting is completed against the interaction, so you can't use this to do live call spotting.

    The trigger only passes GUIDs too, I got the send notification email to look reasonably good but if want names rather than IDs your workflow will need to run APIs or searches to convert the IDs into the name.

    I've gotten the whole notification process working, next will be using it along with other APIs to assign an AI Scoring evaluation form and protect the recording from deletion until it can be reviewed. 



    ------------------------------
    Nathan Kaden
    ------------------------------