Configure memory for a character

Toggle Long-Term Memory on or off per character via the Convai dashboard or the CharacterService scripting API, and understand the global scope implications.

Long-term memory is disabled by default (MemorySettings.IsEnabled = false). No facts are extracted or stored until you explicitly enable it. You can enable or disable memory through the Convai dashboard or programmatically via client.Characters.


Enable or disable memory

This is the recommended approach for most teams. Changes take effect immediately without requiring a code update or redeployment.

  1. Sign in at convai.com.

  2. Open the character you want to configure.

  3. Select the Memory tab in the character's settings sidebar.

  4. Toggle Long-Term Memory to On.

  5. Click Save.

To disable, repeat the same steps and toggle Long-Term Memory to Off.


Disable memory without deleting records

To purge all memories for a user–character pair before disabling, use client.Memory.DeleteAllAsync followed by SetMemoryEnabledAsync. DeleteAllAsync removes memories for one specific user–character pair. To remove all end-user records across all characters instead, use client.EndUsers.DeleteAsync(endUserId). See Manage end-user records.

See Long-term memory usage examples for a complete reset pattern.


Next steps

End-user identityManage end-user records

Last updated

Was this helpful?