UpdateUser

The UpdateUser action updates a specific field (name) of a user with a new value. The name parameter must be one of the predefined options ("title", "description", "name"), and the value is the string representing the new data to set for that field.

UpdateUser(
  name: str, 
  value: str
)

Where:

  • name: Literal["title", "description", "name"].
  • value: New string value to replace the existing string.

Example

{{UpdateUser(name="name", value="User")}}

{{set(name="user_name", value=GetUser(field="name"))}}
{{SendMessage(message=user_name)}}
User

The above code snippet resets the user's name to "User" and then retrieves and displays it to confirm the update.