Trying to push custom JSON attributes into the session using the Set Participant Data action within a Studio IVR. The goal is to have these variables available downstream in an Architect Data Action.
Here’s the setup:
- Studio v2.5 flow
- Action: Set Participant Data
- Key:
cust_prefs - Value:
{"theme": "dark", "lang": "en"} - Scope:
session
The flow completes without error. But when the call hits the Architect Data Action that queries /api/v2/interactions/participants/{id}, those fields are missing. I’m seeing the standard name and state fields, but nothing from my payload.
I’ve tried switching the scope to interaction and call, but the result is the same. Is this action even supposed to persist to the participant resource in the API, or does it only live in the Studio context? I assumed session would map to the participant ID.
Code snippet from the Studio JSON export:
{
"actionType": "SetParticipantData",
"dataKey": "cust_prefs",
"dataValue": "{\"theme\": \"dark\"}",
"scope": "session"
}
Any idea why the API response is clean?