SetAgent
The SetAgent action assigns a value to a specific field of an Agent Persona.
SetAgent(
name= "title" | "description" | "name"",
value= "<new value of the field>"
)
Example
{{!Read the current Agent name}}
{{set(name="agent_name", value=GetAgent(field="name"))}}
{{SendMessage(message=agent_name)}}
{{!Change the Agent name}}
{{SetAgent(name="name", value="New Agent Name")}}
{{!Read the changed Agent name}}
{{set(name="agent_name", value=GetAgent(field="name"))}}
{{SendMessage(message=agent_name)}}
Old Agent Name
New Agent Name
Updated 9 months ago