Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Get Transcription data under single output contract

    Posted 12-29-2023 00:26
    No replies, thread closed.

    Hello Team,

    Greeting !!

    I'm quite new to Genesys and am attempting to fetch transcription URL data using the web service data action. I just want to retrieve all transcript data under the VoiceTranscript contract. I'm not sure about the syntax to use to concatenate this data.

    Output Contract:

    {
      "type": "object",
      "properties": {
        "VoiceTranscript": {
          "type": "string"
        },
        "VoiceTranscript1": {
          "type": "string"
        },
        "VoiceTranscript2": {
          "type": "string"
        },
        "VoiceTranscript3": {
          "type": "string"
        },
        "VoiceTranscript4": {
          "type": "string"
        },
        "VoiceTranscript5": {
          "type": "string"
        },
        "VoiceTranscript6": {
          "type": "string"
        },
        "VoiceTranscript7": {
          "type": "string"
        },
        "VoiceTranscript8": {
          "type": "string"
        },
        "VoiceTranscript9": {
          "type": "string"
        },
        "VoiceTranscript10": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }

    Response:

    {
      "translationMap": {
        "var_VoiceTranscript": "$.transcripts[2].phrases[0].text",
        "var_VoiceTranscript1": "$.transcripts[2].phrases[1].text",
        "var_VoiceTranscript2": "$.transcripts[2].phrases[2].text",
        "var_VoiceTranscript3": "$.transcripts[2].phrases[3].text",
        "var_VoiceTranscript4": "$.transcripts[2].phrases[4].text",
        "var_VoiceTranscript5": "$.transcripts[2].phrases[5].text",
        "var_VoiceTranscript6": "$.transcripts[2].phrases[6].text",
        "var_VoiceTranscript7": "$.transcripts[2].phrases[7].text",
        "var_VoiceTranscript8": "$.transcripts[2].phrases[8].text",
        "var_VoiceTranscript9": "$.transcripts[2].phrases[9].text",
        "var_VoiceTranscript10": "$.transcripts[2].phrases[10].text"
      },
      "translationMapDefaults": {
      "var_VoiceTranscript": "\"UNKNOWN\"",
        "var_VoiceTranscript1": "\"UNKNOWN\"",
        "var_VoiceTranscript2": "\"UNKNOWN\"",
        "var_VoiceTranscript3": "\"UNKNOWN\"",
        "var_VoiceTranscript4": "\"UNKNOWN\"",
        "var_VoiceTranscript5": "\"UNKNOWN\"",
        "var_VoiceTranscript6": "\"UNKNOWN\"",
        "var_VoiceTranscript7": "\"UNKNOWN\"",
        "var_VoiceTranscript8": "\"UNKNOWN\"",
        "var_VoiceTranscript9": "\"UNKNOWN\"",
        "var_VoiceTranscript10":"\"UNKNOWN\""
      },
      "successTemplate": "{\"VoiceTranscript\": ${var_VoiceTranscript},\"VoiceTranscript1\": ${var_VoiceTranscript1},\"VoiceTranscript2\": ${var_VoiceTranscript2},\"VoiceTranscript3\": ${var_VoiceTranscript3},\"VoiceTranscript4\": ${var_VoiceTranscript4},\"VoiceTranscript5\": ${var_VoiceTranscript5},\"VoiceTranscript6\": ${var_VoiceTranscript6},\"VoiceTranscript7\": ${var_VoiceTranscript7},\"VoiceTranscript8\": ${var_VoiceTranscript8},\"VoiceTranscript9\": ${var_VoiceTranscript9},\"VoiceTranscript10\": ${var_VoiceTranscript10}}"
    }

    #Implementation
    #Integrations
    #PlatformAdministration
    #SystemAdministration

    ------------------------------
    Adesh Jadhav
    Orange SA
    ------------------------------


  • 2.  RE: Get Transcription data under single output contract

    Posted 12-29-2023 06:21
    No replies, thread closed.

    Hi Adesh,

    I'd recommend posting in the developer forum for APIs as you are likely to get a much better response. Could you explain what you are trying to achieve? As the transcript API provides a URL which is then used to download the transcript this may not be the best approach.



    ------------------------------
    Richard Chandler
    Connect
    ------------------------------



  • 3.  RE: Get Transcription data under single output contract

    Posted 12-29-2023 06:32
    No replies, thread closed.

    Hi Richard,

    Yes i have posted this question to developer forum too.

    Using the transcript URL ... i have created web service data action which can view the data inside the URL. & those transcript text can be stored in variable & send to data table.

    Regards,

    Adesh



    ------------------------------
    Adesh Jadhav
    Orange SA
    ------------------------------



  • 4.  RE: Get Transcription data under single output contract

    Posted 01-04-2024 09:38
    No replies, thread closed.

    Adesh, what is the URL you are using and what is the error you see with the dataaction ?



    ------------------------------
    Vineet Kakroo
    FIL Fund Services (Bermuda) Limited
    ------------------------------