Back to All

Setting custom attributes values not working

Hi,

I'd like to set custom attributes with a view to sending it using a JSON API interaction. I want to set these attributes with extracted data from previous interactions. To do this, I include the following lines in an interaction:

[setAttribute attr1=[extractedData interaction=174248 fallback=0]]
[setAttribute attr2=[extractedData interaction=174259 fallback=0]]

But I can see in the logs of my api that my attributes are:

{attr1: '[extractedData interaction=174248 fallback=0',
attr2: '[extractedData interaction=174259 fallback=0'}

And some extra brackets ']' are printed in the chat.

Am I doing anything wrong?

Thanks for your help.