livechat / moments-apps-examples

2 stars 6 forks source link

Where attributes goes? #7

Open kuriel-trivu opened 3 years ago

kuriel-trivu commented 3 years ago

when using method:

momentsSDK.setAttributes(attrs)

attrs are key : value (both strings)

When moments is closed, the chat does not get the custom attributes, like {{name}} for example, the attribute was typed in the moments app.

The next message sent by the bot is like:

Thank you {{name}}, we are done.

instead of

Thank you Bob, we are done.

(for example)

kuriel-trivu commented 3 years ago

In the log we can see the object passed in the method setAttributes, in the next message we can see the {{name}} instead of the value:

image

tcollins590 commented 2 years ago

@kuriel-trivu did you manage to get this working?

qasim5611 commented 1 year ago

momentsSDK not working in my case, Whenever I tried it says timeOut