Skip to main content

πŸ”« Triggers

Triggers are keyword-based automations: when a message matches one of your conditions, the agent responds β€” with a message, a deletion, or a moderation action. They're perfect for auto-answering repeated questions and for zapping known spam phrases on sight.

Triggers, Automations, or Smart Triggers?

Triggers fire on message text matching your phrases. βš™οΈ Automations fire on Discord events (joins, reactions, role changes, and more). ✨ Smart Triggers let the AI judge each message against a plain-language prompt instead of exact phrases.

Overview​

  • Match messages by Contains, Equals message, Starts with, Ends with, or Regex β€” with per-condition case sensitivity
  • One trigger can hold several conditions; it fires when any of them match
  • Chain actions in order: send a response, delete, warn, mute, kick, or ban
  • Restrict a trigger to admin messages, or make its response a reply to the matching message

Configuration​

To configure triggers:

  1. Open your project in the Fren One webapp.
  2. Select the Discord server you want to configure.
  3. In the sidebar under Agent Configuration, select Moderation, then the Triggers tab.
  4. Select "Add Trigger" to open the editor, or edit an existing trigger from the list. Each row shows an enable toggle, its action badges, and an "Admin only" badge where set.

Match conditions​

Give the trigger a Title (required), then add condition rows. The trigger fires when a message matches any condition.

Match modeFires when the message…
ContainsContains the phrase anywhere (partial match).
Equals messageIs exactly the phrase (full match).
Starts withBegins with the phrase.
Ends withEnds with the phrase.
RegexMatches the pattern. Max 500 characters.

Each row has its own Case sensitive option.

Actions​

Actions are required and run in order when the trigger fires:

ActionDescription
Send responseSends the Response Message (see below).
Delete messageRemoves the matching message. Deleting the message also skips the remaining moderation checks for it.
Warn memberIssues a warning through the warn system.
Mute memberTimes the member out. Reveals a Mute duration field β€” up to 28 days.
Kick memberKicks the member.
Ban memberBans the member.
Warn + Mute together

If the warn reaches the community's warn limit, the warn system's punishment replaces this trigger's mute.

Options​

OptionDescription
Admin onlyThe trigger only fires on messages sent by admins.
Reply to messageSends the response as a reply to the matching message. Not available when a Delete action is present.

Response Message​

Shown when Send response is selected; required. This is the message the agent sends when triggered. It supports these variables:

VariableInserts
{user}A mention of the member who triggered it.
{username}The member's username, without a mention.
{server}The server name.
{channel}The channel where the trigger fired.

Example triggers​

Contract address auto-reply

Members ask for the token address a dozen times a day β€” answer it automatically.

  • Conditions: Contains contract address Β· Contains what's the ca
  • Actions: Send response
  • Options: Reply to message
  • Response: "Hey {user}! The official contract address is 0x1234…abcd β€” always verify it against our pinned announcement. Anything else is a scam."
Scam phrase β€” delete and warn

A known scam phrase should never sit in chat waiting for an admin.

  • Conditions: Contains free nitro Β· Contains claim your airdrop
  • Actions: Delete message, Warn member
  • Repeat offenders escalate through the warn limit automatically.
Admin quick-answer command

Give admins a shorthand that expands into the full support spiel.

  • Conditions: Equals message !support (case sensitive)
  • Actions: Send response
  • Options: Admin only
  • Response: "Need help? Open a ticket in the support channel and the team will pick it up β€” please don't DM admins directly."

Saving your changes​

This page uses a batched save β€” trigger edits stay local until you select Save in the bar that appears at the bottom of the page. Leaving the page with unsaved changes shows a warning first.

Best practices​

Triggers that don't misfire
  • Prefer Equals message or Starts with for command-style triggers; reserve Contains for phrases unlikely to appear mid-sentence.
  • Group related phrasings ("contract address", "what's the ca") as multiple conditions on one trigger instead of separate triggers.
  • Pair Delete message with Warn member for spam phrases so repeat offenders escalate through the warn system on their own.
  • Remember that Delete disables Reply to message β€” a reply needs something to reply to.
Troubleshooting

A trigger isn't firing?

  • Check the trigger's enable toggle in the list, and that your edits were saved via the Save bar.
  • Case-sensitive conditions must match capitalization exactly.
  • With Admin only on, the trigger ignores everyone but admins.

The response didn't appear as a reply?

  • Reply to message can't be combined with a Delete action β€” the target message no longer exists.

A mute didn't stick?

  • If the trigger also warns and that warn hits the community's warn limit, the warn system's punishment replaces the trigger's mute.
  • Mutes cap at Discord's 28-day maximum.