Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Question - Export/Import of Queues & Skills

    Posted 2 days ago

    In Genesys Cloud Admin, you can export/import Flows, Data Tables, Prompts and possibly a few other things using the standard template that the Genesys software provides.  This makes it very easy to perform these actions as we launch new programs & teams.  Are there plans to be able to do this for specifically Queues & Skills?  I ask this in the Development Community because maybe there is a way to perform that task here, although possibly using a few more steps.


    #Uncategorized

    ------------------------------
    Michael Jewell
    ------------------------------


  • 2.  RE: Question - Export/Import of Queues & Skills

    Posted 2 days ago

    Hi,

     You can use the "GC Genesys Line Interface." These GC commands (as called from python) are useful for exporting and importing queues:

    1. List queues (source):

    ["gc", *SOURCE_OAUTH_CLIENT.split(), "routing", "queues", "list", "-a"]

    2. List queues (destination):

    ["gc", *DEST_OAUTH_CLIENT.split(), "routing", "queues", "list", "-a"]

    3. Bulk create queues (destination):

    ["gc", *DEST_OAUTH_CLIENT.split(), "routing", "queues", "create", "-d", <directory>]

    ·        File template (per queue JSON skeleton):

    {
           "name": "<queue_name>",
           "divisionId": "<division_id>",
           "queueFlow": { "id": "<flow_id>" },
           "whisperPrompt": { "id": "<prompt_id>" },
           "wrapupCodes": [ { "id": "<wrapup_code_id>" } ]
    }

    5. Lookup whisper prompt:

    ["gc", *SOURCE_OAUTH_CLIENT.split(), "architect", "prompts", "list", "-a", "--name", <prompt_name>]

    6. List wrap-up codes (source):

    ["gc", *SOURCE_OAUTH_CLIENT.split(), "routing", "wrapupcodes", "list", "-a"]

    7. Bulk create wrap-up codes (destination):

    ["gc", *DEST_OAUTH_CLIENT.split(), "routing", "wrapupcodes", "create", "-d", <directory>]

    8. List queue users (destination):

    ["gc", *DEST_OAUTH_CLIENT.split(), "routing", "queues", "users", "list", <queue_id>, "-a"]

    9. Move (assign) users to queue in chunks:

    ["gc", *DEST_OAUTH_CLIENT.split(), "routing", "queues", "users", "move", <queue_id>, "-f", <chunk_file>]

    ·        File template (queue user move JSON):

    {
           "userIds": [ "<user_id_1>", "<user_id_2>", "..." ]
    }

    Working with skills is even simpler:

    1. List skills (source):

    ["gc", *SOURCE_OAUTH_CLIENT.split(), "routing", "skills", "list", "-a"]

    ·        Purpose: Fetch all routing skills to filter and export.

    2. Bulk create skills (destination):

    ["gc", *DEST_OAUTH_CLIENT.split(), "routing", "skills", "create", "-d", <directory>]

    ·        File template (per skill JSON in directory):

    {
           "name": "<skill_name>"
           // optional: "state": "active"
    }

    Hope this is helpful to you.

    Piotrek.



    ------------------------------
    Piotrek Ladecki
    consultant
    ------------------------------



  • 3.  RE: Question - Export/Import of Queues & Skills

    Posted yesterday

    You could also consider CX as Code. https://developer.genesys.cloud/devapps/cx-as-code/



    ------------------------------
    Savino Ricci
    Senior Technical Consultant
    ------------------------------