AI Tools for Business in India: A Practical Guide to AI Chatbots and WhatsApp Automation (With Code)

AI tools for business in India featuring chatbots, voice agents, WhatsApp automation, and appointment booking by 6OAM

Blog category plan (delete before publishing)

This post is the pillar for a new category. Create the category AI Tools & Automation with this description for its page: Practical guides to AI chatbots, voice agents and WhatsApp automation for businesses in India, from how they work to how to launch them. Publish the cluster posts below over the next few weeks. Each one links up to this pillar, and this pillar links down to each one.

Cluster postPrimary keywordType
AI Chatbot vs AI Voice Agent: Which Does Your Business Need?AI chatbot vs voice agentComparison
How to Set Up a WhatsApp AI Chatbot for Your BusinessWhatsApp AI chatbotHow-to with code
AI Lead Qualification: Score and Route Leads AutomaticallyAI lead qualificationHow-to with code
AI Appointment Booking for Clinics, Coaching and Home ServicesAI appointment bookingUse case
Missed-Call Text-Back Automation: Never Lose a Lead After Hoursmissed call text backHow-to
Build vs Buy: Should You Code Your Own AI Chatbot?build vs buy AI chatbotDecision guide
AI Review Replies and Reputation ManagementAI review managementUse case
AI Guardrails: Keeping Your Business Chatbot Accurate and SafeAI chatbot guardrailsBest practices

Key takeaways

  • AI tools for business in India now cover lead qualification, 24/7 answering, appointment booking and follow-up across WhatsApp, chat and calls.
  • An AI chatbot is four parts: a message channel, instructions that define its job, the AI model, and a hand-off to your CRM.
  • You can build a working WhatsApp AI chatbot in under 100 lines of code, but production use needs guardrails, a database, monitoring and human hand-off.
  • Build when you have developers and unusual needs. Buy a platform when you want it live quickly with support and no servers to maintain.

Most Indian businesses already get enquiries on WhatsApp, calls and website forms. The problem is speed: leads arrive at night and on weekends, and the team replies hours later. AI tools for business in India solve this by answering instantly, collecting the details your team needs and booking the next step.

This guide explains how these tools work, shows working code for a lead-qualifying WhatsApp bot, and helps you decide whether to build one yourself or use a ready platform.

What AI tools can do for a business today

A well-set-up AI assistant can handle the repetitive first layer of customer conversations:

  • Answer common questions about services, timings, location and process, at any hour.
  • Run AI lead qualification: ask a few questions and capture name, need, budget and urgency.
  • Handle AI appointment booking: offer slots and confirm a time.
  • Follow up with leads who went quiet.
  • Hand the conversation to a person when it gets complex or sensitive.

This is AI automation for small business at its simplest: the AI does the first reply and the data entry, and your team does the selling.

How an AI chatbot for business works

An AI chatbot for business has four moving parts:

  1. Channel: where customers write, usually WhatsApp, your website chat or a phone call.
  2. Webhook: the channel sends each new message to a URL on your server.
  3. Instructions and model: your server sends the conversation plus a written brief (the system prompt) to an AI model, which writes the reply.
  4. Hand-off: the reply goes back to the customer, and the captured details go to your CRM.

The code below builds this flow step by step in Python.

Step 1: Give the AI its job

The system prompt is the most important part. It tells the AI who it represents, what facts it may use and what to do when it does not know.

# pip install anthropic
import anthropic

client = anthropic.Anthropic()  # reads ANTHROPIC_API_KEY from the environment
MODEL = ‘claude-sonnet-5-5’  # check Anthropic docs for the current model name

SYSTEM_PROMPT = ”’You are the WhatsApp assistant for Sharma Dental Clinic in Pune.
Be polite, brief and clear. Answer only from the facts below.
Facts: open Monday to Saturday, 10am to 7pm. Consultation fee is Rs 500.
Goal: find out what the customer needs, then collect their name and preferred time.
If you do not know something, say a team member will reply shortly.
Never give medical advice or promise prices that are not listed above.”’

def ask_ai(history):
    response = client.messages.create(
        model=MODEL,
        max_tokens=400,
        system=SYSTEM_PROMPT,
        messages=history,  # list of {‘role’: ‘user’ or ‘assistant’, ‘content’: ‘…’}
    )
    return response.content[0].text

