Skip to content

Learn · Guides

Put a guarded chat on your site

Stand up a chat that answers from your own material and stops when a rule says so.

Checked against the product on · written for people writing code

A chat agent answers on one domain, from material you give it, under the rule packs you name. It gets its own division, so its records stay separate from the rest of your account.

console.dmzagent.com/chat-agents/new

Automate

New chat agent

1
Name
Support chat
Site
example.comThe embed answers only on this domain.
Knowledge
Help centre export (412 pages)
Guarded by
Support conduct 1.1.2
2CancelPreviewCreate and get embed code
Figure. The chat-agent wizard. The site field bounds where the embed will answer. The chat-agent wizard: name, the site it may be embedded on, its knowledge sources, and the rule packs guarding it.
  1. Open Chat agents, select New chat agent, and name the site.1

    The embed answers on that domain alone. A blank site field is rejected.

  2. Add the knowledge and the rule packs, then select Create and get embed code.2

    Knowledge is ranked at query time, so the answer cites the page it came from.

Guard it

console.dmzagent.com/guard

Guard

Chatbot Guard

1
Watched thing
bot-support
Test message
Can you refund my order without a receipt?
2Take a look. Matches a warning label in your rule packs.
3
Watched thingStandingSinceReason
bot-supportTake a look5 minutesoff-topic-answer, 3 times
bot-salesAllowed2 days
Figure. The guard screen. A test message returns one of three answers with a plain reason. The guard screen: a test message box, the answer returned, and the live breaker standing for each watched bot.
  1. Open Chatbot Guard and send a message you expect to be stopped.1

  2. Read the answer and the reason.2

    Allow, take a look, or block, each with the label that decided it.

  3. Read the standings table.3

    It shows the live standing for every watched bot.

Guard it from your own code

A bot you host yourself calls the same check before it answers.

from dmzagent import DMZAgent

cx = DMZAgent(api_key="YOUR_API_KEY")
result = cx.check(subject_id="pump-12")
if result.allow:
    reply = your_bot(user_message)
Watch out. A failed check answers block. When the platform is unreachable, your bot receives the denying answer, so a network failure stops the sensitive path.