Add Visitor identity to your agent stack
A Visitor is the stable identity for whoever an agent run was for — a chat user, a ticket requester, a calling agent. Identify them once per request and the samevisitor_id shows up on every session your agent reports afterward,
regardless of which framework ran it.
Internal release.
@atlanai/sdk and atlan-ai are distributed
org-internal today (GitHub Packages / release artifacts, not npm or PyPI).
Confirm access with your Atlan contact before wiring this into a
customer-facing deployment.1. Install the tracing SDK
2. Initialize the client once at startup
Fresh integration: identify on every new run
For an agent that doesn’t callidentify yet — new or already live, it’s the
same one-time code change either way.
3. Identify the visitor at the start of each request. Use a stable id
from wherever the request came from — a Slack user id, a ticket requester’s
id, a calling agent’s handle — not just an email.
identify is idempotent on (identity_source, external_id) — call it again
on every request and it refreshes the existing profile instead of creating a
duplicate.
4. Carry the visitor through the run, whatever framework runs it. Wrap
the call into your agent — LangGraph, CrewAI, the OpenAI Agents SDK, Google
ADK, the Claude Agent SDK, or a plain loop — in the SDK’s attribute
propagation. This stamps the visitor id on every span emitted inside,
including third-party instrumentation, without changing how the framework
itself runs:
Backfill: an agent already running in prod
Your agent already has sessions and traces in Agent Registry from before you addedidentify. “Backfill” here means two different things — they are not
the same operation.
Pre-seed the Visitor directory from your own user list. If you already
have an export of known users (Zendesk requesters, Slack members, CRM
contacts), identify them all up front instead of waiting for each one’s next
request — the same identify call as above, looped over your existing list:
link_status) is already resolved the first time a
known user’s id comes through, instead of resolving cold on their next visit.
Agent API reference
Browse the session and visitor operations.