msassoon Genesys Employee
February 21

No, there are no default ones like there were in chat and there is only the participant data limits. So, firstName could be first_name if you want.


Visit Topic to respond.


In Reply To

Rusty_Lockett
February 21
I'm using the actual Messenger JavaScirpt SDK. So we don't have to use the context anymore. Great! Is still limited to just those few fields?

Previous Replies

Jerome.Saint-Marc Genesys Employee
February 21

I am not sure I understand. Can you provide more details on what you are doing?

Do you mean that you are defining a "context.firstName" key using Database.set?
I mean something like:

Genesys("command", "Database.set", {
  messaging: {
    customAttributes: {
     "context.firstName": "Jerome"
    }
  }
});

And how are you using this in a Script? Defining a variable with Input toggle enabled and name "firstName"?
Or were you referring to the built-in variables?

Regards,

Rusty_Lockett
February 21

I'm using the actual Messenger JavaScirpt SDK. So we don't have to use the context anymore. Great! Is still limited to just those few fields?

Jerome.Saint-Marc Genesys Employee
February 21

Hello,

Rusty_Lockett:

Currently, we're using the Messenger JavaScript SDK's database functions to send conversation context data, and accessing attributes like context.firstName within our scripts.

I am a bit confused with the question.
Are you using Genesys Widgets (user interface) and its API commands? This was WebChat v2.
Or are you indeed referring to the Messenger Javascript SDK which is based on Web Messaging (and not WebChat)?

With WebChat v2 and Genesys Widgets, you could set attributes which were stored as participant data - with a "context." prefix. I mean defining "firstName" in the WebChat open/create request was creating a "context.firstName" attribute in the conversation participant data.
With Web Messaging, you can set the same participant data using the Messenger Database commands. They just don't have this "context." prefix anymore. Setting a "firstName" attribute using the Database command will result in a "firstName" attribute in the conversation's participant data.

If your question is about the Script built-in variables for Chat - like here for Chat.Customer First Name.
There are no equivalent Script built-in variables for Web Messaging.
You would have to declare a variable in your script and define it as Input (Input toggle enabled).

Defining an Input variable in your Script for Web Messaging is the same process than for Chat. As it was described here.

Regards,

Rusty_Lockett
February 18

With the deprecation of chat and the shift to web messaging, I'm trying to understand how we'll manage conversation context data going forward. Currently, we're using the Messenger JavaScript SDK's database functions to send conversation context data, and accessing attributes like context.firstName within our scripts.

My question is: Once chat is fully deprecated, will we still be able to use these built-in context attributes (e.g., context.firstName) directly within our agent scripts? Or, will we need to start passing this information as custom variables for use in scripting?

Any clarification on how conversation context will be handled in web messaging after the chat deprecation would be greatly appreciated. Thanks in advance!


Visit Topic to respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, click here.