Tavus replica video

From calesthio/generative-media-skills · View interactive version

Tavus replica video is an AI agent skill from the GitHub repository calesthio/generative-media-skills. Use for producing Tavus AI-human videos and real-time avatar conversations with Tavus Faces/Replicas, PALs/Personas, async Video Generation, CVI conversations, consent-safe likeness workflows, webhooks, backgrounds, localization, and avatar QA.

How to use this skill

Skill file

Tavus replica video production

Use this skill when a task involves Tavus avatars, replicas, faces, PALs/personas, generated talking-head files, real-time conversational video agents, or Tavus-powered lip-synced presenter output.

Documented facts in this skill were checked against official Tavus docs, policies, and pricing on 2026-07-10. Treat API names, model names, plan limits, stock replica availability, language support, pricing, and policy wording as volatile; verify them again before committing spend, launch scope, or regulated workflows.

The current Tavus object model

Tavus docs now use:

Legacy terms still appear in APIs and production requests:

Do not force the user to rename their mental model. Translate cleanly: "your Tavus replica ID is the face ID needed by the video endpoint."

Choose the Tavus path first

Pick the path by deliverable, not by habit.

  1. One-way talking-head file: use async Video Generation. Call POST /v2/videos with replica_id plus either script or audio_url; poll GET /v2/videos/{video_id} until ready, then capture download_url, stream_url, and hosted_url.
  2. Interactive AI human / live agent: use CVI. Create or select a Face, create or select a PAL, then call POST /v2/conversations with face_id and pal_id.
  3. Need a new likeness: create/train the Face first with POST /v2/faces. Use video training for highest fidelity and customer-facing work; use image training when speed/setup simplicity matters more than personalized expressions.
  4. Need exact audio, approved voiceover, or non-Tavus TTS: use the async Video API with audio_url rather than script, or use CVI echo mode when the app supplies utterances in real time.
  5. Need an existing speaker video re-lip-synced: Tavus Terms define LipSync as a platform feature, but do not assume an endpoint or schema from memory. Check the current OpenAPI contract before promising this path. If no documented endpoint is available, route through async avatar generation with audio_url or choose another documented lip-sync provider.

Consent and rights are a hard gate

Before any custom face, likeness, voice, or biometric material is uploaded, require evidence that the depicted person has granted explicit, informed consent for:

Reject or pause when consent is absent, ambiguous, expired, or outside scope. Do not create replicas of real people, public figures, employees, customers, minors, or private individuals without explicit consent. Do not use Tavus stock replicas in ways that imply the actor personally endorses opinions, conditions, identity attributes, political positions, fundraising, news, or sensitive current-event claims unless Tavus has provided the required permission. Clearly disclose to end users when they are interacting with AI-generated content or an AI-powered agent.

Tavus policy and privacy notes to carry into production:

Face creation and training workflow

Use Face creation when the user needs their own presenter, a branded character, or a consented person rather than a stock face.

Video-to-face

Documented facts, verified 2026-07-10:

Production heuristic:

Example API skeleton:

{
  "face_name": "consented-founder-presenter",
  "train_video_url": "https://example-bucket.s3.amazonaws.com/founder-training.mp4?...",
  "callback_url": "https://example.com/tavus/webhook",
  "model_name": "phoenix-4"
}

Image-to-face

Documented facts, verified 2026-07-10:

Production heuristic:

Async Video Generation

Use async Video Generation when the desired artifact is a finished video file for sharing, embedding, ads, outbound sales, enablement, product support, or localization variants.

Documented facts, verified 2026-07-10:

API skeleton from text:

{
  "replica_id": "r90bbd427f71",
  "script": "Hi Maya, I reviewed your onboarding workflow and saw three places where we can remove manual follow-up...",
  "video_name": "maya-onboarding-followup",
  "background_url": "https://example.com/product",
  "callback_url": "https://example.com/tavus/video-webhook"
}

API skeleton from approved audio:

{
  "replica_id": "r90bbd427f71",
  "audio_url": "https://example-bucket.s3.amazonaws.com/approved-es-mx-voiceover.wav?...",
  "video_name": "support-intro-es-mx",
  "background_source_url": "https://example-bucket.s3.amazonaws.com/product-loop.mp4?..."
}

Script writing for Tavus generated audio

These are production heuristics, not Tavus API requirements.

CVI / PAL conversations

Use CVI when the avatar must listen, see, respond, remember, coach, support, interview, qualify, or interact in a live room.

Documented facts, verified 2026-07-10:

Production heuristics for PAL authoring:

Example PAL planning payload:

