SetPersonaAttribute

The SetPersonaAttribute action sets a value for a specific attribute on a given persona. This is useful for storing persona-level data such as custom fields, preferences, or tracking information.

SetPersonaAttribute(
    id: str,
    field: str,
    value: str
)

Parameters

ParameterTypeDescription
idstrThe UUID of the persona whose attribute you want to set.
fieldstrThe name of the attribute to set.
valuestrThe value to assign to the attribute.

Example

{% set user_id = GetUser().id | string %}

{{ SetPersonaAttribute(id=user_id, field="preferred_language", value="English") }}

The above code snippet sets the "preferred_language" attribute for the current user's persona to "English."