Skip to content

feat: integrate VAPI functionality with voice assistant support and e…#21

Merged
mashharuki merged 1 commit intomainfrom
vapi_hackathon_frontend
Jun 14, 2025
Merged

feat: integrate VAPI functionality with voice assistant support and e…#21
mashharuki merged 1 commit intomainfrom
vapi_hackathon_frontend

Conversation

@mashharuki
Copy link
Collaborator

This pull request introduces significant updates to integrate VAPI (Voice Assistant API) functionality into the frontend_vapi project. The changes include adding environment variables for configuration, modifying the AgentChat component to support VAPI-based voice conversations, and implementing a custom hook (useVapi) for managing VAPI interactions. These updates enhance the application's capabilities by enabling voice-based task creation and assistant interactions.

VAPI Integration:

  • Environment Configuration: Added NEXT_PUBLIC_VAPI_ASSISTANT_ID to .env.example and .env.local for VAPI assistant identification. [1] [2]
  • Custom Hook (useVapi): Implemented useVapi to manage VAPI client initialization, event handling, and assistant interactions. This includes methods for starting/stopping calls, managing error states, and handling user messages.

Updates to AgentChat Component:

  • VAPI Integration: Replaced the voice recording functionality with VAPI-based voice conversations, including state management for calls, error handling, and assistant messages.
  • UI Enhancements: Updated the UI to reflect VAPI-specific features, such as displaying assistant configuration status, conversation messages, and ready status indicators. [1] [2]
  • Environment Variable Support: Introduced support for NEXT_PUBLIC_VAPI_ASSISTANT_ID in the component for dynamic assistant identification. (frontend_vapi/components/AgentChat.tsxL1-R109R115)…nvironment configuration

@netlify
Copy link

netlify bot commented Jun 14, 2025

Deploy Preview for oto-evm canceled.

Name Link
🔨 Latest commit 775c810
🔍 Latest deploy log https://app.netlify.com/projects/oto-evm/deploys/684d81db9a7e610008b70e0a

@vercel
Copy link

vercel bot commented Jun 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
oto ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 14, 2025 2:06pm

@mashharuki mashharuki merged commit a0d03d6 into main Jun 14, 2025
6 of 7 checks passed
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