Skip to main content
With allow_silence: true, an agent can return NO_REPLY (or a custom token) to send nothing β€” no message, no typing indicator, no error.

Quick Start

1

YAML

channels:
  telegram:
    token: ${TELEGRAM_BOT_TOKEN}
    group_policy: respond_all
    allow_silence: true
2

Python

from praisonai.bots import Bot
from praisonaiagents import Agent

agent = Agent(
    name="Group Helper",
    instructions="Reply only when asked a direct question. Otherwise return exactly NO_REPLY.",
)
bot = Bot("telegram", agent=agent, allow_silence=True)
bot.run()

How It Works

MarkerHonoured when allow_silence=true
NO_REPLYβœ… default token
[SILENT]βœ…
SILENTβœ…
Custom silence_tokenβœ… exact match only
Prose containing β€œNO_REPLYβ€βŒ not treated as silence

Configuration

FieldTypeDefaultDescription
allow_silenceboolfalseHonour silence markers (opt-in)
silence_tokenstrNoneOverride marker; when set, only this exact string triggers silence
Combine with group_policy: respond_all so the agent may respond, then chooses silence via NO_REPLY.

Best Practices

allow_silence defaults to false β€” existing bots behave unchanged.
Instructions should say when to return exactly NO_REPLY vs a normal reply.
Reduces noise when the bot listens to everything but should rarely speak.

Gateway

Channel configuration reference

Messaging Bots

Multi-platform bot setup