Quick question about mapping JSON responses to Architect variables in a Data Action. I am building a lightweight SvelteKit server route to fetch queue stats, but the external integration in Architect is failing to populate the variables despite a successful HTTP response.
I have a Data Action configured to call my internal endpoint https://internal-portal.example.com/api/queue-status. The method is GET. I am passing the queueId as a query parameter. The response from my server is valid JSON:
{
"status": "active",
"waitTime": 45,
"agentsAvailable": 3
}
However, when I test the flow in Architect, the variables status, waitTime, and agentsAvailable are all null after the Data Action completes. The Data Action itself shows a 200 OK status. I suspect the JSON path mapping is incorrect or the response format is not being parsed as expected by the platform.
My current mapping configuration in the Data Action is:
status:$.statuswaitTime:$.waitTimeagentsAvailable:$.agentsAvailable
I have verified the endpoint returns Content-Type: application/json. I am using SvelteKit v1.0 on the backend and the Genesys Cloud Platform API v2. The request headers include the necessary authentication via an OAuth proxy pattern.
Steps I have tried:
- Verified the JSON structure using Postman. The keys match exactly.
- Checked the Data Action logs. No errors, just empty variable values.
- Tried using
$.response.statusinstead of$.status. Still null.
Is there a specific JSON path syntax required for Data Actions? Or is there a hidden requirement for the response payload structure? Any insights would be appreciated. I am stuck on this intermediate integration task.