Sync behavior and timing
Understand how the SDK transmits Replace, Append, and Reset messages for each Dynamic Context operation, including queueing and Apply() behavior.
Canonical context format
{StateName} is {Value}
{AnotherState} is {Value}
Event text line one
Event text line twocontext.SetState("Station", "Bay 3"); // position 1
context.SetState("HazardLevel", "High"); // position 2
context.AddEvent("Operator bypassed interlock");
context.SetState("Station", "Bay 7"); // updates value; position stays at 1Station is Bay 7
HazardLevel is High
Operator bypassed interlockSync scenarios during active conversations
Adding a new state
Updating an existing state
Removing a state
Batch update with SetStates
SetStatesAdding an event
Resetting all context
Pre-conversation queuing
Apply() exception
Apply() exceptionNext steps
Dynamic context scripting APITroubleshoot dynamic contextLast updated
Was this helpful?