Answers from your documents
Pass SOP and catalog snippets as context; the answer follows your policy instead of the model's guess.
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.
Demo widget — scripted replies, not a live API call.
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.
Pass SOP and catalog snippets as context; the answer follows your policy instead of the model's guess.
SSE ships tokens as they are produced, so the reply starts rendering in under a second even when it is long.
When context is missing or the customer is angry, the bot hands the conversation to a human instead of improvising.
Three steps that make answers specific instead of generic.
Pull 3–5 snippets from SOPs, catalog, or past tickets (embeddings or keywords). This is what keeps answers on topic.
A cheap model handles most conversations; escalate to a larger one only for complex complaints.
Stream the reply into the chat widget. If context is thin, show a "talk to a human" button.
Prices come straight from the catalog when the page loads. Estimates assume one short chat reply.
| 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 modelsConstrain the answer to the context you send, then stream it to the widget. Without context, the bot invents.
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)
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.datago.id/v1",
apiKey: process.env.DATAGO_API_KEY,
});
const 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.`;
const stream = await 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 await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}
curl -N https://api.datago.id/v1/chat/completions \
-H "Authorization: Bearer $DATAGO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax/minimax-m3",
"stream": true,
"max_tokens": 300,
"messages": [
{"role": "system", "content": "You are DataGo support. Answer ONLY from this context: QRIS top-up minimum Rp10.000, balance never expires, refunds within 7 days for unused balance, support 09:00-21:00 WIB. If not in context, reply: Let me connect you to a human."},
{"role": "user", "content": "Can my balance expire?"}
]
}'
→ The context you send is the bot's knowledge boundary. Send only relevant snippets; shipping whole documents raises cost without improving answers.
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.
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.
Yes, with no special instruction. Brand tone is set in the system prompt, so you can pick formal or casual per channel.
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.
Start with the 20 questions you get most often, turn them into context, then measure how many need a human.