Skip to main content

AI Assistant

The Backoffice includes a built-in AI chat assistant that can answer questions about your store data using natural language.

Setup

Navigate to Settings → AI Settings.

Provider Configuration

FieldDescription
ProviderSelect: Ollama, OpenAI, Claude, or Azure OpenAI
Base URLAPI endpoint URL
Chat ModelModel name (e.g., gpt-4o, llama3.1, claude-sonnet-4-20250514)
API KeyAuthentication key (not required for Ollama)

Default Settings per Provider

ProviderDefault URLDefault Model
Ollamahttp://localhost:11434llama3.1
OpenAIhttps://api.openai.com/v1gpt-4o
Claudehttps://api.anthropic.com/v1claude-sonnet-4-20250514
Azure OpenAIYour Azure endpointgpt-4o

Health Check

Use the Test Connection button to verify the AI provider is reachable and configured correctly.

Using the Assistant

Click the sparkles button (✨) floating in the bottom-right corner of any Backoffice page. This opens the AI chat panel.

Example Queries

  • "What were yesterday's total sales?"
  • "Show me the top 5 selling products this month"
  • "How many orders are in Processing status?"
  • "Give me a summary of customer John Doe"
  • "What discount codes are currently active?"
  • "What's the revenue breakdown by order status?"
  • "Create a 20% off promotion for the Electronics category this weekend, max ₺50 discount"
  • "Set up a buy 2 get 1 free campaign for the Nike brand and make it live"
  • "Disable discount code SUMMER20"

Read Tools

The AI assistant has 8 read-only tools for answering questions:

ToolDescription
get_order_summaryOrder counts and totals by status
get_recent_ordersLatest orders with details
get_customer_summaryCustomer info and order history
get_product_summaryProduct details and stock
search_productsSearch products by name/SKU
get_discount_codesActive discount codes
get_top_selling_productsBest sellers by quantity
get_revenue_by_statusRevenue grouped by order status

Write Actions

The assistant can also make changes when you explicitly ask:

ToolDescription
update_discountUpdate an existing discount code (value, type, enabled state, usage limit, date range, basket rules)
create_promotionCreate a new automatic promotion (cart/catalog campaign) from a natural-language prompt

Creating Promotions

Describe the promotion in plain language and the assistant builds it for you. Supported promotion types: PercentageDiscount, FixedAmountDiscount, FreeShipping, BuyXGetY, BuyXPayY, DiscountedShipping. You can scope a promotion to specific categories or brands by name — the assistant resolves the names to IDs and tells you about any it couldn't match.

Disabled by default

New promotions created via chat are disabled (not live) so you can review them in Marketing → Promotions first. They are only created enabled when you explicitly ask to activate / publish / make it live. The assistant always confirms the name, type, scope, validity dates, and enabled state after creating one.

Tiered and Fixed-Price-Bundle promotions are not yet supported via chat — create those from the Promotions screen.

Multi-Turn Conversations

The chat maintains conversation history within a session. You can ask follow-up questions and the assistant will use context from previous messages.

Security

All assistant access requires Admin authentication (and the settings:integrations permission). Beyond read-only queries, the assistant can perform a limited set of write actions (updating discount codes, creating promotions) only when you explicitly request them; new promotions are created disabled for review unless you ask to activate them. It cannot delete records.

tip

For Ollama, you can run a local AI model with no API key cost. Install Ollama, pull a model (ollama pull llama3.1), and configure the Backoffice to point to your local instance.