You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Content redaction guide: pay example runs set before pay and uses boolean security_code / postal_code #956
The pay example's SWML action runs set with ${pay_result} before pay:
"main": [
{ "set": { "ai_response": "The payment result was ${pay_result}. …" } },
{ "pay": { "...": "..." } }
]
set resolves ${pay_result} when it runs, and an unset variable resolves to nothing, so the agent is told a blank result. Put pay first.
The same block has "security_code": true and "postal_code": true. The platform reads these as the strings "true" / "false" and ignores a JSON boolean, so the example should use the string form, as the SWML pay reference now does.
Found during the #867 review; the lines are outside that PR's hunks. The TypeScript SDK's FunctionResult.pay() currently emits the same set-before-pay order (signalwire/signalwire-typescript issue filed separately).
Activity