> For the complete documentation index, see [llms.txt](https://autotask.gitbook.io/autotask/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://autotask.gitbook.io/autotask/slash-commands/automod/add.md).

# Add

Add a new AutoMod rule to prevent users from sending specific messages

To add a new AutoMod rule, it's very simple: AutoTask is doing almost everything!\
First, create a sentence that should be blocked. Then, keep only the keywords. And that's almost it!

Use <mark style="color:blue;">/automod add</mark> <mark style="color:blue;"></mark>*<mark style="color:blue;">name rule log</mark>*\
Where *<mark style="color:blue;">name</mark>* is the name of the rule\
*<mark style="color:blue;">rule</mark>* is your keyword sentence\
And *<mark style="color:blue;">log</mark>* is optionnal, it's the channel where AutoMod send a message if a message is blocked (recommended)

And that's it! You created your AutoMod rule!
