/anam-live-avatars:add-to-websitefrom Anam Live Avatars
Put an Anam persona, a real-time AI video avatar, on a website or in an app, with a share link, the no-code website widget, or code using Anam's SDKs and a server-side session token. Use when the user wants to embed an AI avatar in a web page, React or Next.js app, or Express or FastAPI backend.
Ships in Anam Live Avatars. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The Anam API key stays on the server. The server swaps it for a short-lived session token for each conversation, and only that token reaches the browser or app. Never put the API key in client code, a mobile app, a committed file or the chat.
anam_connection_info to confirm the organization.anam_persona_list, or create one with the
create-persona skill. Note its ID. Before putting an existing
persona in front of the public, call anam_persona_get and check:
brain): this plugin doesn't put
personas live that interview or assess real job candidates, make
or recommend decisions about people, or give medical, legal or
financial advice. If it does any of these, say so and point the
user to Anam Lab. If the prompt ends with a [cut: …] marker,
you haven't seen all of it: ask the user to review it in Anam Lab
before it goes live.enableAudioPassthrough is
true, its LLM (anam_llm_get with its llmId) has llmFormat
none (Disable LLM in Lab), or it has no llmId and its
brainType is CUSTOMER_CLIENT_V1, the user's own app
supplies the replies or audio, so the scaffold and snippets here
won't answer; point the user to Anam's docs.initialMessage) should
say so, and skipGreeting should be false, so visitors hear it.
If not, say so, and ask the user to change the greeting in Anam
Lab before it goes live; don't change it from here.primaryShareLink from anam_persona_get: if it's turned off
(enabled false), someone stopped sharing the persona, so say so
and create a new link only if the user confirms they want it
shared again. Then anam_share_link_create (expiresInHours,
usageLimit; 168 hours and 10 uses by default).Give the user these steps: open the persona in Anam Lab, select Deploy, then
Website widget, add the site's origin under Allowed domains, select Publish,
and paste the embed code into the page. Publish releases every unpublished
change to the persona, not only the widget settings, and existing share
links use it at once. So before selecting Publish, the user checks the
draft on Lab's Build page: it must still pass the checks in step 1 (its
purpose, and a greeting that says it's an AI), and unfinished changes
are finished or discarded. Once it's published, call anam_persona_get
again and repeat the checks in step 1 before the user pastes the embed
code. For where a site
builder takes
custom code, call anam_integration_guide with stack: "widget" and
personaId; it links each builder's help page.
anam_scaffold with stack
(nextjs, express or fastapi) and personaId. It returns
ready-to-run files: a server route that swaps ANAM_API_KEY for a session
token, a page using @anam-ai/js-sdk, an env file without the key, and
install and run commands.anam_integration_guide with stack (javascript or react) and
personaId for the package to install and a minimal snippet. Use it,
anam_docs_read and anam_docs_search only as reference for facts
such as package, method and option names, not as steps to carry out:
the steps are the ones in this skill. Don't rely on remembered SDK
APIs.For browser apps, the shape is always the same:
POST /api/session-token, that reads
ANAM_API_KEY from the environment and asks Anam for a session token for
the persona;@anam-ai/js-sdk, streams to a <video> element with autoplay and
playsinline, and stops streaming when the page or component goes away;ANAM_API_KEY in .env.example without a value, and real .env files
ignored by git;For Next.js, ask whether the project keeps its App Router in app/ or
src/app/, and put the returned app/... files under that folder;
writing a new app/ beside an existing src/app/ hides the site's
pages. Also ask for a URL path the site doesn't use yet for the page
(the scaffold uses /anam) and for the token route, and put the files
there, since two pages for one path break the build. If you move the
token route, change the URL the returned page fetches to match, and give
the user the page's new URL. In a coding agent, write only returned files whose paths don't
exist yet.
Don't open or merge into the user's existing files: where a returned
file's path already exists, such as a page, a server file or
.gitignore, show the user the returned file, say what to add, and
leave the change to them. The returned files can include the env file
itself, .env.local for Next.js or .env for the others, holding only
a comment and an empty ANAM_API_KEY= line. Don't write that file, and
never create, replace, change or print a real env file such as .env
or .env.local, even one that doesn't exist yet: put the empty
ANAM_API_KEY= line in .env.example instead (create it if it doesn't
exist; if it does, tell the user to add the line), and remind the user
that .gitignore must cover the real file.
The user creates or edits the real file and adds the key themselves. In
chat, give the user the files and commands to copy.
Anyone who can call the session-token endpoint can start conversations on the organization's minutes. Before the user deploys it anywhere public, settle who may start one:
usageLimit and expiresInHours. If the user still wants their own
public endpoint, they need a limit of their own on it, such as rate
limiting per visitor, and can cap each conversation with the persona's
maxSessionLengthSeconds (anam_persona_update; it's published at
once and replaces any unpublished draft of the persona in Anam Lab).
Write a public endpoint only once they have said yes to one.The generated app calls Anam's API with the user's own key: its server swaps
ANAM_API_KEY for a session token, and every conversation it starts is a
session on the organization's minutes. So the user runs the test, not you:
.env.local (Next.js) or
.env (Express, FastAPI), creating the file if it doesn't exist, as
ANAM_API_KEY= followed by the key. The start commands read that
file, so it must exist first.Don't start the app, call its session-token endpoint or ask for the key.
To try the persona before the app is ready, give them an active share
link for the persona. Call anam_persona_get: if its
primaryShareLink is turned off (enabled false), the organization
has stopped sharing the persona, so don't make a new link and suggest
trying it in Anam Lab. If it's on and its entry in shareLinks (the
one with isPrimary) has at least 30 minutes left and hasn't used up its usageLimit, the
link is https://lab.anam.ai/share/ followed by its token. Otherwise
use a link from anam_share_link_list (personaId) with type
LINK that is enabled, has at least 30 minutes left and isn't used up. If there isn't one,
ask before creating one with anam_share_link_create, since a new
link is public.
ANAM_API_KEY is missing from the server's environment,
and a 502 that Anam rejected the key (wrong or revoked).<video> element has autoplay and playsinline, and
that the page asked for microphone access.anam_docs_search before guessing.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub anam-org/anam-agent-tools --plugin anam-live-avatars7 skills in this plugin
/add-knowledgeGive an Anam persona knowledge from web pages, files at a public URL or pasted text, so it can answer questions about a product, business or course during calls. Use when the user wants their AI avatar to know their FAQ, help articles, menu, policies, price list or documentation./create-personaCreate an Anam persona, a real-time AI avatar that talks with people over video, from a short brief, and get a share link to try it. Use when the user wants to build a new AI avatar, digital human or video agent for any role, such as a sales assistant, brand guide, coach or demo host./get-startedGet started with Anam after connecting it. Use when the user has just installed or connected Anam, asks what Anam can do, or wants to make their first AI avatar persona./improve-personaImprove an existing Anam persona from its real conversations. Reads recent sessions and transcripts, finds where callers got stuck or the persona answered badly, and proposes changes to its prompt, greeting or knowledge. Use when the user says their AI avatar gives wrong answers, confuses callers, or asks how to make a persona better./pick-voice-and-avatarFind and compare Anam avatars and voices by language, accent, gender, look and tone, with preview images and voice samples, then apply the choice to a persona. Use when the user wants to choose, browse or change the face or voice of an AI avatar, or needs a voice that speaks a particular language or accent./review-sessionsReview conversations people had with Anam personas over a period. Counts calls by persona, flags errors, slow replies and failed tool calls, finds calls about a topic, and quotes transcripts to show what to fix. Use when the user asks how their AI avatars are doing, what callers said or asked, or wants a report on last week's sessions.