Customer support chatbot
Route product questions into a short answer, a confidence label, and a clear next action.
Best when you need an operator-friendly answer shape instead of free-form chat.
Playground starter prompt
A customer asks: "Our sync job is delayed by 17 minutes. What should we check first?" Reply in JSON with answer, confidence, and next_action.
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.BATCHIN_API_KEY,
baseURL: "https://api.luminapath.tech/v1",
});
const response = await client.chat.completions.create({
model: "glm-5.1",
messages: [
{
role: "system",
content: "You are a support copilot. Return JSON with answer, confidence, and next_action."
},
{
role: "user",
content: "Our sync job is delayed by 17 minutes. What should we check first?"
}
]
});
console.log(response.choices[0].message.content);