๐ Connect a project
Paste the project's admin key (starts with aib_admin_).
This browser remembers it, and the project then shows in the menu on the left.
โ Create a new project
Overview
How to use this bot, step by step
Upload PDF, DOCX or TXT files. The bot answers only from these. English is enough: it replies in Hindi and Gujarati too.
Open the demo site, paste this project's chat key and ask questions like a customer would โ with typos too.
Open demo site โWrong or missing answers land in Training. Fix the answer and press Approve โ the bot uses it from then on.
Add one line before </body> of any site (use the project's chat key):
<script src="/widget.js"
data-key="YOUR_CHAT_KEY" async></script>
PDF, DOCX or TXT, up to 50 MB. A file with the same name replaces the old one. Tip: for Hindi / Gujarati, prefer TXT โ text from PDFs in those scripts often comes out broken.
Files the bot knows
| File | Status | Chunks | Size | Uploaded |
|---|
Questions to review
The bot learns only what you approve here. Fix the answer and press Approve: from then on the bot gives that answer to this question (and ranks it above the documents). Same questions are grouped.
โ Approved answers
| Question | Approved answer |
|---|
Chats by customer
Pick a chat to read it from start to end.
The customer's name and email are saved when they fill in the booking / free-eSIM details; the order number when an order is placed. Passport, address, mobile and card digits are never saved, and those answers show as "[personal details - not stored]".
Recent conversations
| When | Question | Answer | Found | Feedback | Time |
|---|
Connected APIs
| Action | When to use | API | Asks for | On |
|---|
โ Add an action
1 ยท Basics
2 ยท API
The bot asks the customer everything itself: destination โ date โ plan โ traveller details โ YES.
The bot asks for the code, finds the plan NEXT makes free with it (a 100% offer with one-time codes), then the travel date and the traveller's name, email and mobile โ YES โ order with the code โ QR. A code is used once.
3 ยท Login
Changing the server address, Token URL, login type, header name or Client ID needs the secret again: a saved secret is only ever sent to the place it was entered for. Only addresses on the server's allowed list (Actions:AllowedDestinations) can be used.
4 ยท Privacy
No booking action yet
The flow belongs to a NEXT action, so add one first: Live data โ โ Add an action โ Type Booking (or Free eSIM) โ NEXT API base URL + this client's Client ID / Secret โ Add. Then come back here. The NEXT APIs the bot uses are listed below.
{1}, {2} โฆ are filled in per customer (country, date, number) โ keep them in the translated text. Empty = removed (translated again when needed). Check them: a small AI model makes mistakes.
| English | Translation |
|---|
NEXT APIs the bot calls, and which step calls them
| Method | Path | What | Called by |
|---|
After the order the bot does the rest by itself: documents (INR plans) โ activate โ eSIM QR.
Bot avatar
Theme โ chat colours from a website
Paste the brand's website (e.g. makemytrip.com). We read its logo and colour, you check them, then save.
Keys and website code
This project was made before keys were shown here. Paste its chat key once (from keys/*.json), or make a new one.
Allowed websites
The chat key works only on these websites. If someone copies the website code to another site, the bot won't open there. Empty = any website. This site (demo page) always works.
Booking flow
The booking questions, โก Flow mode and the prepared languages (Hindi, Hinglish, Gujarati) are in the Flow builder.
Booking API fields
What the client's server sends to POST /api/bookings for each booking.
Built-in fields: required, optional or off. Add your own fields, or remove them. bookingReference is always required.
Auto open
The chat opens by itself after some time on the page, and closes again if the customer doesn't use it. Once per visit; it never closes a chat the customer has touched. Empty or 0 = off.
A website can set its own times in its code: data-auto-open="300" data-auto-close="120" (seconds).
๐ฌ WhatsApp keyword
One WhatsApp number serves several bots. A customer who writes this word (e.g. mastercard)
gets this bot from then on; customers who write no keyword get the number's default bot.
WhatsApp (WATI) โ old direct connector (not needed with the keyword above)
WhatsApp now runs through the separate Wati.Api service (its own Swagger, connections and keyword routes). Leave this switched off unless you were told to use the old connector.
This bot answers on WhatsApp too: the same documents, flow and live data as the website chat. Values from WATI โ API Docs.
Testing on a laptop? Start ngrok http 5017 and use the ngrok address instead of
localhost. Keep this URL private: the secret in it lets WhatsApp messages in.
๐ฐ Payments (Razorpay UPI QR)
After the customer says YES, the bot shows a UPI QR for the order total + GST right in the chat (website and WhatsApp). The NEXT order is placed only after the payment. Free / coupon orders skip it. Keys from Razorpay โ Account & Settings โ API Keys.
Payments in the chat
| When | Amount | Status | Reason | Order | Razorpay |
|---|
Welcome screen
What a customer sees when the chat opens: the first message and the buttons under it.
Bot name, tone and language
AI model
Which AI writes the answers from your documents. ChatGPT answers in 1โ3 seconds; Ollama runs on our own server (free, slower). Customers' personal details (booking answers, order lookups, live data) always stay on our own server and never go to ChatGPT; questions are sent with emails, phones and passport / card numbers hidden.