Replace the clinic details with your own business facts. The more specific the facts, the fewer wrong answers the AI invents.

Step 2: Turn the chat into structured lead data

For AI lead qualification, ask the model to extract the key details as JSON, so your CRM can use them.

import json

EXTRACT_PROMPT = ”’From the conversation, return ONLY valid JSON with these keys:
name, need, budget, urgency (low, medium or high), ready_to_book (true or false).
Use null for anything unknown.”’

def extract_lead(history):
    transcript = ‘ ‘.join(f”{m[‘role’]}: {m[‘content’]}” for m in history)
    response = client.messages.create(
        model=MODEL,
        max_tokens=300,
        system=EXTRACT_PROMPT,
        messages=[{‘role’: ‘user’, ‘content’: transcript}],
    )
    try:
        return json.loads(response.content[0].text)
    except json.JSONDecodeError:
        return None  # never trust model output without checking it

Always validate the result. Models can occasionally add extra text around the JSON, so keep the error handling.

Step 3: Connect it to a WhatsApp AI chatbot

To build a WhatsApp AI chatbot, you use the WhatsApp Business Platform (Cloud API) from Meta. After you set up an app and a phone number, WhatsApp calls your webhook for every new message. This Flask example receives the message, asks the AI and sends the reply.

# pip install flask requests
import os
import requests
from flask import Flask, request

app = Flask(__name__)
VERIFY_TOKEN = os.environ[‘WHATSAPP_VERIFY_TOKEN’]
WA_TOKEN = os.environ[‘WHATSAPP_ACCESS_TOKEN’]
PHONE_NUMBER_ID = os.environ[‘WHATSAPP_PHONE_NUMBER_ID’]
conversations = {}  # use a real database in production

@app.get(‘/webhook’)
def verify():
    # Meta calls this once to confirm your webhook URL
    if (request.args.get(‘hub.mode’) == ‘subscribe’
            and request.args.get(‘hub.verify_token’) == VERIFY_TOKEN):
        return request.args.get(‘hub.challenge’), 200
    return ‘Forbidden’, 403

@app.post(‘/webhook’)
def receive():
    data = request.get_json()
    try:
        message = data[‘entry’][0][‘changes’][0][‘value’][‘messages’][0]
    except (KeyError, IndexError):
        return ‘ok’, 200  # delivery status updates have no message
    if message.get(‘type’) != ‘text’:
        return ‘ok’, 200

    sender = message[‘from’]
    history = conversations.setdefault(sender, [])
    history.append({‘role’: ‘user’, ‘content’: message[‘text’][‘body’]})

    reply = ask_ai(history)
    history.append({‘role’: ‘assistant’, ‘content’: reply})
    send_whatsapp(sender, reply)
    return ‘ok’, 200

def send_whatsapp(to, text):
    requests.post(
        f’https://graph.facebook.com/v21.0/{PHONE_NUMBER_ID}/messages’,
        headers={‘Authorization’: f’Bearer {WA_TOKEN}’},
        json={
            ‘messaging_product’: ‘whatsapp’,
            ‘to’: to,
            ‘type’: ‘text’,
            ‘text’: {‘body’: text},
        },
        timeout=10,
    )

Use the current Graph API version shown in Meta’s documentation. Your server must be reachable over HTTPS, and WhatsApp expects a quick response, so production systems usually answer the webhook immediately and process the AI call in a background queue.

Step 4: Send qualified leads to your CRM

Once the conversation has enough detail, push the lead to your CRM through a webhook or an automation tool such as Zapier.

def push_to_crm(lead, phone):
    requests.post(
        os.environ[‘CRM_WEBHOOK_URL’],
        json={‘phone’: phone, **lead},
        timeout=10,
    )

# after each AI reply:
lead = extract_lead(history)
if lead and lead.get(‘ready_to_book’):
    push_to_crm(lead, sender)

Now your sales team sees a lead with a name, a need and a booking intent, instead of a raw chat log.

Guardrails you need before going live

