GetPersona

The GetPersona aсtion retrieves a specific field value of a specific Persona. The Persona you want can be received by passing its persona_id. The field you want can be received by passing its name in the field parameter.

GetPersona(
  id="<UUID of the Persona>",
)

Parameters

ParameterTypeDescription
idUUIDThe Persona id

Returns object with properties

ParameterTypeDescription
idUUIDThe unique identifier of the Persona
titlestrThe title of the Persona
descriptionstrThe description of the Persona
namestrThe name of the Persona
typeLiteral['agent', 'user']The type of the Persona

Example

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

{% set persona = GetPersona(id=user_id) %}

{{ Return(val=persona.name) }}