I was wondering if there is a way to use a function to lock the output, like in excel when you use $, to lock a formula… how do I get a constant return of the data?
I have looked around here, and asked AI for help, but nothing has worked.
If you want to avoid things like [undefined] appear when a specific field is only occasionally present in the output you can use expressions like {{ messages.content.whatever ?? ""}}. This will efectively add "" when a data point is not available.
[Object Object] appears when you try to put an object (a structure with fields) into a context where a string expected. This how Javascript deals with those situations. The good point to start is to use expressions like {{ JSON.stringify(data.field.whateverObject) }} to understand the structure, problem and if the output with special characters in it is deemed better than having nothing (i.e. [Object object]).
You may also want to use the Structured Output Parser node/tool:
If you find anything above helpful, please mark this post as a Solution.
Thank you, I have added a set node before the social outputs. I have tested it, and it seems to have worked. I will leave it a few hours to do it’s thing as sometimes the output works a few times then switches up.