Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 3 potential issues.
Autofix Details
Bugbot Autofix prepared fixes for all 3 issues found in the latest run.
- ✅ Fixed: Setup script creates wrong API route directory
- Updated the quickstart setup script to create
app/api/agentandapp/api/conversation-tokeninstead of the unrelatedscribe-tokendirectory.
- Updated the quickstart setup script to create
- ✅ Fixed: Tentative agent lines never replaced by final text
- Changed
onMessageto replace the last tentative transcript line with the finalized agent text before falling back to deduplication or append behavior.
- Changed
- ✅ Fixed: Unused
@elevenlabs/clientdependency in quickstart package- Removed
@elevenlabs/clientfrom the quickstart package and from the setup script so regenerated examples no longer inherit the unused dependency.
- Removed
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Guardrail status never resets between sessions
- Starting a new session now resets
guardrailFiredbefore clearing the transcript so the banner only reflects the current session.
- Starting a new session now resets
PaulAsjes
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Two more examples in the examples repo. Main review should be the 2 PROMPT.md files.
Nextjs Quickstart for Agents
Nextjs Guardrails for Agents
Note
Low Risk
Adds new, self-contained Next.js example projects and setup scripts; changes are isolated to demo code but touch server-side API key usage and agent creation calls.
Overview
Adds two new Next.js agent demos under
agents/nextjs: a Quickstart example for creating an ElevenLabs voice agent and starting WebRTC sessions, and a Guardrails example that configures platform guardrails (prompt-injection + custom investment-advice blocking) and surfaces theguardrail_triggeredevent in the UI.Both examples include server routes (
/api/agent,/api/conversation-token) that keepELEVENLABS_API_KEYon the server, plus setup scripts (setup.sh), env templates, and minimal UI/transcript handling (including a sharedLiveWaveformcomponent and Tailwind/shadcn scaffolding).Written by Cursor Bugbot for commit ab816c5. This will update automatically on new commits. Configure here.