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
| Parameter | Type | Description |
|---|---|---|
id | str | The UUID of the persona whose attribute you want to set. |
field | str | The name of the attribute to set. |
value | str | The 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."
Updated about 2 hours ago
