Where and how can I edit System Variables?
How can I effectively modify and incorporate new system variables, or simply variables, into Novu?
7 Replies
@emilpearce
There are 3 types of system variables
1. subscriber
2. step
3. branding
1. It depends on subscriber details, so to modify this we need to update the subscriber
2. this depends on digest events, so it depends on how many events the user has triggered and those events got digested. One can not directly modify these
3. branding related variables can be updated on brand page https://web.novu.co/brand
Can I create more subscriber oriented variables?
For example if my subscriber is on "A plan" or "B plan"
Something like "{{subscriber.plan}}"
You can use the data field. Data field is unstructured and does not have a fixed schema
{{subscriber.data.plan}}
https://docs.novu.co/platform/subscribers#subscriber-attributes
If I introduce a new variable in my database like "plan" or "social security code", I could add it to my subscribers through the data object?
Like so:
Yes it will work
And then use it when creating a notification?
Yes you are correct