Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  transfer custom attributes using messaging APIs

    Posted 12-03-2024 16:50
    No replies, thread closed.

    We are in a process to migrate or web chat to web messaging, or chat bot is a third party and we need to use APIs to connect to genesys cloud. API for connection work great but not able to transfer data attributes, custom or  regular like interaction ID. In comunity there are some reference to javascript datase.set:

    Genesys("command", "Database.set", { messaging: { customAttributes: { genesys_url: window.location.href, browser_language: navigator.language } } });

    we tried this with no luck:

    {

    "action": "onMessage",

    "message": {

    "type": "Event",

    "events": [

    {

    "eventType": "Presence",

    "presence": {

    "type": "Join"

    }

    }

    ]

    },

    "tracingId": tracingId,

    "token": token,

    "user": {

    "name": "John",

    "customFields": {

    "customerid": "123456",

    "lang": 'eng',

    "subject": "XYZ",

    "lname": "Doe",

    "fname":"John",

    }

    },

    "routingTarget": {

    "targetType": 'Queue',

    "targetAddress": "office365"

    }

    all ideas are really appreciated

    Jaime


    #API/Integrations

    ------------------------------
    Jaime Hall
    Electronic engineer
    ------------------------------


  • 2.  RE: transfer custom attributes using messaging APIs
    Best Answer

    Posted 12-04-2024 07:35
    No replies, thread closed.

    Hello Jaime and welcome to the GC Community, 

    I would try posting this within the dev forums. You can also review our JavaScript SDK here. This will have all the APIs we have available and you can test them out. 

    Cheers, 



    ------------------------------
    Cameron
    Online Community Manager/Moderator
    ------------------------------