An open API service indexing awesome lists of open source software.

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.

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.

---