Dynamic Info in Convai: Can We Pass Numeric Variables Instead of Strings?

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:

  1. 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?
  2. 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?
  3. Are there any plans on the roadmap to add explicit type support for Dynamic Information?

Thanks in advance for any guidance or examples.

Hello,

I am not sure if I understand your requirement. The Dynamic Info that you provide are added to the LLM Prompt. So it doesn’t matter why type you add, as eventually it will be converted to string.

Note this is an open field and Convai has no way of implementing game logic on that.