GET/features/chatbot200OK

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-cases200OK

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.

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/example200OK

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 { event, data } = req.body;

  if (event === 'message' && !data.fromMe) {
    await fetch(`${API}/message/text`, {
      method: 'POST',
      headers: HEADERS,
      body: JSON.stringify({
        to: data.from,
        text: `You said: ${data.body}`
      })
    });
  }

  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

Session Persistence

Maintain conversation state across messages with your own storage

Multi-Language

Clean REST API works with any language — Node.js, Python, PHP, Go, Java, Ruby

No Meta Verification

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

GET/features/chatbot/faq200OK

Frequently Asked Questions

$ wsapi cloud --start

Get started today

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

Explore more