ERROR: Voiceflow variable update API stopped working
Hello, I have noticed since yesterday evening, this API: https://docs.voiceflow.com/reference/updatestatevariables-1 has stopped working - in a sense of that when we trigger this API programatically - the particular variable is not getting updated within VF properly.
In the API response - it will show that its updated, however in the correspodning VF project the variable value stays the same and is unchanged.
This is quite critical for us, because we are using this API to set a variable value via extension code, whereas we have custom client dashboard which shows these variable values and since yesterday it has stopped working.
I have triple checked that indeed it stopped working yesterday/today and since this time its indeed not showing within transcripts and the changed variable value via this api is not propagating correctly into VF.
11 Replies
@NiKo @Braden (Voiceflow CEO) @jacklyn Have not tested this, but seems like a problem.
Yes I have been examining this for couple of hours already and it seems like a bug - because it has been working until yesterday/today.
I am trying to find a workaround and use https://docs.voiceflow.com/reference/poststate-1 instead, which is only thing I have found could help me in this moment...however, I only want to change one variable via the PATCH request and I would assume it should propagate automatically within the flow at runtime.
Here is the comparison
- on the right: the exact json response when using PATCH request to update the variable 'LLM_Main_Response'
- on the left: the exact json response when using GET to fetch the full state - you can see the variable 'LLM_Main_Response' did not get updated

Why do you not just pass the data back into the flow at the end of the extension?
then update the var within VF?
its streaming extension - so its not 'stop-on-action' + I have to wait until the entire response finishes streaming and after that I need to somehow as you say - pass it back into the flow - I havent found other way than via variable update, or is there?
@W. Williams (SFT)
You could just use the agent step and have it collect that info along the way -maybe. Still, the API should work.
the PATCH method via API stopped working - its not getting propagated into the flow unfortunatelly...trying the PUT API now to update the entire state
Have you looked @ using the Interact API? Maybe @NiKo | Voiceflow has a suggestion?!
Isnt Interact API for recieving response from the agent ? What I need is the other way around - I have generated a message within the extension and need to pass it back into VF flow
@Braden @Daniel
@Pavel Čermák 🦾 We have created a ticket so the team can investigate.
thank you...keep me informed please, its crucial, because our solution depends on this actually