Hi, I am transitioning from Make.com and have fallen at one of the first hurdles.
I just want to generate a Session ID if one does not exist in the incoming webhook and then extract it to use again and pass it to the webhook response for use on the next run for that user.
At this point my incoming webhook contains:
{
"sessionId": "",
"contactMessage": "Hi"
}
Then, if sessionId is blank, generate one, and use it in the Window Memory Buffer using something like:
Try the below… So we check to see if the sessionId is set if it is we use an Edit Fields node to create a standard data structure, If it isn’t we have the same Edit Fields but it generates the sessionID. We then use a No Op node to give us a common reference point later so we can use $('Data').first().item.keyname and it will give us the data from whichever Edit Fields node triggered it.