Right now, I code the webhooks as another prompt call,
ie
[ai do this]
The return is always singular
eg
%value% = [ai do this]
The return box has to return a single value since its actually just a sandboxed javascript eval.
Right now its set to return everything as one string, so even if you returned an object the output into the article is that of an object JSON string.
Theoretically though you could return multiple values like this though,
return ({%var1%:result.choices[0].message.content, %var2%:'hello world'})
It would have to be a non prompt [ ] method, maybe a box under user macros?
Webhook macros?
I’ll test the current implementation a bit more and explore some ideas of getting in multiple outputs