Hi everyone,
I’m working on a Convai NPC in Unity and using the Dynamic Info Controller to keep the character updated with game-state data (e.g., player health, stress level, etc.).
At the moment I’m sending these values as strings, like:
dynamicInfoController.SetDynamicInfo("player stress is: ", + playerStress);
This works, but I’d much prefer to transmit the value as an actual numeric variable (int/float) so the back-end can treat it as a number—making it easier to compare thresholds, apply math, or trigger behavior rules without first converting from a string.
My questions:
- Does the current Convai API accept non-string data types (e.g., integers, floats, booleans) in the
SetDynamicInfo()
call—or are all parameters automatically cast to strings? - If native numeric types are not yet supported, is there a recommended workaround (e.g., JSON payloads, key-value pairs inside a single string, or custom tags) that preserves type information?
- Are there any plans on the roadmap to add explicit type support for Dynamic Information?
Thanks in advance for any guidance or examples.