Legacy Dev Forum Posts

 View Only

Sign Up

Replacing predictive engagement with database.set

  • 1.  Replacing predictive engagement with database.set

    Posted 06-05-2025 19:22

    KumariAAnkita | 2022-05-23 11:21:10 UTC | #1

    We are trying replace predcitvie engagement and use instead database.set to send custom attribute from front end and get captured in conversation detail.

    steps followed. 1.. add the new script example in our customized Rabobank messager widget (not using genesys default widget) (function (g, e, n, es, ys) { g['_genesysJs'] = e;

    g[e] = g[e]

    function () {

    (g[e].q = g[e].q

    []).push(arguments)

    }; ge].t = 1 * new Date(); g[e].c = es; ys = document.createElement('script'); ys.async = 1; ys.src = n; ys.charset = 'utf-8'; document.head.appendChild(ys); })(window, 'Genesys', '[https://apps.mypurecloud.de/genesys-bootstrap/genesys.min.js', { environment: 'euc1', deploymentId: '37a797e2-0c93-4ae0-9391-xxxxx' });

    1. enable predictive engagement at messagner configuration and

    disable genesys widget pop

    1. also added

    Genesys("command", "Database.set", { messaging: { customAttributes: { subject: 'xyz', origin: 'RBB', productCluster: 'x', customerSegment:'y', contentSegment: 'retail', pageTitle: 'b', moduleName: 'o', pageUrl: 'm'}}});

    but its not popping in the conversation detail

    but if I use the Genesys default widget I can see the above information in the participant data

    please help what is missing here ?


    Angelo_Cicchitto | 2022-05-31 19:04:19 UTC | #2

    Hello :wave: Since you are building your own messaging client, and not using the Messenger JS functions to "start" the conversation or send messages, then you will have to pass custom attributes via API directly. Check this link Inbound message with custom attributes in our Guest API documentation.


    system | 2022-07-01 19:05:12 UTC | #3

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 14833