ComfyUI Node

AZAll Who Am I

Give your agent a backstory that sticks

By cronos3k·Created 5 months ago·Updated 5 months ago· 0
AZAll Who Am I
  • config
  • identity
set_identity

An LLM with no instructions is just a random text generator with better grammar. This node is where you fix that for an AgentAZAll agent: it sets - or reads back - the agent's identity description, and that description gets baked into the context the agent sees on every run. Think of it as the persistent "you are X" line that survives restarts, queue resets, and directory changes.

It's one of the three config nodes in the pack (with Setup and Current Task), and the pattern is the same as all of them: feed it a config, optionally write a new value, get the current value back. The twist is that it stores the identity as a plain text file in your agent's mailbox tree, so it's inspectable, editable by hand, and portable if you copy the data folder.

How it works

Leave set_identity empty and it reads the latest identity file it can find and returns it; if you've never set one, it returns a sensible default - "I am comfyui-agent@localhost", using whatever agent name you configured in Setup. Fill in set_identity and it writes the text to <mailbox>/<agent>/<date>/who_am_i/identity.txt and hands it back to you as the output.

Because it's date-stamped in the folder tree, writing a new identity creates a new dated entry rather than clobbering history - and reads always pick the latest one. If you've used the pack's System Prompt node, you've already seen the payoff: it pulls that identity text straight into the system prompt's "## Your Identity" section.

The inputs that matter

  • config (required) - wire it from an AZAll Setup node. Every config node in this pack is useless without it.
  • set_identity - the persona text to persist. Empty means "read current identity." Write something like You are Thorne, a brooding fantasy novelist who writes in short, punchy sentences. - that's the whole trick.

The single identity output is a plain string. Feed it into a Text Display to check it, or just let the System Prompt node pick it up automatically (it reads the same file, so you don't even have to wire it).

Installing it

It's part of cronos3k/comfyui-agentazall. Install the pack once - ComfyUI Manager (search "AgentAZAll") or:

cd ComfyUI/custom_nodes
git clone https://github.com/cronos3k/comfyui-agentazall.git
pip install "agentazall>=1.0.13"
# restart ComfyUI

All 20 nodes come with it; no extra models, no keys.

Common issues

The two things that trip people up are shared with the whole pack. First, the data lives under ComfyUI's working directory, so if state seems to reset, your mailbox_dir moved - set it explicitly in Setup. Second, this is a get-or-set node with no dedicated "delete," so if you want to clear an identity, write a new one (or delete the who_am_i folder by hand - it's just text). Also remember it's a keyword-level concept, not semantics: the file contents are used verbatim, so write the identity the way you want the LLM to actually receive it.

CategoryAgentAZAll

Inputs (2)

NameTypeDefaultDescription
configAZALL_CONFIG
set_identityoptSTRING

Outputs (1)

NameTypeDescription
identitySTRING