Lewati ke konten utama

AI Assistant

The AI Assistant is a conversational interface built into your Dashboard. Ask it questions, create records, and manage your roastery operations in plain language — no clicking through menus required.

Open Dashboard


How It Works

The AI Assistant connects to your Qrema data through a secure API key. Once connected, it can read and write across all your modules — inventory, purchasing, sales, work orders, recipes, suppliers, customers, and green bean profiles.

Each message you send is processed by an AI model that decides which data to fetch or action to take, executes it against your account, then summarizes the result in plain language.

info

Your data stays private. The API key scopes every request to your company only. Other companies cannot access your data.


Connecting the AI Assistant

The AI Assistant requires a one-time setup to link it to your account.

Step 1 — Go to Settings

Navigate to Settings → MCP Integrations.

Open MCP Integrations

MCP Integrations settings page

Step 2 — Generate an API Key

Click "Generate New Key", give it a name (e.g. Dashboard AI), and click Create.

peringatan

Copy the key immediately. It is shown only once. If you lose it, revoke it and generate a new one.

Step 3 — Connect the Key

After the key appears, click "Connect to AI Assistant". The status indicator turns green and shows Connected.

AI Assistant connected status

Step 4 — Start Using the Assistant

Go back to the Dashboard. The AI Assistant is now active. The amber warning banner disappears and you can start typing.


The Dashboard Chat Interface

The AI Assistant occupies the top section of the Dashboard.

AI Assistant chat on Dashboard

ElementDescription
Input boxType your request in natural language
Send buttonSubmit your message (or press Enter)
Shift+EnterAdd a new line without sending
+ buttonOpens the Quick Actions menu after a conversation starts
Tool indicatorPurple messages show which data the AI fetched
Connection bannerAmber warning appears if no API key is connected

Quick Actions

Use the suggestion chips below the input box to fill in pre-formatted prompts for common tasks:

ChipWhat It Does
Create purchase orderStarts a purchase order prompt
Create sales orderStarts a sales order prompt
Create inventoryOpens a structured inventory creation form
Create supplierOpens a structured supplier creation form
Create customerOpens a structured customer creation form
Create work order draftOpens a work order draft prompt

Once a conversation is active, click the + button for the same options in a popup menu.


What You Can Ask

The AI Assistant can handle any of the following. Examples are written in natural language — you don't have to be precise.


Inventory

What to askExample
List inventory"What inventory items do we have?"
Filter by type"Show me all green bean items"
Item details"Show details for Kintamani Arabica"
Create item"Add a new green bean item called Papua Wamena, 50kg, reorder at 10kg"

Purchasing

What to askExample
List orders"Show all purchase orders"
Filter by status"List all pending purchase orders"
Order details"Show details for PO-0012"
Create order"Create a purchase order for 100kg of Gayo Arabica from CV Dampit Sejahtera"
Update order"Mark purchase order [ID] as delivered"
Update payment"Set payment status to paid for PO-0012"

Sales

What to askExample
List orders"Show my sales orders"
Filter"List all draft sales orders"
Order details"Show details for SO-0034"
Create order"Create a sales order for Cafe Rempah — 20kg House Blend at 150,000/kg"
Update status"Mark sales order [ID] as sent"

Work Orders

What to askExample
List machine types"What machine types do we have?"
List work orders"Show all work orders"
Filter by status"List in-progress work orders"
Work order details"Show details for WO-0007"
Create work order"Create a work order for tomorrow 09:00 on Probat P12, 12kg batch"
Update work order"Update work order [ID] — set status to completed, output weight 10.5kg"
tip

Before creating a work order, ask "What machine types do we have?" to get valid machine type IDs. The AI will do this automatically if you ask it to create one.


Recipes

What to askExample
List recipes"Show all roast profiles"
Recipe details"Show details for House Blend recipe"
Create recipe"Create a recipe called Kintamani Light Roast, 12kg input, 10kg output, medium roast"
Update recipe"Update House Blend — set tasting notes to chocolate and citrus"

Suppliers

What to askExample
List suppliers"List all active suppliers"
Supplier details"Show details for CV Dampit Sejahtera"
Create supplier"Add a new supplier: Kopi Nusantara, contact Pak Budi, 0812-3456-7890"
Update supplier"Update CV Dampit — add internal note: net 30 payment terms"

Customers

What to askExample
List customers"Show all customers"
Customer details"Show details for Cafe Rempah"
Create customer"Add customer: Brew House Jakarta, email brew@example.com, billing address Jl. Kemang No. 5"
Update customer"Update Brew House — add note: prefers 250g bags"

Green Bean Profiles

What to askExample
List profiles"Show green bean profiles"
Profile details"Show details for profile [ID]"
Create profile"Create a green bean profile for Kintamani Arabica — Arabica, Bali, washed process, Grade 1"
Update profile"Update profile [ID] — moisture content 11.5%, density 0.72"

General Queries

The assistant can answer cross-module questions and give operational summaries:

  • "How many suppliers do we have?"
  • "What is the status of our latest work orders?"
  • "Do we have any green bean items with less than 20kg stock?"
  • "Summarize our recent purchase orders"

Tips for Best Results

  • Be specific with names. The AI looks up records by name. If you say "Gayo", it will search for the best match — but "Gayo Arabica Grade 1" is more precise.
  • Use the AI for multi-step tasks. For example: "Create a purchase order for 50kg of Gayo Arabica from CV Dampit — find the supplier and item IDs yourself." The AI will look them up automatically.
  • Check tool calls. Purple messages in the conversation show exactly what the AI fetched. This helps you verify it used the right records.
  • Correct mistakes inline. If the AI uses the wrong item, just say "Use [correct name] instead" and it will retry.
  • The AI uses today's date for defaults. If you don't specify a date for a purchase or sales order, it defaults to today.

Managing API Keys

Go to Settings → MCP Integrations to manage your keys.

ActionHow
Generate a new keyClick "Generate New Key", name it, click Create
Connect a keyClick "Connect to AI Assistant" after generating, or use "Connect Key" to paste an existing one
DisconnectClick "Disconnect" in the connection status panel
Revoke a keyClick "Revoke" next to the key — this permanently disables it
peringatan

Revoking a key immediately disconnects any tool or integration using it, including the Dashboard AI Assistant. Generate and connect a new key before revoking if you need uninterrupted access.


Connecting External AI Tools (Claude Desktop, etc.)

You can also use your Qrema API key with external MCP-compatible AI tools such as Claude Desktop.

In your Claude Desktop config file (claude_desktop_config.json), add:

{
"mcpServers": {
"coffee-erp": {
"command": "node",
"args": [
"coffee-erp-mcp-server",
"--api-key=YOUR_API_KEY_HERE"
]
}
}
}

Replace YOUR_API_KEY_HERE with a key generated from Settings → MCP Integrations.


Troubleshooting

ProblemFix
Amber warning banner on DashboardGo to Settings → MCP Integrations and connect an API key
"AI Assistant is not connected"Key is not set in this browser — reconnect via Settings
"Invalid or revoked API key"The key was revoked — generate and connect a new one
AI returns wrong dataThe AI searched by name and picked the closest match — correct it by specifying the exact name
AI says it can't create a work orderNo machine types exist — add them via Production → Machine Types first