Memory Conditions allow you to control when lexicon entries activate based on the current state of your chat's memory. This gives you powerful conditional logic for dynamic storytelling, RPG mechanics, and context-aware content.
Instead of lexicon entries activating only when keywords are mentioned, you can now add memory conditions that must be met first. The entry will only activate if:
Memory Conditions can be added when editing any lexicon entry:
Look for the "Memory Conditions" section in the editor.
Click the "Add Memory Condition" button to create a new condition.
Each condition has three parts:
The path to the value in chat memory you want to check.
Examples:
location.city - Check the city in the location object