{
  "pal_name": "returns-support-pal",
  "pipeline_mode": "full",
  "default_face_id": "r90bbd427f71",
  "system_prompt": "You are a calm retail returns specialist. Help customers understand return eligibility, collect only the minimum needed order context, never promise refunds outside policy, and escalate billing disputes to a human agent.",
  "document_tags": ["returns_policy", "shipping_policy"],
  "guardrail_tags": ["customer_support_safety"]
}

Example conversation payload:

{
  "face_id": "r90bbd427f71",
  "pal_id": "pcb7a34da5fe",
  "conversation_name": "returns-support-demo",
  "custom_greeting": "Hi, I can help you check return options. What did you order?",
  "callback_url": "https://example.com/tavus/conversation-webhook",
  "require_auth": true,
  "max_participants": 2
}

Webhooks, lifecycle, and custody

Always design a lifecycle plan before running production jobs.

For async videos:

For face training:

For CVI:

QA checklist

Run QA on both the media and the governance record.

Identity and consent

Performance and voice

Framing, background, and delivery

CVI-specific QA

Common failure modes and fixes

Complete example: personalized outbound product video

Example production intent: create short, consent-safe, personalized sales videos from an approved Tavus stock or company-owned Face.

Approach:

  1. Confirm the face is approved for commercial outbound use and does not imply personal endorsement beyond the approved presenter role.
  2. Use async Video Generation, not CVI, because the deliverable is a shareable file.
  3. Generate one pilot first; do not batch until QA passes.
  4. Use a public product landing page as background_url only if it is stable and safe to capture.
  5. Store each request/response in the campaign ledger.

Example script:

Hi Jordan - I saw your team is hiring onboarding specialists, which usually means your customer handoffs are getting more complex. Acme Flow can turn each kickoff into a guided checklist, so your team spends less time chasing updates and more time helping customers launch. If you want, I can send over a two-minute walkthrough built around your onboarding page.

Example request:

{
  "replica_id": "r90bbd427f71",
  "script": "Hi Jordan - I saw your team is hiring onboarding specialists, which usually means your customer handoffs are getting more complex. Acme Flow can turn each kickoff into a guided checklist, so your team spends less time chasing updates and more time helping customers launch. If you want, I can send over a two-minute walkthrough built around your onboarding page.",
  "video_name": "jordan-acme-flow-outbound-pilot",
  "background_url": "https://example.com/onboarding",
  "callback_url": "https://example.com/webhooks/tavus-video"
}

QA focus:

Complete example: real-time support PAL

Example production intent: deploy an AI human that answers basic support questions and hands off uncertain cases.

Approach:

  1. Create or select a Face approved for support use.
  2. Create a PAL with a support-specific system prompt, knowledge docs, guardrails, and objectives.
  3. Start a test conversation with test_mode: true for payload validation, then a real private room for QA.
  4. Capture callbacks and transcripts for review only if the user consent and privacy posture allow.

Example PAL prompt:

You are Nova, a customer support PAL for Acme Flow. Your job is to help users understand onboarding checklists, integrations, and billing-plan boundaries. Use only the attached knowledge documents for factual product claims. If the customer asks for legal advice, refunds outside policy, account deletion, security incidents, or anything involving personal data you cannot verify, explain that a human specialist must help and offer to create a support ticket. Keep answers under 90 words unless the user asks for detail.

Example conversation context:

{
  "face_id": "r90bbd427f71",
  "pal_id": "pcb7a34da5fe",
  "conversation_name": "support-qa-session-001",
  "conversational_context": "The user is testing whether Acme Flow supports Slack notifications for onboarding checklist changes.",
  "custom_greeting": "Hi, I'm Nova. I can help with Acme Flow onboarding questions. What would you like to check?",
  "require_auth": true,
  "max_participants": 2,
  "callback_url": "https://example.com/webhooks/tavus-cvi"
}

QA focus:

Complete example: localization with approved audio

Example production intent: create Spanish and French versions of a founder explainer with exact reviewed translations and voice delivery.

Approach:

  1. Confirm the founder's consent covers localized versions and the target distribution.
  2. Translate and transcreate the script; have native reviewers approve pronunciation-sensitive names.
  3. Generate or record final localized audio externally if exact voice, pacing, and legal copy are important.
  4. Use audio_url with the async Video API for each locale.
  5. QA lip sync, subtitles, and localized CTA separately per locale.

Example request:

{
  "replica_id": "r90bbd427f71",
  "audio_url": "https://example-bucket.s3.amazonaws.com/founder-explainer-es-mx-approved.wav?...",
  "video_name": "founder-explainer-es-mx-v1",
  "background_source_url": "https://example-bucket.s3.amazonaws.com/product-loop-16x9.mp4?...",
  "callback_url": "https://example.com/webhooks/tavus-video"
}

QA focus:

Source notes

Official/authoritative sources used for documented claims:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.