Legacy Dev Forum Posts

 View Only

Sign Up

Is there any way to view the callback data attributes in PureCloud

  • 1.  Is there any way to view the callback data attributes in PureCloud

    Posted 06-05-2025 18:12

    DMcLeod | 2017-06-08 03:51:22 UTC | #1

    When I create a callback using the API, is there any way to view the data attributes in PureCloud? Such as predefined keys that will be converted to notes or view-able in a script?

    The docs provide the following info: data (object, optional): A map of key-value pairs containing additional data that can be associated to the callback. These values will appear in the attributes property on the conversation participant. Example: { "notes": "ready to close the deal!", "customerPreferredName": "Doc" }

    Chat gives you lots of base info and also provides 3 custom attributes, so I'm looking for something similar here to put the info on the agents screen in the PureCloud client. I am creating these via a form post on a site, so it would be helpful to know why the callback is being created.

    I was happy with how easy it was to get this working in AWS Lambda, but it's not very useful if there is no context as to why the callback exist.

    Thanks, Daniel


    RogierBosch | 2017-06-08 06:31:47 UTC | #2

    DMcLeod, post:1, topic:1384
    notes": "ready to close the deal!", "customerPreferredName": "Doc" }

    As far as I know you can only put additional data in Notes for a Callback (next to Name Customer + Phonenumber)


    anon28066628 | 2017-06-08 13:10:30 UTC | #3

    Hi Daniel, if you're using a custom script you can look into Scripter Input and Output variables. The participant data ("attribute") is saved to the input variable if the variable's name matches the key (string) for the participant data you need. Architect refers to these as Participant Data (Set / Get Participant Data), Scripter uses "input / output variable". They're both the same thing - a key/value array named "attributes" on one of the conversation participants.


    DMcLeod | 2017-06-08 14:47:35 UTC | #4

    Thank you @anon28066628 that worked.


    system | 2017-07-09 14:48:00 UTC | #5

    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: 1384