AI Reply Agent
Answers your WhatsApp Business enquiries in seconds from your own prices and policies, and hands bookings and anything unclear to you. Self-hosted PHP, on your own AI key.
Answer every WhatsApp enquiry within seconds, day and night, from your own prices and policies — and get the chats that need a person in your inbox, with AI Reply Agent on your own hosting and no monthly platform fee.
- Instant delivery
- Commercial license included
- PHP 8 compatibility verified
One-time payment · Instant download · Regular license (Agency option)
Secured by Razorpay · we never see your card/UPI details
What you get
Taken from this product's own README (included in the download). A PHPGuru-developed product.
Included
- Start wizard (install.php): server check with a plain fix for every red line, database tables created for you, owner login (no default password), business details with a fictional example for hotels, clinics, coaching classes, salons, shops and restaurants, AI key test, "Try it" before going live, WhatsApp connection with token check (a temporary token is refused at go-live), number choice, automatic webhook connection with manual steps as a fallback, number registration, and a go-live check list
- Replies in the customer's language and script: English, Hindi (Devanagari) or Hinglish
- Answers only from your business details; anything not there goes to your team instead of being guessed
- Price check: a reply quoting a rupee amount that is not in your details is never sent
- Never confirms a booking, order, payment or refund itself: it collects the details and passes the chat on
- Declines unrelated requests politely (Meta allows business assistants, not general-purpose chatbots)
- Clinics: no medical advice; emergencies are told to call 112 and passed on at once
- Tells customers they are talking to an AI in the first reply of each day; HUMAN reaches a person; STOP and START switch automatic replies off and on
- Inbox for the owner and staff: "Needs you" list, conversation view with delivery ticks, replies within WhatsApp's 24-hour window (re-checked on the server), take over and hand back, automatic hand-back after 12 hours, photos, PDFs and voice notes opened from Meta on demand, auto-refresh
- Leads: name, what they want and when, noted from the conversation; CSV download for the owner
- Knowledge page with "Try a question"; weekly opening hours with a second time range for breaks
- Reply modes: always, only outside opening hours, or off
- Monthly AI spend cap, per-customer and overall reply limits, protection against reply loops with other bots
- Email alerts: customer needs a person (at most one per chat every 30 minutes), budget, connection problems
- Health page: connection status, typical reply time, AI cost per reply and by month, event log, and a support report to copy that never contains keys, tokens, messages or full customer numbers
- Team: staff logins for the inbox and leads; only the owner changes the setup
- Privacy: public privacy notice page (Meta asks for one), automatic deletion after 180 days (adjustable), delete a customer's data on request, opted-out numbers kept so STOP stays honoured
- Reliability: each WhatsApp message stored once, messages that arrive together answered once, at most one reply per batch even when Meta delivers twice, retries when the AI is busy, fallback message and hand-over when it fails, old redelivered messages sent to you instead of the AI
- Security: Meta's signature checked on every delivery, keys and tokens stored encrypted (AES-256-GCM), CSRF protection on every form, prepared statements, login lockout, data/ and code folders closed to the web
What it is not
It does not send broadcasts, bulk messages, marketing templates or messages to people who did not write to you first. It does not keep the number on the WhatsApp Business app at the same time (that needs a Meta Tech Provider). It does not take payments, confirm bookings, manage your calendar or connect to booking sites. It does not listen to voice notes (customers are asked to type), does not answer Instagram or Facebook Messenger, and runs one WhatsApp number per installation. It is not a general chatbot: it talks only about your business, as Meta's rules require.
- Requirements & testing
- PHP 8.1+ with mysqli, curl, openssl, json and mbstring (tested on PHP 8.5 with MySQL 8.0; the server check also passes on Hostinger with PHP 8.2 and MariaDB); MySQL 5.7+ or MariaDB 10.3+; https; outgoing HTTPS to graph.facebook.com and api.anthropic.com. Replies are fastest on LiteSpeed (Hostinger) or PHP-FPM hosting, which answer Meta first and prepare the reply right after. A cron job is optional (Settings -> WhatsApp shows the line to add). Bootstrap 5 CSS loads from the jsDelivr CDN; the app has no other dependency and needs no Composer.
- In the download
- Full PHP source, README with installation steps.
- Installation (4 steps)
- Turn on SSL (https) for your domain and upload the ai_reply_agent folder, for example as public_html/agent → Create an empty MySQL database and a user in your hosting panel; there is no SQL file to import → Open https://your-domain/agent/install.php, press Start and follow the setup wizard to the end → Send "hi" from your own phone to the business number and watch the reply appear in the inbox.
- Support & licence
- Email support for installation questions is included; see the licence and support terms on phpguru.store. On the Health page, "Copy report" gives the details support needs without any secrets. This software was written by PHPGuru (phpguru.store). No third-party application code is included; Bootstrap (MIT) is loaded from a CDN. Licence terms: Regular vs Agency.
Screenshots
Sound familiar?
- Customers ask the same questions on WhatsApp all day — timings, prices, "room available?" — and late replies lose the booking.
- Nobody can watch the phone at night, on Sundays or during a busy shift.
- WhatsApp chatbot subscriptions charge every month, and a generic bot invents answers your business never gave.
- Messages for the owner get buried under the routine questions.
AI Reply Agent fixes that: it answers from your own business details within seconds, passes everything else to you, and runs on your own hosting with no monthly fee to us — set up by you in about 45 minutes with the step-by-step wizard.
Who buys it — and what they get
Business owners
Hotels, clinics, coaching classes, salons, shops and restaurants: instant answers from your own facts, with bookings and payments always passed to you.
Freelancers & agencies
Set it up for local businesses and bill for setup and support.
Students & learners
A real production pattern to study: signed webhooks, idempotent message handling, structured AI output and guard rails.
Freelancers: the Regular license covers client projects, so one purchase can become paid work. Reselling it as a hosted service needs the Agency license.
Full overview: who it's for, every feature explained, how it works
What the AI Reply Agent does
Customers write to your business on WhatsApp at all hours with the same questions: the price of a room, today's timings, whether there is parking, how to book. The AI Reply Agent answers them within seconds, in the customer's own language, from the business details you wrote. It connects your number through Meta's official WhatsApp Business Platform (Cloud API) using your own Meta app, and writes each reply with Claude on your own Anthropic API key. Everything runs on your hosting: the conversations, the leads and the settings stay in your own database.
It does not try to handle everything. Bookings, orders, payments, refunds, complaints and any question your details do not answer are passed to you, with an email, and the assistant stays quiet in that chat until you hand it back.
Who it is for
- Hotels and guest houses answering room, rate and facility questions at night and passing booking requests to the front desk.
- Clinics answering timings, fees and how to book, never medical questions; emergencies are told to call 112.
- Coaching classes, salons, shops and restaurants answering fees, slots, menus, delivery areas and policies.
- Freelancers and agencies who set it up for local businesses and charge for setup and support.
How a message is handled
- Meta delivers the message to your installation; the signature is checked and the message is stored once, even when Meta delivers it twice.
- Fixed rules come first: STOP and START, "HUMAN" for a person, your reply mode and opening hours, reply limits and the monthly AI budget.
- The AI writes a reply from your business details. A rupee amount that is not in them is never sent: the customer is told your team will check.
- The reply goes out with a delivery tick in your inbox. The first reply of the day tells the customer they are talking to an AI.
- Anything that needs a person is marked Needs you and emailed to you; you reply from the inbox within WhatsApp's 24-hour window.
What you need
- PHP hosting with PHP 8.1 or newer, MySQL and https.
- A phone number that is not in use on the WhatsApp or WhatsApp Business app. A number connected through the official API is answered from the agent's inbox, not the phone app, so a spare SIM is the easiest start.
- A Meta business portfolio and developer account (free) and an Anthropic account with API credit.
Running costs
There is no monthly fee to us. Meta does not charge for replies sent within 24 hours of the customer's last message, and the agent only replies; it never sends paid template messages. Anthropic bills your own API key for each reply. You set a monthly rupee cap in the setup: at 80% you get an email, and at the cap the assistant stops and passes every chat to you. The Health page shows your real cost per reply. Check Meta's and Anthropic's current price pages before you start.
Setting it up
Upload the folder, create an empty database and open install.php. The wizard checks your server and explains every red line, creates the tables, creates your owner login, takes your business details (with a fictional example for your type of business to show what good details look like), tests your AI key and lets you try questions before anything goes live. The WhatsApp step checks your access token with Meta, refuses a temporary token at go-live, lists your numbers and connects the webhook automatically, with manual steps as a fallback. The download includes an illustrated guide and instructions that any AI coding assistant can follow when you type "start".
What it is not
- Not a broadcast or bulk-messaging tool: it never messages people who did not write first and sends no marketing templates.
- Not a general chatbot: it talks only about your business, as Meta's rules require.
- It does not keep the number on the WhatsApp Business app at the same time, take payments, confirm bookings, listen to voice notes or answer Instagram and Messenger.
Privacy and security
Every delivery from Meta is checked against your app secret. Keys and tokens are stored encrypted with a key created at installation. Messages and leads are deleted automatically after 180 days (you can change this), opted-out numbers are kept so STOP stays honoured, and you can delete a customer's data on request. The agent publishes a privacy notice page for your customers and for Meta's app review.
The screenshots and preview pages show a fictional sample guest house; the conversations in them are sample data written to show the rules in action.
Licence
Commercial licence included: use it for your own business or install it for clients. The Agency licence adds white-label use and running it as a hosted service for your customers. You may not resell or redistribute the source code itself. Full terms on the licence page. Not affiliated with, endorsed or sponsored by Meta or WhatsApp.
Key Features
- Setup wizard: server check, database tables created for you, owner login, business details, AI key test, Try it, WhatsApp connection, go live
- Answers in English, Hindi or Hinglish within seconds, only from your own business details
- Price check: a rupee amount that is not in your details is never sent; bookings, payments and unknown questions go to you
- Web inbox for you and your staff: Needs you list, delivery ticks, replies within WhatsApp's 24-hour window, take over and hand back
- Leads noted from conversations (name, what they want, when), with CSV download
- Knowledge page with Try a question, weekly opening hours, and answering always, outside hours or off
- Monthly AI spend cap, per-customer reply limits, protection against bot loops, email alerts
- Health page with reply time, cost per reply and a support report that contains no secrets
- Official Cloud API only: signed webhooks, encrypted keys, AI notice to customers, STOP and START, automatic deletion after 180 days
This vs. a monthly WhatsApp chatbot subscription
| AI Reply Agent | Typical subscription | |
|---|---|---|
| Monthly platform fee | ✓ None: you pay Meta and Anthropic directly for use | Charged every month, per plan or per agent |
| Where your chats are stored | ✓ Your own hosting and database | The provider's servers |
| What the bot may say | ✓ Only your own facts; unknown prices and bookings go to you | Depends on the provider's setup |
| Code | ✓ Full PHP source, yours to change | Closed platform |
Frequently Asked Questions
What do I get after purchase?
A ZIP with the complete PHP source of the AI Reply Agent: the setup wizard, the WhatsApp webhook, the inbox for you and your staff, the knowledge editor, and the docs (START-HERE, an illustrated setup guide, and AGENTS.md for AI assistants). The wizard creates the database tables, so there is no SQL file to import.
Do I need my own WhatsApp number?
Yes: a business number connected to Meta's official WhatsApp Business Platform (Cloud API) through your own Meta app. A number connected this way is answered from the agent's inbox, not from the WhatsApp Business app on your phone, so a spare number is the easiest start.
What does it cost to run?
Nothing to us after purchase. Meta: replies within 24 hours of the customer's last message are free, and the agent never sends paid template messages. Anthropic bills your own API key per reply; you set a monthly rupee cap in the setup, and the Health page shows your real cost per reply.
Will it invent prices or confirm bookings?
No. It states only facts from your business details. A rupee amount that is not in them is never sent: the customer is told your team will check, and the chat comes to you. Bookings, orders, payments and refunds always go to a person.
Which languages does it reply in?
English, Hindi (in Devanagari) and Hinglish. It replies in the language and script the customer used.
Do I need to know PHP?
No. Upload the folder, open install.php and follow the wizard; the Meta steps are explained with screenshots, and you can test answers before going live.
Will it work on shared hosting like Hostinger?
Yes, with PHP 8.1 or newer, MySQL and https. It is built for shared hosting: on LiteSpeed (Hostinger) or PHP-FPM servers it answers Meta at once and prepares the reply right after.
Is this allowed by WhatsApp's rules?
It uses Meta's official Cloud API and only replies to customers who wrote first. It talks only about your business — Meta's terms do not allow general-purpose AI chatbots — tells customers they are talking to an AI, and honours STOP. Not affiliated with Meta or WhatsApp.
Can I set it up for my clients?
Yes. The Regular license covers your own business and client projects. To white-label it or run it as a hosted service for your customers, choose the Agency license.
AI Setup Assistant Prompt
A ready-made prompt for your own AI assistant (Claude, ChatGPT, Cursor — whatever you use) that walks it through getting this fully live on your domain: hosting, database, config, login, all of it.
I just purchased "AI Reply Agent" (a self-hosted PHP + MySQL application that answers my business's WhatsApp messages with AI, delivered as ai_reply_agent.zip) from phpguru.store, and I want you to help me get it live on my own hosting and WhatsApp number. Go one step at a time and check with me before moving on.
Running a business site already? Check how AI-search-ready it is — free.
Free AI Visibility Snapshot →One-time payment · Full source code · Instant delivery · Billed in USD, international cards accepted
See preview pagesReal screens with sample data, read-only. The full system is in the download.
Secured by Razorpay. We never see your card/UPI details.
- Full PHP + MySQL source code
- Runs on your own hosting (PHP 8.1+, https)
- Official WhatsApp Business Platform (Cloud API)
- Claude AI on your own Anthropic key
- No monthly fee to us
- Real email support if setup goes wrong
What happens after you pay
- 1. Download link appears instantly, plus emailed to you
- 2. Upload the folder, open install.php, follow the setup wizard
- 3. Connect your number and go live — about 45 minutes
Purchases are non-refundable, but if anything's wrong you can raise an issue from your orders page and we'll help you fix it.