TuBot DocumentationIndex ↑

How TuBot works

Follow a guest chat message from your site through the proxy, the agent, and back into Salesforce as a reply.

The one-paragraph version

A guest types in Embedded Messaging on your Experience site. The TuBot bridge snippet catches the message and passes it into the custom chat header, which posts it to your deployment’s secure proxy route. The proxy verifies the turn against live Salesforce, runs one agent turn, then submits the agent’s reply back to Salesforce — and the guest sees it in the chat window:

V2 chat window showing a visitor message and the agent reply

What the guest sees on a v2 deployment: their message, then the reply delivered through TuBot.

The trip, step by step

  1. Guest sends a message. Embedded Messaging on your site raises the send event; the TuBot bridge snippet (installed on your site by activation) catches the turn.
  2. Header relays it. The bridge passes the turn into the headerCustom component inside the messaging window, which POSTs it to your deployment’s proxy route.
  3. Proxy verifies. The proxy checks the turn against live Salesforce (session binding plus transcript proof) so spoofed turns are rejected.
  4. Agent answers. The proxy runs one agent turn with your tools, data, and handoff rules.
  5. Reply lands in Salesforce. The proxy submits the agent’s reply through the broker, which invokes the notification Flow. The guest sees the reply in the chat window.

The pieces

Piece What it does
Salesforce package Chat header, bridge installer, routing and notification setup, activation UI
Bridge snippet Catches guest messages on your site and forwards them into the header
Proxy route Per-deployment gateway: verifies turns, runs the agent, delivers replies
Broker Holds Salesforce credentials, verifies turns, submits replies
Agent Runs the conversation turn with tools, snapshots, and handoff verdicts

Tenancy in one line

Every deployment gets its own proxy route and credentials stay broker-side: one org’s chats, sessions, and secrets are never visible to another.

Next

Reference: Custom chat header and Secure proxy gateway.