Work/Stark Dev AI/Chat Interface
// chat_interface

The intelligent hub that connects every system.

The chat interface is the operator layer of the platform — two separate AI providers (Chat and Image), a TOOLCALL dispatch pipeline, persistent history, and a mode system that switches the persona on the fly. Lux runs inside it. So does everything else.

← Back to overview
Multi-provider AIFull conversation historyTOOLCALL protocol File & image contextVoice context injectionMode-specific personas
Prompt pipeline · per message
01 · user message
"What did I bill this week and what's in my inbox?"
02 · prompt builder
Injects: persona · memories · notes context · tool catalogs · conversation history · voice/file context
03 · ai provider (openai → grok fallback)
TOOLCALL: {"name":"time_tracker.get_hours","arguments":{"range":"this_week"}}
04 · response dispatcher
Parses TOOLCALL → executes time_tracker → injects result → re-queries AI for final response
05 · final response
"You've billed $1,240 this week across 4 clients. Your inbox has 3 unread — want me to pull them up?"
// what the chat engine does

Every message is a fully assembled context package.

prompt builder

Full context injection

Before every message reaches the AI, the prompt builder assembles: personality, persistent memories, active notes, all tool catalogs with instructions, conversation history, and any file or voice context. The AI always has the full picture.

toolcall protocol

Real data, not guesses

When the AI needs live information — hours, client records, task status, email content — it outputs a structured TOOLCALL. The response dispatcher intercepts it, executes the tool, injects the result, and the AI answers with real data.

response dispatcher

Transparent execution

The dispatcher handles parsing, routing, execution, and re-injection automatically. Tool results are returned in a clean format — the AI formats the response, not the raw JSON. You always see a human-readable answer.

multi-provider

Automatic fallback

Each mode has a defined provider fallback chain — if OpenAI is slow or down, Lux automatically routes to Grok, then Venice. Chat, image, and video each have separate fallback orders configured per mode.

history

Full conversation memory

Every message is stored per-user and per-mode in the WordPress database. Lux remembers the full conversation thread and uses it to maintain context across a long working session — not just the last few messages.

context injection

File, image & voice

Upload a document and ask Lux to summarize it. Share an image and ask what to do with it. Speak instead of type and she switches to voice-aware response patterns. All of it flows through the same chat pipeline.

Provider options — Chat & Image are configured independently

Chat providers

OpenAI
Grok · xAI
Venice AI
Gemini

Image providers

OpenAI
Grok · xAI
Venice AI
Gemini
Promptchan

Both dropdowns live in the chat topbar and are saved per user per mode. Switch image to Promptchan while keeping OpenAI for chat — settings persist across sessions, stored encrypted per user.

// lux communicates with

Want an AI interface that actually connects to your business?

We built this from scratch. We can build the right version for your workflow.