QA

TestMachine

One prompt, four channels, real production endpoints

A lightweight AI agent wired to chat, WhatsApp, Twilio voice and email at the same time. It accepts inbound messages on every channel, answers through the matching outbound, and stores history per (channel, peer) so any subsequent turn lands in the right context.

  • 4 Channels — chat, WhatsApp, voice, email
  • 1 Prompt by default — overridable per channel
  • 0 Hardcoded model names or keys in the code

TestMachine is a single inbound surface that listens on four real channels — a JSON chat REST endpoint, the Meta WhatsApp Cloud webhook, the Twilio voice webhook, and an IMAP-polled mailbox. Every inbound message lands in the same store, runs through the same model call, and produces an answer dispatched on the matching outbound — SMTP for email, the Cloud API for WhatsApp, TwiML Gather for voice.

A single system prompt drives every conversation, with optional per-channel overrides for the cases where voice cadence, WhatsApp brevity or email formality matter. The model name and the provider key are pulled from SuperAdmin, so swapping engines is a dropdown change rather than a redeploy.

History is keyed by (channel, peer_id) — a chat user, a WhatsApp number, a phone number, an email address — so a follow-up message lands in the right thread regardless of which surface it arrives on. Each row carries the raw inbound, the assembled prompt, the response and the latency, which gives the operator a clean audit trail per turn.

The operator surface is two screens: a live unified feed of every inbound and outbound across every channel, and a settings panel for prompts, model parameters and the endpoint URLs needed to wire upstream providers. A built-in chat tester sends an arbitrary prompt against the same pipeline so behaviour is verified before pointing real traffic at it.

All inbound endpoints are protected by a shared bearer token; the WhatsApp webhook adds the standard Meta verification handshake. Sessions, messages and outbound state live in an isolated database, so the service can be brought up, torn down or swept clean without affecting any other workspace on the platform.

Capabilities

Everything TestMachine handles for you

  • Four-channel ingest

    JSON chat REST, WhatsApp Cloud webhook, Twilio voice TwiML and IMAP mailbox poll — into one shared history.

  • One prompt, channel overrides

    Single system prompt by default; optional per-channel overrides for voice and WhatsApp tone.

  • Per-conversation history

    Indexed by (channel, peer) — multi-turn context survives across days and across channels.

  • Model from SuperAdmin

    Provider, model name and API key resolved at runtime — change once, applied everywhere.

  • Bearer-protected inbound

    Every public endpoint requires a shared secret; WhatsApp adds Meta verification on top.

  • Operator console

    Live unified feed of every inbound and outbound, plus a chat tester running through the same pipeline.

Integrations

A self-contained agent that plugs into the platform identity and model layer

TestMachine carries its own database, webhooks and outbound clients, and leans on AuthGate for the operator session and on SuperAdmin for the model assignment so it stays consistent with the rest of the stack.

  • AuthGate gates the operator console and the settings panel.
  • SuperAdmin supplies the AI model, provider choice and outbound API key.
  • AIM CRM optional consumer — receives the conversation as a contact activity for downstream reporting.

Wire TestMachine into your product today

Book a consultation with our founders and we'll walk you through the whole microservice stack — not just this one — live on your domain.