Ai Coding Tools

How to Build a Simple Chatbot with Your Favorite AI Coding Tool in 3 Hours

By BTW Team5 min read

Comparing tools? See the AI tools tested on the show.

In short

A step-by-step guide on how to create a functional chatbot using popular AI coding tools, perfect for developers looking to build a project quickly.

If you're like most indie hackers or solo founders, you probably want to automate some of your repetitive tasks without spending a fortune. Chatbots can handle customer inquiries, schedule appointments, or even provide tech support—all while you sleep. The good news? You can build a simple chatbot in about 3 hours using an AI coding tool. In this guide, I’ll break down the tools you can use, their pricing, and how to get started.

Time Estimate: 3 Hours

You can finish this project in around 3 hours if you have the right tools and a basic understanding of programming.

Prerequisites

  • Basic coding skills (preferably in Python or JavaScript)
  • An account with one of the AI coding tools listed below
  • Access to a hosting platform for deploying your chatbot (like Heroku or Vercel)

Tool Recommendations for Building Chatbots

Here’s a list of AI coding tools that are well-suited for building chatbots. Each tool includes what it does, pricing, best use cases, limitations, and our take based on real experience.

| Tool Name | Pricing | What It Does | Best For | Limitations | Our Take | |----------------|-----------------------------|---------------------------------------------------|-----------------------------------|-------------------------------------------------|-------------------------------------------| | Dialogflow | Free tier + $0.002/req | Natural language understanding for chatbots | Customer support | Can get expensive with high usage | We use this for simple FAQ bots | | Rasa | Free, Enterprise pricing | Open-source framework for building conversational AI | Customizable chatbots | Requires more setup and maintenance | We don’t use this because of complexity | | ChatGPT API | $0.002/1K tokens | AI model for generating human-like text | General conversation | Limited control over responses | We use this for dynamic interaction | | Microsoft Bot Framework | Free | Comprehensive framework for bot development | Enterprise-level solutions | Steep learning curve | We don’t use this due to time investment | | Botpress | Free for self-hosted, $19/mo for cloud | Open-source chatbot platform | Developers wanting full control | Requires hosting setup | We don’t use this because of the overhead | | Tidio | Free tier + $18/mo pro | Chatbot and live chat integration | E-commerce | Limited customization on the free tier | We use this for quick setups | | ManyChat | Free tier + $15/mo pro | Chatbot for Facebook Messenger and Instagram | Marketing automation | Limited to social media platforms | We don’t use this for standalone bots | | Landbot | Free tier + $30/mo pro | No-code chatbot builder with visual interface | Non-technical users | Limited functionality on the free tier | We use this for landing page bots | | SnatchBot | Free tier + $30/mo pro | Multi-channel chatbot platform | Integrating across platforms | Limited AI capabilities compared to others | We don’t use this for advanced tasks | | Wit.ai | Free | Natural language processing for chatbots | Developers familiar with APIs | Less user-friendly than others | We don’t use this because of the learning curve | | Chatfuel | Free tier + $15/mo pro | No-code chatbot for Facebook Messenger | Quick customer interactions | Limited to Facebook Messenger | We don’t use this due to platform constraints | | Tars | $49/mo, no free tier | Drag-and-drop chatbot builder | Lead generation | Gets expensive quickly | We don’t use this due to cost | | Flow XO | Free tier + $19/mo pro | Multi-platform chatbot creation | Cross-platform solutions | Limited functionality on free tier | We don’t use this due to limitations |

What We Actually Use

In our experience, Dialogflow and ChatGPT API are the best tools for building simple chatbots. Dialogflow is great for getting started quickly, while ChatGPT adds a layer of conversational depth that can enhance user experience.

Step-by-Step Guide to Building Your Chatbot

  1. Choose Your Tool: Based on the table above, select the tool that best fits your needs and budget.

  2. Set Up Your Account: Create an account on your chosen platform. For Dialogflow, you’ll integrate it with Google Cloud.

  3. Define Your Use Case: Decide what you want your chatbot to do. Write down the main intents (user goals) and the responses.

  4. Create Your Chatbot:

    • For Dialogflow:
      • Create a new agent.
      • Add intents and define training phrases.
      • Set responses for each intent.
    • For ChatGPT API:
      • Create a simple script that uses the API to respond to user inputs. Use Python or JavaScript for this.
  5. Test Your Bot: Use the built-in testing tools to simulate conversations and refine your bot's responses.

  6. Deploy Your Bot: Host it on a platform like Heroku or Vercel. Make sure to follow the hosting platform's instructions for deployment.

  7. Iterate and Improve: Collect user feedback to make adjustments and improve your bot's performance over time.

Troubleshooting Common Issues

  • Bot Doesn’t Understand Inputs: Refine your training phrases and ensure you have enough diverse examples.
  • Slow Response Time: Check your hosting solution; consider upgrading if you’re hitting limits.
  • Integration Problems: Make sure API keys are correctly set and permissions are granted.

What's Next?

Once you have your chatbot up and running, consider adding more advanced features like user authentication or integrating with third-party services. You could also explore analytics to track user interactions.

Conclusion

Building a simple chatbot doesn’t have to be overwhelming. With the right tools and approach, you can have a functional bot ready in just a few hours. Start with either Dialogflow or ChatGPT API based on your needs, and don’t hesitate to iterate based on user feedback.

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools
Ai Coding Tools

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them)

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them) In the everevolving landscape of AI coding tools, it's easy to get swept up in the hype. As indie hackers and s

Nov 30, 20263 min read
Ai Coding Tools

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026 In 2026, the landscape for indie hackers and solo founders has evolved significantly, especially with the advent

Nov 26, 20264 min read
Ai Coding Tools

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026 If you’re a developer stuck maintaining legacy code, you know the frustration. It’s like navigating a maze blindfolde

Nov 23, 20264 min read
Ai Coding Tools

10 AI Coding Tools That Will Save You Hours of Debugging in 2026

10 AI Coding Tools That Will Save You Hours of Debugging in 2026 Debugging can feel like a neverending cycle of frustration. Whether you're a solo founder or an indie hacker, spend

Nov 18, 20265 min read
Ai Coding Tools

10 Common Mistakes When Using AI Coding Tools for MVP Development

10 Common Mistakes When Using AI Coding Tools for MVP Development As a founder in 2026, you’re likely aware that AI coding tools can significantly speed up the MVP development proc

Nov 16, 20264 min read
Ai Coding Tools

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026 As a beginner developer, you’ve probably come across a ton of buzz surrounding AI coding tools. But with all the hyp

Nov 12, 20263 min read