Genesys Cloud CX

 View Only
Discussion Thread View
  • 1.  Process automation API

    Posted 09-28-2022 02:58
    Hello,

    I am wondering how I can pass the ANI and Conversation ID from a inbound flow to workflow?

    We are attempting to use the process automation, i created a trigger (this is only for testing at the moment) but its not passing the details needed.

    I have setup a set participant data in the inbound flow to attempt to pass the ANI and Convo ID,

    any ideas?

    below is the trigger i created (this is setup in our dev env so there is no calls besides my testing coming in)

    {
    "topicName": "v2.detail.events.conversation.{id}.customer.end",
    "name": "Abandoned_Calls_Routing",
    "description": "Test",
    "target": {
    "type": "Workflow",
    "id": "my id is here"
    },
    "matchCriteria": [
    {
    "jsonPath": "direction",
    "operator": "Equal",
    "value": "INBOUND"
    },
    {
    "jsonPath": "mediaType",
    "operator": "Equal",
    "value": "VOICE"
    }
    ],



    "enabled": true
    }
    #ArchitectureandDesign

    ------------------------------
    .
    ------------------------------


  • 2.  RE: Process automation API

    Posted 09-28-2022 05:21
    You need to create variable with the same name as the value you would like to get from the trigger and mark it as "Input to flow"


    ------------------------------
    Armands Bunkovskis
    Adventus Solutions Sia
    ------------------------------



  • 3.  RE: Process automation API

    Posted 09-28-2022 06:09
    its as simple as that,
    worked like a charm

    thank you

    ------------------------------
    Richard Dib
    Employsure
    ------------------------------



  • 4.  RE: Process automation API

    Posted 10-17-2022 06:16
    Hi Richard,

    1) did you need to set up any participant data in your inbound flow to achieve this?
    2) Or, did merely an "update data " statement help?

    Can you explain in a bit more detail?

    I am also looking forward to achieving the same. I have a trigger that invokes a workflow on a "particular " wrap-up code only and want my conversation id to flow from an inbound call to the workflow.


    Regards
    Garima

    ------------------------------
    garima balodi
    Tata Communications Limited
    ------------------------------



  • 5.  RE: Process automation API

    Posted 10-18-2022 01:29
    Hi Armands,

    I am wondering , what should go in the "value to assign" (as it is mandatory ) for this variable ?


    Regards
    Garima


    ------------------------------
    garima balodi
    Tata Communications Limited
    ------------------------------



  • 6.  RE: Process automation API

    Posted 10-18-2022 01:53
    Hi!
    You do not need to use Update data block (and choose "value to assign"). In workflow, you just go to Resources->Data, add variable with the required name , like "conversationId" and mark it as "Input to Flow".
    From now on you can use that variable in Architect flow and value of that will be populated automaticaly during workflow initialisation.

    Armands







  • 7.  RE: Process automation API

    Posted 10-18-2022 02:42
    Thanks, it worked :)

    ------------------------------
    garima balodi
    Tata Communications Limited
    ------------------------------