Skip to content

Instrument Pendo Track Agent#1

Open
novus-by-pendo[bot] wants to merge 1 commit into
mainfrom
novus/instrument-pendo-track-agent
Open

Instrument Pendo Track Agent#1
novus-by-pendo[bot] wants to merge 1 commit into
mainfrom
novus/instrument-pendo-track-agent

Conversation

@novus-by-pendo

Copy link
Copy Markdown

Summary

Adds pendo.trackAgent() calls to track user interactions with the ElevenLabs voice agent in src/app/components/Conversation.tsx.

Changes

src/env.d.ts

  • Added Window.pendo TypeScript declaration for trackAgent method.

src/app/components/Conversation.tsx

Three tracking points added using agent ID DKUvQGb97-8D74SF6S1NfahNf1U:

  1. "prompt" — fires in startConversation() when the user clicks "Start interview" (after mic access is granted, before the ElevenLabs session starts). Content describes the product being interviewed about.

  2. "agent_response" — fires in onConnect() when the ElevenLabs voice agent successfully connects and is ready for conversation.

  3. "agent_response" — fires in onDisconnect() (success path only) when the interview completes normally. Not fired on error disconnects.

All calls use sessionId as the conversationId and crypto.randomUUID() for unique messageId values. Each call is guarded with a window.pendo existence check.

Not instrumented

  • user_reaction: No feedback UI (thumbs up/down, retry) exists in the component.

@vercel

vercel Bot commented Jun 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
voicescope Ready Ready Preview, Comment Jun 19, 2026 5:18am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant