---
title: "Discussion on \"How to Build an Audio Chatbot with Nextjs, OpenAI, and ElevenLabs\" | Hashnode"
description: "Discussion on \"How to Build an Audio Chatbot with Nextjs, OpenAI, and ElevenLabs\". With the rise of artificial intelligence (AI) and large language models (LLMs), it has become easier to solve different human problems than ever before. Even consumers with little to no technical expertise can benefit from AI. Humans can now automate..."
url: "https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Build an Audio Chatbot with Nextjs, OpenAI, and ElevenLabs](https://blog.bolajiayodeji.com/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs?utm_source=hashnode&utm_medium=feed)

With the rise of artificial intelligence (AI) and large language models (LLMs), it has become easier to solve different human problems than ever before. Even consumers with little to no technical expertise can benefit from AI. Humans can now automate...

Mar 18, 2024 · 24 min read · blog.bolajiayodeji.com  
Read the article

-   [#software-development](https://hashnode.com/tag/software-development)
-   [#ai](https://hashnode.com/tag/ai)
-   [#openai](https://hashnode.com/tag/openai)
-   [#chatbot](https://hashnode.com/tag/chatbot)
-   [#llm](https://hashnode.com/tag/llm)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#elevenlabs](https://hashnode.com/tag/elevenlabs)

## Written by

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

@bolajiayodeji · Nigeria

  
[View profile](https://hashnode.com/@bolajiayodeji)

Software Engineer, Teacher, and Developer Advocate.

undefined or mostly null.

## Responses 4

Markdown supported · ⌘↵ to post

[Ashish maurya](https://hashnode.com/@theashishmaurya)

[Mar 24, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/660038f123227d37931c1eaf)

Amazing man, I really wanted to ask you how you handled the latency of this? How long a user had to wait to get the response?

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Mar 27, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/660038f123227d37931c1eaf#reply-6603f1bf098e052e81341701)

Thanks for your comment, Ashish!

As I mentioned in the "Notes and Recommendations" section, I used the ElevenLabs `eleven_turbo_v2` model since it’s more suitable for tasks demanding low latency, intentionally set the `max_tokens` OpenAI parameter to `100`, and used a custom prompt to reduce the number of characters returned to `100`. This worked perfectly for my use case.

[Joshua Elliott](https://hashnode.com/@atmtell)

[Aug 22, 2025](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/68a7cdcebc7d1e153a855851)

Clear, practical, and beginner-friendly overview with a nice balance of context and hands-on guidance. The implementation flow is straightforward, and the personal touch makes it engaging.

[Heather Rivera](https://hashnode.com/@packageburger)

[Oct 14, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/670c89ee60a1029718ca296f)

Excellent article. Very interesting to read. I really love to read such a nice article. [geometry dash free](https://geometrydash-free.io/)

[Praveen Kumar](https://hashnode.com/@PankajRepswal)

[Mar 29, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/660697ad7f5e3ccc2f7f5363)

How to ask questions to hashnode community?

[webtrackker 50](https://hashnode.com/@webtrackker50)

[Mar 20, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/65facae0bc42363add2cabac)

Very useful information for me. I am also a web developer you can check piyushmaurya.in.

[Sunkanmi Fafowora](https://hashnode.com/@SunkanmiFafowora)

[Mar 19, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/65fa03bd666c275f6e20b623)

Wow! You're back! It felt like ages!

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Mar 20, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/65fa03bd666c275f6e20b623#reply-65fa7f75907d3a5080d38a5c)

Ahh, thank you!

[infisign](https://hashnode.com/@infisign)

[Mar 19, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/65f9520b066f016c97a20baf)

for more information plesase visit infisign

[maisam](https://hashnode.com/@tadybear)

[Mar 19, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/65f9430b9fffd379511c0482)

[Kambo](https://tribalteachings.com/) a traditional Amazonian medicine, has gained attention worldwide for its purported healing properties. Derived from the secretion of the giant monkey frog (Phyllomedusa bicolor), Kambo has been used for centuries by indigenous tribes for various purposes, including purification rituals and hunting enhancement. Administered through small burns on the skin, Kambo is believed to cleanse the body of toxins, boost immunity, and promote mental clarity. Despite limited scientific research, anecdotal evidence suggests its potential benefits for conditions ranging from chronic pain to addiction. However, its powerful effects and the risks associated with its administration underscore the importance of seeking guidance from trained practitioners familiar with its usage and potential side effects.

[Tinz Twins](https://hashnode.com/@tinztwins)

[Mar 18, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/65f8aebc975a345a07f8e74c)

Great read. Bookmarked. Thanks for sharing.

[Bolaji Ayodeji](https://hashnode.com/@bolajiayodeji)

[Mar 18, 2024](https://hashnode.com/posts/how-to-build-an-audio-chatbot-with-nextjs-openai-and-elevenlabs/65f86b9751f5492c2331b655/comment/65f8aebc975a345a07f8e74c#reply-65f8b1b97fa88629ef2bde6f)

Thanks for reading [Tinz Twins](https://hashnode.com/@tinztwins)! Glad you found this insightful.
