Skip to content
Interactive course · 14 lessons · 87 min · certificate

WhatsApp Bot 2026: Connect Claude Code to WhatsApp with Green API, No Coding Required

An interactive course: what you are building and why, what Green API is, Instance and QR scanning, the two keys, a dedicated group and Group ID, why the Webhook must be empty, the send script and the listen script, connecting to the Claude Code loop, securing your keys, troubleshooting, WhatsApp Terms of Service and safety rules, and a 30-day plan.

What you will be able to do

  • ✓Understand what the connection gives you and what its limits are
  • ✓Open an Instance, scan the QR, and store the keys safely
  • ✓Find the Group ID and clear the Webhook
  • ✓Build a send and listen script and connect it to Claude Code
  • ✓Diagnose issues, including silent disconnection
  • ✓Decide with eyes open what the bot does and what it must not do
Loading the course...

The lessons

  1. 01
    What You Are Building: a remote control for an agent that knows your projectUnderstand what the connection gives you, and what limitation you need to internalize from the start · 6 min · What You Are Building and Why
  2. 02
    What Green API Is, and What It Is NotUnderstand the mechanism, the plans, and the fact that this is not the official API · 6 min · What You Are Building and Why
  3. 03
    What You Need Before You StartMake sure you have all four things, and choose the right number · 5 min · What You Are Building and Why
  4. 04
    Steps 1 and 2: Instance and QR ScanCreate an Instance and watch it switch to authorized · 6 min · The Connection
  5. 05
    Step 3: The Two Keys, and Why They Are Like a PasswordKnow what idInstance and apiTokenInstance are, and where they must never appear · 5 min · The Connection
  6. 06
    Steps 4 and 5: Dedicated Group and Finding the Group IDOpen a control channel and find the identifier that ends in @g.us · 7 min · The Connection
  7. 07
    Step 6: Why the Webhook Must Be EmptyUnderstanding the two ways to receive messages, and the mistake that catches everyone · 6 min · The Connection
  8. 08
    Step 7: A Locked Credentials File and the Send ScriptBuilding send.sh with keys stored outside the code, and with link previews disabled · 7 min · The Scripts
  9. 09
    Step 8: The Listen Script, and Why You Delete Every NotificationUnderstanding the listen loop and the deletion step without which everything repeats · 7 min · The Scripts
  10. 10
    Step 9: Connecting Everything to Claude CodeWriting the instruction that turns two scripts into an agent you control from your pocket · 6 min · The Scripts
  11. 11
    Security: Four Rules You Do Not SkipProtecting your keys the same way you protect a password · 5 min · Security and Troubleshooting
  12. 12
    Troubleshooting: Symptom and CauseDiagnosing the three most common issues, and the silent disconnection · 7 min · Security and Troubleshooting
  13. 13
    WhatsApp Terms of Service, and What to Do With ThemDeciding with your eyes open what your bot does and does not do · 8 min · Rules and Plan
  14. 14
    30-Day Plan: One Channel, Monitoring, and a DecisionLeave with one working group, a line monitor, and a metric · 6 min · Rules and Plan

Get the full course

All 14 lessons, the hands-on exercises, your toolkit, the final quiz and a certificate. One-time payment, yours to keep.

$9

Included in the AI TV subscription too. Already have access? Sign in

Questions and answers

How much does the WhatsApp Bot course cost?

9.90 ILS including VAT, a one-time payment with lifetime access. Lesson 1 is open to everyone at no charge.

What do you build in the course?

A connection between Claude Code on your computer and a dedicated WhatsApp group via Green API, so you can send tasks to the agent from your phone and receive replies. A separate group for each project.

Do you need to know how to code?

No. You copy and paste the commands and scripts from the guide, and replace the two keys you receive from Green API. You need Claude Code installed on your computer.

Is it safe and legal?

Green API connects as a linked device, and it is an unofficial gateway. The WhatsApp Help Center states that automation on the app is a violation of its Terms of Service. The course dedicates a full lesson to this: a separate number, a human pace, only for your team or people who reached out to you, and never for broadcasting.

Does it work when the computer is off?

No. The Claude Code session on your computer is the brain, and WhatsApp is just the pipe. As long as the session is open, you work from your phone.

How much does Green API cost?

According to the Green API homepage (checked 17.9.2026) there is a free Developer plan up to 3 chats and a Business plan at $12 per month. Prices change, check the site.

Do you receive a certificate?

Yes. After completing all the lessons and passing a 10-question quiz, a completion certificate from Yaakov Tzedek's AI College is issued, server-verified, sent to your email, and shown in your personal area.

Sources we checked

  • The connection in six steps: Instance on Green API, QR scan, two keys (idInstance and apiTokenInstance), a dedicated group, a Group ID ending in @g.us, clearing the Webhook for Polling, and send and listen scripts. Works only while the session is open on your computer. · tzedek.me/blog/claude-code-whatsapp-green-api · 2026-09-21
  • linkPreview is turned off because link previews sometimes block the send queue. You must delete a notification with deleteNotification after reading it. After clearing the webhook, the change takes effect within one to two minutes. Store keys in ~/.green-api-creds with chmod 600. Use showMessagesQueue for a stuck queue. · tzedek.me/blog/claude-code-whatsapp-green-api · 2026-09-21
  • Green API is an unofficial gateway that works as a linked device. According to its homepage (checked 17.9.2026): a free Developer plan up to 3 chats, and a Business plan at 12 USD per month. It has an official MCP server. Your phone must stay connected. The line can disconnect silently. · tzedek.me/blog/grok-bot-ai-worker-whatsapp · 2026-09-21
  • WhatsApp Help Center: the products are not intended for bulk or automated messages, and both have always been a violation of the Terms of Service. The realistic outcome is a permanent ban of the number. The proper path is WhatsApp Business Platform with approved templates and a 250-recipient opening limit per 24 hours. Six safety rules for working with Green API. · tzedek.me/blog/grok-bot-ai-worker-whatsapp · 2026-09-21
  • Green API official documentation and the console for creating an Instance · green-api.com/en/docs/ · 2026-09-21

A course by Yaakov Tzedek. This course is also available in Hebrew.