GetPersonaAttribute
The GetPersonaAttribute action retrieves the value of a specific attribute for a given persona. This is useful for reading persona-level data such as custom fields, stored preferences, or tracking information.
GetPersonaAttribute(
id: str,
field: str
)
Parameters
| Parameter | Type | Description |
|---|---|---|
id | str | The UUID of the persona whose attribute you want to retrieve. |
field | str | The name of the attribute to retrieve. |
Example
{% set user_id = GetUser().id | string %}
{% set location = GetPersonaAttribute(id=user_id, field="current_location") %}
{{ Return(val=location) }}The above code snippet retrieves the "current_location" attribute for the current user's persona and returns value from skill.
Updated 4 days ago
