wwisa.ai docs Console ↗

Architecture at a glance

The path of one message from a channel to your adapter and back, and the line between what the platform runs and what you run.

On this page
  1. One message, end to end
  2. What you own, what the platform owns
  3. Two credentials, one per direction
  4. Single-turn runs take a shorter path
THE PLATFORMYOURSContactWhatsApp · webChannel gatewaydelivery · hand-offConversation layerone per contactAgent runtimeroute · prompt · checkRegistryyour pack, pinned versionTool gatewaytools out · Domain API inQuality loopgolden cases · verdictsYour Domain Adapter7 endpoints you serveYour systemsbookings · customers · stockYour Domain PackHTTPS · adapter secretHTTPS · DomainKey12345
Everything inside the grey line is the platform. Everything inside the blue line is yours. The two cross only over HTTPS, with a credential in each direction.

One message, end to end

  1. A contact writes. The channel gateway receives the message from WhatsApp, the web chat or your own app.
  2. The conversation is found. The conversation layer finds the contact’s conversation, or starts one and asks your adapter who the contact is and what it should know about them.
  3. An agent takes the turn. The agent runtime reads your Domain Pack at the version the Partner is pinned to, picks the agent for this turn, and builds its prompt.
  4. Tools run in your systems. When the agent calls a tool, the tool gateway sends the call to your adapter, which answers with the tool envelope.
  5. The reply is checked, then sent. The runtime checks the drafted reply against your rules before the channel gateway delivers it.

What you own, what the platform owns

YouThe platform
Your Domain Pack: agents, intents, rules, tools, golden casesStoring it as versioned data, and running the version each Partner is pinned to
Your Domain Adapter and the business systems behind itCalling your adapter with your adapter secret, and handling a failed call
Your channel accounts, such as a WhatsApp numberReceiving and delivering messages, and handing a conversation to a person
Deciding when a version is good enough to releaseRunning golden cases and showing each version’s pass rate

Two credentials, one per direction

DirectionCredentialUsed for
Your systems → platformYour DomainKey, as x-api-keyThe Domain API: runs and keys
Platform → your adapterYour adapter secret, as x-api-keyEvery call to your seven adapter endpoints

Single-turn runs take a shorter path

A single-turn run has no channel and no conversation. Your system calls the Domain API with a job and a query. The platform runs the agent that fills the job and answers with an answer and, when the agent declares one, structured data. A run in the background posts its result to your adapter instead. See Single-turn runs and the Runs API.

★
Key takeaways
  • You build two things: a Domain Pack (data) and a Domain Adapter (one small web service).
  • The platform never reaches your systems except through your adapter.
  • Every Partner runs a pinned version of your pack, so a change never reaches contacts until you release it.