Skip to content

feat: route card scanner OCR through AI chat agent#46

Open
chuckmeyer wants to merge 13 commits into
mainfrom
feat/agent-card-search
Open

feat: route card scanner OCR through AI chat agent#46
chuckmeyer wants to merge 13 commits into
mainfrom
feat/agent-card-search

Conversation

@chuckmeyer
Copy link
Copy Markdown
Contributor

Summary

  • CardScanner now passes OCR text to /<eventId> via { initialChatMessage } route state instead of running cascade search
  • ChatAgent accepts initialMessage prop → passes messages + sendAutomaticallyWhen to <Chat> so the prompt auto-sends on mount
  • Search reads initialChatMessage from location state and forwards to ChatAgent
  • Removed: cascadeSearch, parsedName/parsedNumber/ocrText state, debug panel, 'searching' status branch

🤖 Generated with Claude Code

chuckmeyer and others added 4 commits March 12, 2026 00:18
- Root README now has full Event Management section (setup_event.sh steps, reset_and_ingest, switching active events)
- data-utilities README trimmed to individual script descriptions, CSV format, and output schema
- Cross-link between the two

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Instead of regex parsing + cascade search, OCR text is now passed
directly to the chat widget as an initial message that auto-sends
on mount. The agent handles card identification and returns results
conversationally.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 18, 2026

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

Project Deployment Actions Updated (UTC)
tcg-search Ready Ready Preview, Comment Mar 18, 2026 8:48pm

Request Review

Instead of passing unsupported props to <Chat>, use useInstantSearch
to access indexRenderState.chat.sendMessage and setOpen directly.
Based on guidance from the InstantSearch team.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Changes OCR prompt to start with "📷 Card scan" and uses CSS
line-clamp to show only the first line of user messages, hiding
the raw OCR text dump from end users.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…post

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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