Chatbot

A chatbot that answers like your best support rep, not like a bot.

Answers come from your own SOPs, catalog, and past tickets — not from the model guessing. Cheap models handle the bulk of conversations, bigger ones only when a question escalates. SSE streaming makes replies appear word by word instead of a three-second wait.

  • Endpointapi.datago.id/v1
  • LanguagesID + EN, mixed
  • Billingper token, in IDR
DataGo Support online · replies < 1s
Hi 👋 Ask me about your balance, available models, or support hours.

Demo widget — scripted replies, not a live API call.

The problem

Why most chatbots feel awful

Not because the model is dumb. Because the answers do not match your product, they arrive slowly, and the bot insists on answering when the case needs a human. Those three things make customers close the chat.

  • Generic answers: it knows a general "refund policy", not yours
  • Replies appear after 3–5 seconds because it waits for the full response
  • The bot keeps answering when the case should have been escalated
What you get

Three jobs, one endpoint

01

Answers from your documents

Pass SOP and catalog snippets as context; the answer follows your policy instead of the model's guess.

02

Word-by-word streaming

SSE ships tokens as they are produced, so the reply starts rendering in under a second even when it is long.

03

Explicit escalation

When context is missing or the customer is angry, the bot hands the conversation to a human instead of improvising.

Pipeline

One conversation

Three steps that make answers specific instead of generic.

  1. 01

    Retrieve the relevant document

    Pull 3–5 snippets from SOPs, catalog, or past tickets (embeddings or keywords). This is what keeps answers on topic.

  2. 02

    The model composes a reply

    A cheap model handles most conversations; escalate to a larger one only for complex complaints.

  3. 03

    Stream and escalate

    Stream the reply into the chat widget. If context is thin, show a "talk to a human" button.

Models

Models for conversation volume

Prices come straight from the catalog when the page loads. Estimates assume one short chat reply.

Models for conversation volume
Model Role Input / 1M Output / 1M Estimate / request
minimax/minimax-m3 Cheapest for thousands of conversations a day Rp1.575 Rp3.150 Rp1,73
anthropic/haiku-5.5 Smoother, more consistent tone for sensitive brands Rp4.050 Rp19.800 Rp7,38
gemini/gemini-3.8-flash Long context: an entire catalog page at once Rp7.875 Rp15.750 Rp8,66

Estimates use the token counts shown in the header. Prices update automatically whenever the catalog changes.

Browse all chatbot models
Code

Streaming reply with context

Constrain the answer to the context you send, then stream it to the widget. Without context, the bot invents.

chat.py
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.datago.id/v1",
    api_key=os.environ["DATAGO_API_KEY"],
)

SYSTEM = """You are DataGo support. Answer ONLY from the context below.
If the answer is not in the context, reply: "Let me connect you to a human."

Context:
- Top up via QRIS, minimum Rp10.000, balance never expires.
- Refunds only for unused balance, within 7 days.
- Support hours 09:00-21:00 WIB."""

stream = client.chat.completions.create(
    model="minimax/minimax-m3",
    messages=[
        {"role": "system", "content": SYSTEM},
        {"role": "user", "content": "Can my balance expire?"},
    ],
    stream=True,
    max_tokens=300,
)

for chunk in stream:
    delta = chunk.choices[0].delta.content
    if delta:
        print(delta, end="", flush=True)

→ The context you send is the bot's knowledge boundary. Send only relevant snippets; shipping whole documents raises cost without improving answers.

Fit check

Good fit when

  • More than half of your support volume is repeat questions
  • You have SOPs or a catalog usable as context
  • Your customers mix Indonesian and English

Not for

  • Replacing humans for payment disputes — you still need a person
  • A bot that remembers conversations for months: that is your app's state management, not the model

Chatbot questions

01 Are customer conversations stored?

Not by DataGo. Prompts and responses are not stored; conversation history stays in your app and you can keep it under your own privacy policy.

02 How do I stop the bot from making things up?

Constrain it with "answer only from the context", send the relevant document snippets, and provide an exit to a human when context is empty. Test with 20 real questions before launch.

03 Does it handle Indonesian mixed with English?

Yes, with no special instruction. Brand tone is set in the system prompt, so you can pick formal or casual per channel.

04 What does 10,000 conversations per month cost?

A short reply is roughly 600 input and 250 output tokens. On MiniMax M3 that is about Rp1,73 per reply, so 10,000 replies is roughly Rp17,300. Table prices are pulled live from the catalog, not hardcoded.

Ship your chatbot this week

Start with the 20 questions you get most often, turn them into context, then measure how many need a human.