Update character actions at runtime
Send an action configuration patch mid-session, track its update ID, and confirm the backend's acknowledgement before assuming the change applied.
Prerequisites
Send a runtime action patch
1
Track the update ID
Read the backend acknowledgement
using Convai.Domain.DomainEvents.Runtime;
using Convai.Runtime.Components;
ConvaiManager.ActiveManager.Events.OnDynamicContextUpdateResultReceived += result =>
{
if (result.UpdateId != "lever-unlock-01")
return;
if (result.Status == "success")
{
Debug.Log($"Actions confirmed: objects={result.ObjectsCount}, attention={result.CurrentAttentionObject}");
}
else
{
Debug.LogWarning($"Action patch failed: {result.Status}");
}
};Property
Type
Meaning
Troubleshooting
Patch is rejected before it sends
No acknowledgement ever arrives
Next steps
Attention and reference groundingTroubleshoot character actionsLast updated
Was this helpful?