https://github.com/aimaster-dev/call-with-ai-agent
A voice-based AI chat interface built with Next.js and ElevenLabs. Start and stop real-time conversations with an animated UI that reflects agent status. Fully responsive and deployable via Vercel with environment-based agent configuration.
https://github.com/aimaster-dev/call-with-ai-agent
ai-assistant ai-voice animated-ui client-side-agent conversation-agent elevenlabs microphone-access nextjs real-time-chat speech-ai tailwind-css typescript vercel voice-chat voice-interaction web-application
Last synced: 4 months ago
JSON representation
A voice-based AI chat interface built with Next.js and ElevenLabs. Start and stop real-time conversations with an animated UI that reflects agent status. Fully responsive and deployable via Vercel with environment-based agent configuration.
- Host: GitHub
- URL: https://github.com/aimaster-dev/call-with-ai-agent
- Owner: aimaster-dev
- Created: 2025-06-13T07:03:10.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-06-13T07:59:03.000Z (4 months ago)
- Last Synced: 2025-06-13T08:41:49.992Z (4 months ago)
- Topics: ai-assistant, ai-voice, animated-ui, client-side-agent, conversation-agent, elevenlabs, microphone-access, nextjs, real-time-chat, speech-ai, tailwind-css, typescript, vercel, voice-chat, voice-interaction, web-application
- Language: TypeScript
- Homepage: https://call-with-ai-agent.vercel.app
- Size: 35.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐ง Call with AI Agent
A voice-interactive web UI built with **Next.js** and **ElevenLabs**, enabling real-time conversations with an ElevenLabs agent. Users can start and stop a session, and visually observe when the agent is speaking or listening through animated button feedback.
- ๐ GitHub: [github.com/aimaster-dev/call-with-ai-agent](https://github.com/aimaster-dev/call-with-ai-agent)
- ๐ Live Demo: [call-with-ai-agent.vercel.app](https://call-with-ai-agent.vercel.app)---
## ๐ Features
- ๐๏ธ Voice input using browser microphone access
- ๐ง Agent session control using ElevenLabs' SDK
- ๐ฌ Live status updates for speaking vs listening
- โจ Animated visual feedback via Tailwind CSS
- ๐ Environment-based agent ID management---
## ๐ Project Structure
```
.
โโโ public/
โโโ src/
โ โโโ app/
โ โโโ components/
โ โ โโโ conversation.tsx # Core conversation logic and UI
โ โโโ globals.css
โ โโโ layout.tsx
โ โโโ page.tsx # Root page using
โโโ .gitignore
โโโ next.config.ts
โโโ package.json
โโโ tsconfig.json
โโโ README.md````
---
## ๐ ๏ธ Getting Started
### 1. Clone the project
```bash
git clone https://github.com/aimaster-dev/call-with-ai-agent.git
cd call-with-ai-agent
````### 2. Install dependencies
```bash
npm install
```### 3. Configure environment variables
Create a `.env.local` file at the root:
```env
NEXT_PUBLIC_AGENT_ID=your_elevenlabs_agent_id_here
```> โ Must begin with `NEXT_PUBLIC_` to be available on the client side.
### 4. Start development server
```bash
npm run dev
```Open `http://localhost:3000` to view it in your browser.
---
## ๐งช Deployment
This project is deployed using [Vercel](https://vercel.com/).
### ๐ง Vercel Setup
1. Go to your project on Vercel
2. Navigate to **Settings โ Environment Variables**
3. Add:```
Name: NEXT_PUBLIC_AGENT_ID
Value: your_agent_id
Environment: All (Production, Preview, Development)
```4. Redeploy the project.
---
## ๐ฆ Tech Stack
* **Next.js 15+**
* **TypeScript**
* **Tailwind CSS**
* **@11labs/react**
* **Vercel (for hosting)**---
## ๐ง Powered by
[ElevenLabs](https://www.elevenlabs.io/) โ Realistic voice AI for conversational experiences.
---
## ๐ License
MIT โ free to use, modify, and distribute.
---