Documentation

Add AI-powered booking to any chatbot in 10 minutes

Quick Start

Add AI-powered booking to your chatbot in 3 steps:

Step 1: Install the SDK

npm install agentic-booking

Step 2: Initialize with your API key

const AgenticBooking = require('agentic-booking');

const booking = new AgenticBooking({
  apiKey: 'YOUR_API_KEY_HERE',  // Get from dashboard
  
  onCheckAvailability: async ({ date, time }) => {
    // Check your calendar/database
    return { available: true };
  },
  
  onCreateBooking: async (data) => {
    // Save to your database
    return { bookingId: 'BK-123', confirmed: true };
  }
});

Step 3: Handle messages

// When user sends a message
const response = await booking.handleMessage(
  userMessage,      // "I want to book for tomorrow"
  userId,           // Unique user ID
  { platform: 'TELEGRAM' }
);

// Send response back to user
sendToUser(response);

✅ That's it!

The AI handles the entire booking conversation. It will ask for date, time, customer details, and confirm the booking.

🔑 Get your API key

Sign up for free to get your API key and start building.