Answers

Frequently asked questions

Short, concrete answers about how Retail AI OS behaves in production.

Product behaviour

Does the system publish discounts without a human?

No. A discount recommendation cannot leave the workflow without an approval decision, and the campaign agent cannot approve or publish. Approved campaigns are delivered through dry-run, webhook or native social adapters.

How does the discount agent stay within company limits?

Allowed percentages, maximum discount and margin protection are configuration. Rule pre-checks and post-decision verification run outside the model, so a proposal that breaks a hard rule is rejected before it reaches a reviewer.

Can the campaign agent be turned on for some teams only?

Yes. Chat and channels resolve as enabled only when the tenant flag is on, the specific user has a grant, and the user's role is allowed. Removing any one of the three denies access at the API.

Can we disable parts of the pipeline?

Optional stages such as policy retrieval, rule pre-check, policy verification, content verification, asset generation and regeneration can be switched off. Mandatory stages cannot be removed, and staging or production keeps verification and guardrails enabled.

What happens to a run when configuration changes mid-flight?

A workflow records the topology and model identity it started with. It resumes against that wiring, while the dashboard shows both the run snapshot and the current configuration.

Chat and channels

Why does a chat message appear to load and never answer?

The HTTP endpoint only enqueues the turn; a separate chat worker produces the reply. If the worker is not running, or the platform model is disabled or missing its key, the turn waits. Start the worker and confirm the platform LLM settings.

Does the chat agent use my personal API key?

No. The campaign agent and media calls use the platform environment credential so replies are consistent across a team. Personal keys apply to the dashboard's model selection features.

What happens if the stream drops mid-reply?

The client reconnects with the last event ID it received and the stream resumes from that point, so output is neither lost nor duplicated.

How does WhatsApp reach the same workflow?

A Meta WhatsApp Cloud API webhook verifies the signature, maps the phone number to a tenant link, stores the message as a chat turn and replies through the Cloud API. Approvals still happen in the dashboard.

Models, media and keys

Which model providers are supported?

OpenAI, Anthropic, Google Gemini, Mistral, Cohere, xAI, Groq, OpenRouter, DeepSeek, Qwen, Azure OpenAI and local Ollama for chat; Voyage AI and local BGE for embeddings; OpenAI and Replicate for image and video generation.

Can each user bring their own API key?

Yes. A user signs in, chooses a provider and model, and stores a key from their settings page. The key is encrypted with AES-256-GCM and only metadata is displayed afterwards. Administrators can enable or disable user keys and decide whether the platform environment key is a fallback.

How is video generation controlled?

Video is a separate purpose with its own model. Jobs are bounded by duration, output size and allowed MIME types, run on a leased media job, and are recorded with their own usage metric and telemetry.

Where are generated assets stored?

On local disk by default, or in an S3-compatible bucket or Azure Blob container. An optional CDN base URL changes only the delivery URL, not the stored object.

Quotas, publishing and infrastructure

How do we control model spend?

Each tenant has limits for model tokens, image and video calls, and publishes for the current period. Warning thresholds flag approaching limits, hard blocks stop calls before the cost is incurred, and the usage ledger records every metered call.

How are social publishing credentials stored?

Per tenant, sealed with AES-256-GCM and authenticated with the tenant and provider. The API returns status and metadata only. Delivery reads the credential inside the adapter at publish time.

What happens if Redis is down?

Caches that depend on Redis degrade to the database. Quota checks and feature lookups still answer, more slowly, rather than failing the request.

How is it deployed?

The API is a FastAPI service backed by SQL Server through stored procedures, with a React admin dashboard at /app. Background workers handle chat turns, media jobs, policy ingestion, notifications and publishing. Docker images and a compose file are included; the public marketing site is static HTML with no JavaScript.

Tenancy and data

Is it multi-tenant?

Yes. Data, feature flags, quotas, social credentials and channel links are scoped to a tenant, and every request carries a tenant claim that stored procedures enforce. One deployment can serve more than one organisation with isolated records.

Where does our data live?

In your SQL Server instance, your configured vector store and your chosen asset storage. Provider calls go directly from your deployment to the provider you selected; no Retail AI OS service sits in between.