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
)

Where:

  • id: The UUID of the persona whose attribute you want to retrieve.
  • field: The name of the attribute to retrieve.

Example

{{Set(name="user_id", value=GetUser(field="id"))}}
{{Set(name="location", value=GetPersonaAttribute(id=user_id, field="current_location"))}}

{{SendMessage(message=location)}}

The above code snippet retrieves the "current_location" attribute for the current user's persona and sends the value to the chat.