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
| Parameter | Type | Description |
|---|---|---|
id | UUID | The Persona id |
Returns object with properties
| Parameter | Type | Description |
|---|---|---|
id | UUID | The unique identifier of the Persona |
title | str | The title of the Persona |
description | str | The description of the Persona |
name | str | The name of the Persona |
type | Literal['agent', 'user'] | The type of the Persona |
Example
{% set user_id = GetUser().id | string %}
{% set persona = GetPersona(id=user_id) %}
{{ Return(val=persona.name) }}Updated 19 days ago
