GET/features/chatbot—200OK

WhatsApp Chatbot API

// Build conversational WhatsApp bots with a clean REST API. Handle text, buttons, lists, media, and location, all without per-message charges or Meta Business verification delays.

No credit card required · 14-day free trial
GET/features/chatbot/use-cases—200OK

Use Cases

use-case/customer-support-automation.ts
ready

Customer Support Automation

Deflect 60%+ of support tickets with FAQ bots, order lookup, and smart routing to human agents when needed. Each reply is one call to send a text message.

use-case/appointment-booking.ts
ready

Appointment Booking

Let customers browse availability, pick a slot, and confirm bookings, all within the WhatsApp conversation.

use-case/e-commerce-assistant.ts
ready

E-Commerce Assistant

Product search, cart management, and checkout flows inside WhatsApp. Send order confirmations and shipping updates automatically.

use-case/lead-qualification.ts
ready

Lead Qualification

Capture leads from WhatsApp ads. Ask qualifying questions, score prospects, and route hot leads to your sales team in real time.

POST/features/chatbot/example—200OK

Code Examples

// Copy, paste, ship

echo-bot.js
import express from 'express';

const app = express();
const API = 'https://api.wsapi.chat';
const HEADERS = {
  'x-api-key': process.env.WSAPI_KEY,
  'x-instance-id': process.env.INSTANCE_ID,
  'Content-Type': 'application/json'
};

app.post('/webhook', express.json(), async (req, res) => {
  const { eventType, eventData } = req.body;

  if (eventType === 'message' && !eventData.sender.isMe) {
    await fetch(`${API}/messages/text`, {
      method: 'POST',
      headers: HEADERS,
      body: JSON.stringify({
        to: eventData.chatId,
        text: `You said: ${eventData.text}`
      })
    });
  }

  res.sendStatus(200);
});

app.listen(3000);

Key Features

No Per-Message Fees

Flat monthly pricing. Send and receive unlimited messages within your plan

Rich Message Types

Text, images, video, audio, documents, contacts, locations, stickers, and buttons

Webhook Events

Real-time delivery receipts, read status, and presence updates for bot logic. See the message event payload

Session Persistence

Maintain conversation state across messages with your own storage

Multi-Language

Clean REST API plus official SDKs for Node.js, Python, PHP, Go, Java, and Ruby

No Meta Verification

Skip the Facebook Business verification process. Connect via QR code in minutes

GET/features/chatbot/faq—200OK

Frequently Asked Questions

$ wsapi cloud --start

Get started today

// Start a 14-day free trial with no credit card required

Related reading

Explore more