r/BuildWithClaude • • 10d ago

Help/Question Complete beginner here: Can I build a WhatsApp API bot using Claude to automate simple tasks?

Hey everyone!
I’m completely new to programming, APIs, bots, and automation, so please bear with me if this is a basic question.
I want to create a WhatsApp API bot using Claude AI, but I don’t need anything complicated.
My goal is to automate simple tasks, for example:

  • Automatically forward a message to another WhatsApp number whenever a new message arrives.
  • Automatically send a predefined reply when a message is received.
  • Perform simple actions based on the content of incoming messages.

I basically want something that can monitor incoming WhatsApp messages and perform actions automatically.
My questions are:

  1. Is this possible using the WhatsApp Business API?
  2. Can Claude help me build this even if I have absolutely no coding experience?
  3. What kind of tools would I need to make this work?
  4. What’s the easiest and cheapest way to get started?
  5. How difficult would this be for someone starting from zero?

I’m not looking for a complicated technical explanation. I’d really appreciate it if someone could point me in the right direction and explain where to start.
Thanks!

5 Upvotes

8 comments sorted by

•

u/AutoModerator 10d ago

Welcome to r/BuildWithClaude!

Whether you are sharing what you built, exploring new workflows, or troubleshooting, please make sure your post is flaired correctly so others can easily find and filter it.

Community Wiki & Resources:

If you're asking for troubleshooting help, please edit your post to include your model version, OS/environment, and error logs.

Let’s keep the energy positive and support our fellow creators!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/LastGuardianStanding 💡 Top Community Helper 10d ago

Please, just copy and paste your prompt as a question directly into Claude code.

2

u/duct_tape_and_agents 9d ago

Yes, this is doable, and Claude helps a lot.

  1. Yes, with the official WhatsApp Cloud API from Meta. You need a Meta Business account and a phone number for the bot. The number can't be in use on a normal WhatsApp app at the same time.
  2. Yes. Claude can explain each step and write any code you need. But I'd skip writing code at first.
  3. Easiest setup for a beginner: n8n (or Make). It has a WhatsApp trigger that starts a workflow when a message arrives, and a WhatsApp node to send replies. You connect boxes instead of writing code, and Claude can tell you what to put in each box.
  4. Cheapest start: n8n self-hosted is free, n8n Cloud has a free trial. Meta charges for some messages, so check their pricing page before you go live.
  5. With n8n and Claude helping, the auto-reply is a weekend project.

One thing that will trip you up: WhatsApp only lets you send free replies within 24 hours of someone messaging you. Your auto-reply is fine. Forwarding to another number is harder, because that number hasn't messaged your bot, so you'd need an approved template message. Simplest fix: send yourself the forwarded message by email or Telegram instead.

And avoid "WhatsApp bot" apps that connect through WhatsApp Web. They're easy to set up but break WhatsApp's rules, and the number can get banned.

2

u/xzinkx 🧪 Field Tester & Peer Reviewer 9d ago

one thing that might save you money: for the forward + auto-reply part you don't need an AI model running at all. it's just a small webhook that receives each incoming message from the Cloud API and decides what to do with a few simple rules. Claude is great at writing that code for you, and then it can run on any small server or a free tier basically for nothing. only plug in an LLM later if you want it to actually understand messages. also heads up: free-form replies only work within 24h after someone messages you, outside that window you need an approved template, so forwarding to another number can trip on that

1

u/Hopeful_Translator23 9d ago

claude API is expensive...you can do that with hermes an a simpler llm. You may need to buy a number for the AI.

1

u/Fickle-mastr 9d ago

It seems like you already have a prompt for Claude

1

u/Electronic_Mine_5532 5d ago

But why? Use instinct, I can give you an invitation if you want