AI for good
📰 Dev.to AI
Learn how to build a useful AI chatbot by applying lessons from a real project, including debugging and optimizing Lambda functions on Vercel.
Action Steps
- Build an AI chatbot using Lambda functions and Vercel
- Debug timeout errors in Vercel logs
- Update Lambda functions to use streams instead of response.json()
- Test and optimize the chatbot for better performance
- Apply lessons from the project to future AI chatbot development
Who Needs to Know This
Developers and product managers can benefit from this article by learning how to overcome common challenges in building AI chatbots and creating more useful and efficient conversational interfaces.
Key Insight
💡 Using streams instead of response.json() can resolve timeout errors in Vercel logs and improve chatbot performance
Share This
🤖 Build a useful AI chatbot by learning from a real project! 💡 Debug, optimize, and stream your way to success 🚀 #AI #Chatbot #Vercel
Key Takeaways
Learn how to build a useful AI chatbot by applying lessons from a real project, including debugging and optimizing Lambda functions on Vercel.
Full Article
Title: AI for good
URL Source: https://dev.to/johnsamuel/ai-for-good-1jpp
Published Time: 2026-05-07T02:05:31Z
Markdown Content:
# AI for good - DEV Community
[Skip to content](https://dev.to/johnsamuel/ai-for-good-1jpp#main-content)
[](https://dev.to/)
[Powered by Algolia](https://www.algolia.com/developers/?utm_source=devto&utm_medium=referral)
[Log in](https://dev.to/enter?signup_subforem=1)[Create account](https://dev.to/enter?signup_subforem=1&state=new-user)
## DEV Community
0 Add reaction
0 Like 0 Unicorn 0 Exploding Head 0 Raised Hands 0 Fire
0 Jump to Comments 0 Save Boost
Copy link
Copied to Clipboard
[Share to X](https://twitter.com/intent/tweet?text=%22AI%20for%20good%22%20by%20Johnson%20Samuel%20%23DEVCommunity%20https%3A%2F%2Fdev.to%2Fjohnsamuel%2Fai-for-good-1jpp)[Share to LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fdev.to%2Fjohnsamuel%2Fai-for-good-1jpp&title=AI%20for%20good&summary=Building%20an%20AI%20Chatbot%20Isn%E2%80%99t%20Hard%E2%80%8A%E2%80%94%E2%80%8AMaking%20It%20Useful%20Is%20%28Lessons%20from%20a%20Real%20Project%29%20%20%20A...&source=DEV%20Community)[Share to Facebook](https://www.facebook.com/sharer.php?u=https%3A%2F%2Fdev.to%2Fjohnsamuel%2Fai-for-good-1jpp)[Share to Mastodon](https://s2f.kytta.dev/?text=https%3A%2F%2Fdev.to%2Fjohnsamuel%2Fai-for-good-1jpp)
[Share Post via...](https://dev.to/johnsamuel/ai-for-good-1jpp#)[Report Abuse](https://dev.to/report-abuse)
[](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq4f7xakn9efzyl17n5tq.jpeg)
[](https://dev.to/johnsamuel)
[Johnson Samuel](https://dev.to/johnsamuel)
Posted on May 7
# AI for good
[#webdev](https://dev.to/t/webdev)[#ai](https://dev.to/t/ai)[#productivity](https://dev.to/t/productivity)[#javascript](https://dev.to/t/javascript)
## [](https://dev.to/johnsamuel/ai-for-good-1jpp#building-an-ai-chatbot-isnt-hard%E2%80%8A%E2%80%8Amaking-it-useful-is-lessons-from-a-real-project) Building an AI Chatbot Isn’t Hard — Making It Useful Is (Lessons from a Real Project)
A month ago, while building a resume coach AI chatbot using Lambda functions and deploying them on Vercel(a leading cloud platform for frontend developers), I repeatedly encountered timeout errors in the Vercel logs during testing. As I debugged the issue for sometime, I discovered that I was using response.json() instead of streaming the response, which was causing the timeout ⌛️errors on Vercel. Once I updated the Lambda functions to use streams, it started to work
URL Source: https://dev.to/johnsamuel/ai-for-good-1jpp
Published Time: 2026-05-07T02:05:31Z
Markdown Content:
# AI for good - DEV Community
[Skip to content](https://dev.to/johnsamuel/ai-for-good-1jpp#main-content)
[](https://dev.to/)
[Powered by Algolia](https://www.algolia.com/developers/?utm_source=devto&utm_medium=referral)
[Log in](https://dev.to/enter?signup_subforem=1)[Create account](https://dev.to/enter?signup_subforem=1&state=new-user)
## DEV Community
0 Add reaction
0 Like 0 Unicorn 0 Exploding Head 0 Raised Hands 0 Fire
0 Jump to Comments 0 Save Boost
Copy link
Copied to Clipboard
[Share to X](https://twitter.com/intent/tweet?text=%22AI%20for%20good%22%20by%20Johnson%20Samuel%20%23DEVCommunity%20https%3A%2F%2Fdev.to%2Fjohnsamuel%2Fai-for-good-1jpp)[Share to LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fdev.to%2Fjohnsamuel%2Fai-for-good-1jpp&title=AI%20for%20good&summary=Building%20an%20AI%20Chatbot%20Isn%E2%80%99t%20Hard%E2%80%8A%E2%80%94%E2%80%8AMaking%20It%20Useful%20Is%20%28Lessons%20from%20a%20Real%20Project%29%20%20%20A...&source=DEV%20Community)[Share to Facebook](https://www.facebook.com/sharer.php?u=https%3A%2F%2Fdev.to%2Fjohnsamuel%2Fai-for-good-1jpp)[Share to Mastodon](https://s2f.kytta.dev/?text=https%3A%2F%2Fdev.to%2Fjohnsamuel%2Fai-for-good-1jpp)
[Share Post via...](https://dev.to/johnsamuel/ai-for-good-1jpp#)[Report Abuse](https://dev.to/report-abuse)
[](https://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq4f7xakn9efzyl17n5tq.jpeg)
[](https://dev.to/johnsamuel)
[Johnson Samuel](https://dev.to/johnsamuel)
Posted on May 7
# AI for good
[#webdev](https://dev.to/t/webdev)[#ai](https://dev.to/t/ai)[#productivity](https://dev.to/t/productivity)[#javascript](https://dev.to/t/javascript)
## [](https://dev.to/johnsamuel/ai-for-good-1jpp#building-an-ai-chatbot-isnt-hard%E2%80%8A%E2%80%8Amaking-it-useful-is-lessons-from-a-real-project) Building an AI Chatbot Isn’t Hard — Making It Useful Is (Lessons from a Real Project)
A month ago, while building a resume coach AI chatbot using Lambda functions and deploying them on Vercel(a leading cloud platform for frontend developers), I repeatedly encountered timeout errors in the Vercel logs during testing. As I debugged the issue for sometime, I discovered that I was using response.json() instead of streaming the response, which was causing the timeout ⌛️errors on Vercel. Once I updated the Lambda functions to use streams, it started to work
DeepCamp AI