Hi Phaneendra,
I noticed that you named your input variable on the Flow as "activityevent". Is that right?
If so, you HAVE to name it as "jsonData" for it to receive the data from the event that was triggered (if you are using the Json Data Format, which it seems you are).
You can confirm that information here: https://help.mypurecloud.com/articles/create-a-trigger/
"For JSON data format, the entire event is sent to the workflow as a JSON object. The workflow must be configured to have an input variable named jsonData of type JSON."
But aside from that, you also mentioned that you often see no workflow run in the history, which might also indicate something wrong in the Trigger setting.
But before checking that, try changing your workflow to use the jsonData input variable, this should at least fix the flow. Then you can check if every NOT_RESPONDING status is actually being triggered correctly.
------------------------------
Marcello Jabur
------------------------------
Original Message:
Sent: 09-10-2025 03:20
From: Phaneendra Avatapalli
Subject: v2.users.{id}.activity trigger for NOT_RESPONDING isn't invoking workflow
Goal: Auto-reset agents who hit NOT_RESPONDING back to IDLE, with a cap of 2 resets per 1 minute (we log resetCount, lastResetTime, Not Responding start Time to a data table keyed by userId).
Trigger:
Topic: v2.users.{id}.activity
Data format: Json
Match: routingStatus.status == "NOT_RESPONDING"
Target: Workflow (Published)
Workflow (first step):
JSON input activityevent (Input to flow = ON)
Parse (root):
State.userId = GetJsonObjectProperty(Flow.activityevent,"id")
State.nrStartUtc = GetJsonObjectProperty(GetJsonObjectProperty(Flow.activityevent,"routingStatus"),"startTime")
State.status = GetJsonObjectProperty(GetJsonObjectProperty(Flow.activityevent,"routingStatus"),"status")
What works: Data action PUT /users/{id}/routingstatus → IDLE succeeds when tested directly; GET /users/{id}/routingstatus shows status=NOT_RESPONDING when applicable.
Issue: When an agent times out to NOT_RESPONDING, I often see no Workflow run (Run History), so status isn't reset. Trigger tester matches but (as expected) doesn't execute.
Any help with the community would be very helpful.
Regards,
Phaneendra
#API/Integrations
------------------------------
Phaneendra
Technical Solutions Consultant
Monash University
Australia
------------------------------