SetState
The SetState action assigns a value to a specific Flow State field. For this action to work, the Flow needs to have a State Field with this exact name.
SetState(
name= "<State Field name>",
value= "<State Field value>"
)
Where:
- name: The name of the Flow State field to set.
- value: The value to assign to the state field.
Example
{{SetState(name="attempts_number", value="0")}}
{{SetState(name="voicemail_detected", value="False")}}
{{set(name="attempts", value=GetState(name="attempts_number"))}}
{{SendMessage(message=attempts)}}0The above code snippet sets two state fields—attempts_number to "0" and voicemail_detected to "False"—then retrieves and displays the value of attempts_number.
Updated 17 days ago
