visitor-identification

visitor-identification is a skill for Claude Code, Codex from HubSpot/agent-cli-skills. It costs 45 tokens per session (838 once invoked), scanned A, original, Apache-2.0.

A server-side tool that creates a short-lived HubSpot Conversations token to identify a known website visitor by email. The website's chat widget uses the token to link a chat session to that visitor's CRM record.

In plain words
What is it for?
Use it on a server before starting a HubSpot chat session for a known contact, subject to the required account tier and permission scope.
Why use it?
It connects an identified visitor's live chat to the correct CRM contact without exposing the private app credential in browser code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it on a server before starting a HubSpot chat session for a known contact, subject to the required account tier and permission scope.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hubspot/agent-cli-skills/visitor-identification
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HubSpot/agent-cli-skills --skill visitor-identification
Clone the repo
git clone --depth 1 https://github.com/HubSpot/agent-cli-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for visitor-identification

README.md
[![agentmods](https://agentmods.dev/badge/skills/hubspot/agent-cli-skills/visitor-identification/github.svg)](https://agentmods.dev/skills/hubspot/agent-cli-skills/visitor-identification)
Your own site
<a href="https://agentmods.dev/skills/hubspot/agent-cli-skills/visitor-identification"><img src="https://agentmods.dev/badge/skills/hubspot/agent-cli-skills/visitor-identification/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for visitor-identification

Your own site · 80×15
<a href="https://agentmods.dev/skills/hubspot/agent-cli-skills/visitor-identification"><img src="https://agentmods.dev/badge/skills/hubspot/agent-cli-skills/visitor-identification.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 838 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00045 $0.00838
Opus 5.5 $0.00018 $0.00335
Sonnet 5.5 $0.00009 $0.00168
Haiku 4.5 $0.00005 $0.00084

Measured 1mo ago against content hash 9818ed06392e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

visitor-identification scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

visitor-identification/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Requires the conversations command group from hub-cli PR #251. hubspot conversations visitor-identification --help is authoritative.

What visitor identification is

When a known contact (someone whose email you have) visits your website, the HubSpot Conversations chat widget can identify them — linking the live chat session to their CRM record. To do this, your server generates a short-lived signed token and passes it to the HubSpot Conversations JavaScript SDK. The SDK sends the token to HubSpot, which verifies it and associates the chat session with the contact.

The token is NOT a general authentication credential. It identifies one visitor for one chat session and is useless outside the Conversations SDK.

Requirements

Requirement Detail
Account tier Professional or Enterprise
Required scope conversations.visitor_identification.tokens.create
Token lifetime 12 hours; cache across page loads and refresh at least every 12 hours
Generation side Server-side only — never generate in browser JavaScript; your private app token must remain secret

Generate a token

# Minimal — email only
hubspot conversations visitor-identification create-token \
  --email [email protected]

# With name (populates the contact preview in the widget)
hubspot conversations visitor-identification create-token \
  --email [email protected] \
  --first-name Jane \
  --last-name Doe

Output:

{"ok":true,"data":{"token":"eyJhbGciOiJIUzI1NiJ9..."}}

If the private app token is missing the required scope the CLI returns a 403 with a scope hint:

{"ok":false,"error":{"status":403,"message":"Missing scope: conversations.visitor_identification.tokens.create"}}

Setting up the private app token

The conversations.visitor_identification.tokens.create scope must be granted on the HubSpot private app whose token is in HUBSPOT_ACCESS_TOKEN. To add the scope:

  1. In HubSpot: Settings → Integrations → Private Apps → [your app] → Scopes
  2. Under "CRM", enable conversations.visitor_identification.tokens.create
  3. Rotate the token if required after scope change

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 93 lines · 45 tokens per session scan A 9818ed06392e

Subscribe to this mod's changes

visitor-identification is a skill published in the GitHub repository HubSpot/agent-cli-skills (28 stars, last pushed 9d ago), licensed Apache-2.0. It adds 45 tokens to every session and 838 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-26.

Related

visitor-identification compared with skills from other repositories

visitor-identification next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
visitor-identificationHubSpot/agent-cli-skillsSkill289d agoApache-2.0A45Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.2kyesterdayMITA78Claude Code
fastapi-router-pymicrosoft/skillsSkill3.2kyesterdayMITA46Claude Code
dev-runtimelangwatch/langwatchSkill5.0kyesterdayApache-2.0A172Claude Code
api-designericrisco/rsc-harnessSkill5032d agoMITA105Claude Code, Codex
migrate-segw-to-raparc-mcp/arc-1Skill252yesterdayMITA106Claude Code