LavinderAI System

How LavinderAI Works

Built using Flask, APIs, and AI to create smart business chatbots instantly.

1 Authentication

Users login securely using Google OAuth.

/login → Google OAuth → /auth/google/callback → session created

2 Create Chatbot

User enters business name, slug, and FAQ content. Flask saves it in Firebase.

@app.route("/create", methods=["POST"])
def create():
    user["chatbots"][slug] = {
        "name": name,
        "content": content,
        "is_live": False
    }

3 AI Processing

Messages are sent to AI (Groq API) to generate responses.

def ask_groq(prompt, msg):
    return requests.post(API_URL, json={
        "messages": [...]
    })

4 Payment & Activation

Razorpay handles payments. After payment, chatbot becomes LIVE.

var rzp = new Razorpay(options);
rzp.open();

5 Public Chatbot

Each chatbot gets a unique public URL for customers.

https://lavinderai.onrender.com/your-bot

6 Real Example

A shop owner creates a chatbot for answering customer questions automatically.

Business: ABC Electronics
Slug: abc-electronics

Customer asks:
"What are your timings?"

AI replies instantly.
User → Create → Store → AI → Launch → Customers interact
Create Your Chatbot