The code above is a prototype. Before real customers use it, add:

  • Human hand-off. Let the customer type “talk to a person” and route the chat to your team.
  • Fact limits. Keep prices, policies and medical, legal or financial claims inside the system prompt. Tell the AI to say it does not know otherwise.
  • Consent and opt-in. Message only people who have agreed to hear from you. WhatsApp also limits free-form business messages outside its 24-hour customer service window, so you need approved message templates for follow-ups.
  • Webhook security. Verify the signature Meta sends with each request, and keep tokens in environment variables, never in code.
  • Data privacy. Collect only what you need, store it securely, and read your AI provider’s data terms.
  • Logging and review. Save conversations so you can find wrong answers and improve the prompt.
  • A database. Replace the in-memory dictionary so conversations survive restarts.

Build vs buy: which is right for you?

FactorBuild it yourselfUse a platform like 6OAM
Time to launchWeeks, including testingDays, with onboarding help
Technical skillDevelopers neededNo coding needed
MaintenanceYou manage servers, updates and API changesThe platform handles it
CRM, bookings, reviewsYou connect each oneAlready in the same system
Custom behaviorUnlimitedWithin the platform’s settings
Best forProduct teams with unusual needsBusinesses that want results, not infrastructure

Building teaches you how it works and gives full control. For most small and mid-size businesses, the maintenance and integration work is the real cost, and that is where a ready platform saves time.

Where 6OAM’s AI agents fit

6OAM is an all-in-one business growth platform for businesses in India. Its AI chat and voice agents qualify leads, answer common questions and book appointments 24 hours a day, and they sit in the same system as your CRM, funnels, WhatsApp and email automation, bookings, reputation tools and analytics. It connects with the WhatsApp Business API, Google Ads, Meta Ads, Razorpay or Stripe, Google Business Profile and Zapier.

AI agents are included from the Growth plan (₹1 Lac per month) upward. Essential starts at ₹50K per month, and Pro is custom for larger teams. Plans are month to month, and the onboarding team helps with setup. See the pricing page for details.

Practical examples of AI automation for small business

  • Clinics and salons: answer timing and service questions, then book appointments.
  • Real estate: capture budget, location and timeline from every enquiry, then route hot leads to an agent.
  • Coaching and training: answer course questions and send the right brochure or booking link.
  • Home services: collect the address and issue, then schedule a visit.

In each case, an AI voice agent for business can handle the same first call that your team would otherwise miss.

Frequently asked questions

What are AI tools for business? They are software tools that use AI to handle tasks such as answering customer questions, qualifying leads, booking appointments and following up, across channels like WhatsApp, website chat and phone calls.

Can I build a WhatsApp AI chatbot myself? Yes. You need a WhatsApp Business Platform account, a server that can receive webhooks over HTTPS, and an AI model API. The code in this guide is a starting point, but production use also needs a database, guardrails and monitoring.

Do I need coding skills to use AI agents? Not if you use a platform. 6OAM provides AI chat and voice agents that are set up with the onboarding team, without you writing code.

Is an AI chatbot safe for customer data? It can be, if you collect only what you need, store data securely, get customer consent and understand your provider’s data terms. Review these points with any tool you choose.

Can an AI voice agent handle phone calls? Yes, AI voice agents can answer calls, qualify callers and book appointments. For outbound calling, check telecom and consent rules that apply in India.

Will AI replace my sales team? No. AI handles the first response and data capture. People are still better for negotiation, complex questions and closing.

Does 6OAM include AI agents in every plan? AI agents are included from the Growth plan upward. Essential covers CRM, funnels and marketing automation.

How much does 6OAM cost? Plans start at ₹50,000 per month for Essential, with Growth at ₹1 Lac per month and a custom Pro plan for larger teams.

Conclusion

AI tools for business in India work best when they take over the first reply, the repetitive questions and the data entry, and leave closing to your team. If you have developers, the code in this guide gives you a working starting point for a WhatsApp AI chatbot. If you would rather launch quickly, with CRM, bookings and support in the same system, a platform is usually the faster and safer route.

To see how AI agents work inside one login with your CRM and funnels, read our guide to the all-in-one business growth platform or talk to the 6OAM team.

Ready to put AI to work?

See 6OAM’s AI agents working with your CRM, WhatsApp and bookings. Book a free demo or write to au@6oam.com.