# Lasso Moderation Overview

How the Lasso Moderation platform works and how it connects to your platform.

Lasso's moderation platform is easy to integrate. Below we describe the different parts of the platform, how they work and how they interact with your platform. If you are new to Lasso, start with [Key Concepts](/getting-started/key-concepts) for an introduction to the terms used throughout these docs.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-adf8bf0c07cea264ceae69b5dd87201f86ed83c3%2FScreen%20Shot%202023-05-03%20at%2014.29.56%20(1).png?alt=media" alt=""><figcaption><p>An overview of the flow through the platform</p></figcaption></figure>

### Flow

The flow through the platform works in 3 simple steps:

1. [Ingest content through the API](#lasso-api): your platform sends content (text, images, video and audio) and user information to Lasso through the Lasso API or one of our integrations.
2. [Automation](#automation): your moderation rules and AI Moderators automatically take action on incoming content and users. Actions are automatically relayed back to your platform by a webhook call.
3. [Human action](#human-action): not everything can be moderated automatically. Lasso provides an easy-to-use dashboard where your moderators review the content and users that automation flagged for a closer look. Human actions are relayed back to your platform by a webhook call.

### Lasso API

Integrating with Lasso takes a few API endpoints and a webhook.

#### Ingest content

This is the main and most important API endpoint and is used to send content into the Lasso Moderation platform. All content immediately shows up in the dashboard and is automatically analyzed and checked against your moderation rules. There are two ways to send content:

* **Post-moderation**: `POST /api/v1/content` returns immediately and the content is moderated in the background. Decisions arrive through your webhook. This is the standard setup.
* **Pre-moderation**: `POST /api/v1/content/sync` waits for the automated checks and returns the decision in the response, for platforms where content only goes live after approval.

Reference: <https://api-reference.lassomoderation.com/operation/operation-post-content>

If your platform is built on a service such as Stream, TalkJS, CometChat or PubNub, Lasso can also ingest content directly through an integration, without an API integration on your side. Contact us to set this up.

#### Ingest users

This endpoint can be used to update users' information in Lasso. This can be used if important information of a user changes without the user posting any new content. Information about the user can be used for customized moderation rules.

Note: We care a lot about our and your user's privacy, so be careful sending personal identifiable information (PII) to our platform.

Reference: <https://api-reference.lassomoderation.com/group/endpoint-user>

#### User reports

The user reporting endpoint should be called when your users report another user or a piece of content on your platform. These reports automatically show up in the dashboard and can also be used in custom moderation rules.

Reference: <https://api-reference.lassomoderation.com/group/endpoint-user-reports>

#### Webhook

Webhooks are used to communicate back to your platform. Any action (a rule, an AI Moderator or a human moderator) sends a webhook call to your platform with the new status of the content or user. For example, a rule could automatically remove images containing nudity; Lasso then makes a webhook call to your platform letting it know that this content should be removed. Every call is signed, so your platform can verify it came from Lasso.

More information on how to implement the webhook can be found here: [Webhooks](/developers/webhooks)

#### Other API endpoints

A full overview of all API endpoints can be found [here](https://api-reference.lassomoderation.com/).

### Automation

#### AI analysis and AI models

Every incoming item is analyzed automatically: images are scanned for unsafe content and for text they contain, and AI models check content against a policy, from default models for areas such as harassment, hate speech and scams to models for policies specific to your platform. These signals do not take action by themselves; your rules and AI Moderators turn them into decisions, so you stay in control of the thresholds and the consequences.

#### Custom moderation rules

Custom moderation rules are a big part of Lasso's moderation platform. Rules are collections of conditions with a certain action. For example, flag (action) users that have signed up in the last 3 hours (condition) and have posted more content containing nudity (conditions).

All rules can be fully customized to your platform. Every platform is different, so we believe every platform should be moderated in a different way.

Rules can also be adjusted on the fly, no coding or deployments needed anymore. Incoming content and users will automatically be evaluated against your (updated) rules.

Read more about [Custom Moderation Rules](/automation-and-review/custom-moderation-rules)

#### AI Moderators

AI Moderators are AI members of your moderation team. An AI Moderator reads your written policy and judges content against it the way a human moderator would, explaining its reasoning with every decision. Depending on its configuration it takes action directly or leaves a recommendation for a human to confirm. The written policy can be adjusted on the fly, and you control which actions the AI Moderator may take and how decisive it is.

Read more about [AI Moderators](/automation-and-review/ai-moderators)

### Human Action

Lasso provides an extensive dashboard where human moderators can easily moderate content and users. Human actions are relayed back to your platform by a webhook call. The main sections of the dashboard:

* **Review**: work through flagged content and users in [review queues](/automation-and-review/review-queues)
* **Content** and **Users**: browse and search everything flowing through your platform
* **Rules**, **Policies** and **Lists**: manage your automated moderation
* **User Reports**: triage [reports](/automation-and-review/user-reports) filed by your users
* **Audit Logs**: every action and change in your workspace, by whom, and when
* **Analytics**: insight into the health of your content, users and moderation
* **Team**: manage your moderators and AI Moderators

Each of these concepts is explained in more detail in [Key Concepts](/getting-started/key-concepts).


# Key Concepts

The building blocks of the Lasso Moderation platform, what they are called, and how they fit together.

Lasso is built around a small set of concepts that come back everywhere: in the dashboard, in the API and in webhooks. This page introduces each concept and links to the guide that covers it in depth. If you are new to Lasso, start here, then read the [Lasso Moderation Overview](/) to see how content flows through the platform in practice.

### Workspace

Your platform's environment in Lasso. A workspace holds your content, users, rules, policies, review queues, team and settings. API keys and your webhook are configured per workspace under **Settings → API & Webhooks**.

### Categories and subcategories

Two levels of structure that mirror how your own platform is organized:

* **Category**: a top-level area of your platform, for example a community, a game or a marketplace section.
* **Subcategory**: a place within a category where content is posted, for example a discussion thread, a chat room or a listing.

Every piece of content belongs to a subcategory, and every subcategory belongs to a category. You can use them to filter content, build rule conditions and limit which parts of your platform each moderator can access.

### Content

A single item created by one of your users: a message, a post, a listing or an image. One content item can combine text with images, videos and audio files. Content enters Lasso through the [API](https://api-reference.lassomoderation.com/) or through an integration, and every item is analyzed and checked against your rules as it arrives.

{% hint style="info" %}
Text and image moderation are available in every workspace. Video and audio moderation are enabled per workspace, contact us to turn them on. See [Image Moderation](/content-analysis/image-moderation) and [Video Moderation](/content-analysis/video-moderation).
{% endhint %}

### Users

The people on your platform. Lasso builds a profile for each user from the information you send: their content, signup date, country, tags, custom attributes and more. Users are moderated just like content, manually or automatically, and can also receive temporary bans and strikes. See [User Moderation](/managing-users/user-moderation).

### Statuses

Every content item and every user has one of three statuses:

* **Allowed**: fine to stay on your platform, no action needed.
* **Flagged**: needs a closer look. Flagging an item creates a review for your moderators.
* **Removed** (for users: **Banned**): should be taken down or blocked on your platform. In the API this status is called `hidden`.

Lasso records both the initial status (the outcome of the automated checks when the item arrived) and the current status (after any later decisions), so you can always compare automated and human outcomes. Status labels are configurable per workspace, so your dashboard may show other words, such as "Hidden", "Suspended" or "Deleted".

### Actions

Every moderation decision is recorded as an action: who took it (a moderator, a rule or an AI Moderator), what changed and why. Actions appear on the item's activity timeline and in the audit logs, and they are delivered to your platform through [webhooks](/developers/webhooks) so your platform can enforce them. Lasso never changes anything on your platform directly; your platform decides what a removal or a ban means.

### Policy categories and policies

The **Policies** section of the dashboard contains two related concepts:

* **Policy categories**: the reasons attached to decisions. When a moderator, rule or AI Moderator takes an action, the policy category records which guideline was violated, for example "Hate speech" or "Spam". A category's identifier appears as `policy_id` in the API and in webhooks.
* **Policies**: written policy documents describing your platform's guidelines. AI Moderators read a policy document to decide how to moderate. Policies are versioned, so you can draft changes and publish them when ready.

### Rules

Automated moderation you control. A rule combines conditions with actions: when all conditions match, the actions run. Rules evaluate on incoming content and users, and can change a status, attach a policy category, add tags, give strikes or route reviews to a specific queue. They can be adjusted on the fly, without code changes or deployments. See [Custom Moderation Rules](/automation-and-review/custom-moderation-rules).

### Lists

Reusable sets of words, domains, countries, phone numbers, IP addresses or regex patterns that rule conditions match against. Update a list once and every rule that uses it follows. See [Lists](/automation-and-review/lists).

### AI analysis and AI models

Lasso analyzes every incoming item automatically: images are scanned for unsafe content and for text they contain, and AI models check content against a policy, answering a single question: does this item violate the policy or not? Lasso provides default AI models for text, each focused on one policy area such as harassment, hate speech or scams, and can add models for policies specific to your platform. These signals never act on their own. Rules turn them into decisions, so you stay in control of the thresholds and the consequences.

{% hint style="warning" %}
The AI scores for text (toxicity, threat, identity attack and profanity) are deprecated and stop being available on December 31, 2026. See [Migrating from AI Scores](/other/migrating-from-toxicity-scores) to move your rules to the default AI models.
{% endhint %}

### AI Moderators

AI members of your moderation team. An AI Moderator reads your written policy and judges content against it the way a human moderator would. Depending on its configuration it takes action directly, with the policy category and its reasoning attached, or leaves a recommendation for a human to confirm. You control which actions it may take on the **Team** page. See [AI Moderators](/automation-and-review/ai-moderators).

### Reviews and review queues

A review is one item waiting for a human decision. Flagged content and users become reviews, and review queues organize those reviews for your moderators. Routing rules decide which queue each review lands in; anything not matched by a routing rule goes to the Default Queue. Reviews are assigned automatically to the moderators working in a queue. See [Review Queues](/automation-and-review/review-queues) and [Routing Rules](/automation-and-review/review-queues/routing-rules).

### User reports

Reports filed by your users about content or other users, sent to Lasso through the API. Reports show up in **User Reports** in the dashboard, and each report also re-evaluates your rules, so a rule can act on heavily reported items within seconds. See [User Reports](/automation-and-review/user-reports).

### How a decision is made

When a new piece of content arrives, Lasso evaluates it in a fixed order:

1. **Rules run first.** A matching rule can allow, flag or remove the item, attach a policy category, add tags or give a strike.
2. **Nothing matched?** The item is allowed.
3. **Flagged items become reviews** and are routed to a review queue.
4. **The AI Moderator reviews first.** When the queue includes an AI Moderator, it judges the review against your policy and takes action or leaves a recommendation for a human moderator. See [AI Moderators](/automation-and-review/ai-moderators).
5. **Every action is sent to your platform** through your webhook.

### Tags, custom attributes, strikes and messages

Tools that support day-to-day moderation:

* **Tags**: your own labels on users and content, applied manually or by rules, and usable as filters and rule conditions. See [Tags](/moderator-toolkit/tags).
* **Custom attributes**: extra data fields you send along with content and users, such as "Verified" or "Age", shown in the dashboard and usable in rule conditions. See [Custom Attributes](/moderator-toolkit/custom-attributes).
* **Strikes**: escalating temporary penalties for repeat offences, instead of an immediate permanent ban. See [Strikes](/managing-users/strikes).
* **Messages**: messages sent to your users from Lasso, to explain decisions or share guidelines. See [Sending Messages](/moderator-toolkit/sending-messages).

### The API and webhooks

Content and users flow into Lasso through the REST API, and decisions flow back through your webhook:

* `POST /api/v1/content` sends content asynchronously; the decision arrives later through your webhook. This is the standard setup for post-moderation.
* `POST /api/v1/content/sync` waits for the decision and returns it in the response, for pre-moderation setups where content only goes live after approval.
* Requests authenticate with an API key, created under **Settings → API & Webhooks**.
* The webhook delivers every action with a signature you can verify, so your platform can safely enforce decisions. See [Webhooks](/developers/webhooks).

The full API is documented in the [API Reference](https://api-reference.lassomoderation.com/).

### Team and roles

The **Team** page is where you invite moderators, configure AI Moderators and control access. Admins manage settings and the team, moderators handle day-to-day moderation, and a moderator can be restricted to specific categories when they should only see part of your platform.


# Quickstart: Moderating Your First Content

Send your first piece of content to Lasso, watch it get moderated in the dashboard and receive the decision back on your webhook.

This guide walks you through your first end-to-end moderation flow: create an API key, send a piece of content to Lasso, find it in the dashboard, take a decision and receive that decision on your webhook. It takes about ten minutes with a terminal and `curl`, but any HTTP client works.

You need a Lasso workspace and an admin account. If you are unfamiliar with any of the terms below, see [Key Concepts](/getting-started/key-concepts).

### Step 1: Create an API key

1. Log in to your dashboard and go to **Settings → API & Webhooks**.
2. In the **API Keys** section, enter a name in the **API key name** field, for example "Test key".
3. Click **Create API key**.
4. Copy the key from the notification and store it somewhere safe. Keys start with `lasso.`.

{% hint style="warning" %}
The full key is shown only once, right after creation. Afterwards the dashboard only shows a short hint of it. If you lose the key, create a new one.
{% endhint %}

{% embed url="<https://vimeo.com/1246566194/3125701287>" %}
Creating an API key under Settings → API & Webhooks
{% endembed %}

### Step 2: Send your first content

Send a piece of content to the API. Replace `lasso.YOUR_API_KEY` with the key from step 1:

```bash
curl -X POST https://api.lassomoderation.com/api/v1/content \
  -H "Authorization: Bearer lasso.YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content_id": "post-1",
    "text": "Hello from my first Lasso integration",
    "user": { "id": "user-1", "name": "Test User" },
    "category": { "id": "forum", "name": "Forum" },
    "subcategory": { "id": "general", "name": "General" }
  }'
```

The response is:

```json
{ "success": true }
```

Lasso accepted the content and moderates it in the background: it is analyzed, checked against your rules and, when configured, judged by your AI Moderator.

About the fields:

* **`content_id`**: your own identifier for the content. Lasso always refers back to content, users, categories and subcategories by the ids you provide.
* **`user`**: the user who created the content. Only `id` is required.
* **`category`** and **`subcategory`**: where the content was posted on your platform. Both are required. The `name` is optional, but send it on the first call so they show up with readable names in the dashboard.
* **`text`**: the content itself, up to 4,000 characters. Instead of (or along with) text you can send `image_urls`, `video_urls` or `audio_urls`. Media URLs must be publicly reachable; for private storage buckets, see [URL Signing](/developers/url-signing).

{% hint style="info" %}
Workspaces on the free plan can send 1,000 content items per 7 days, which is plenty for testing. See [Rate Limits](/developers/rate-limits) for the limits on paid plans.
{% endhint %}

### Step 3: Find it in the dashboard

1. Click **Content** in the sidebar.
2. Your item appears at the top of the feed, usually within a second or two. The feed updates live, so there is no need to refresh.
3. Click the item to open its detail page, where you can see the user who posted it, the automated analysis and the activity timeline.

### Step 4: Take your first decision

1. Hover over the content item. Action buttons appear in its top-right corner: **Allow**, **Flag** and **Remove** (the default names, your workspace may use different words).
2. Click **Remove**.
3. A **Remove Content** dialog opens. Pick a **Policy category** (the reason for the decision) and optionally add **Extra information**.
4. Click **Remove content**.

The status changes to Removed, and the decision is recorded on the item's activity timeline with you as the actor. Once a default policy is configured, you can Shift+Click an action button to act without the confirmation dialog.

### Step 5: Receive decisions on your webhook

Decisions only have effect once your platform enforces them, and that happens through your webhook.

1. Set up an HTTPS endpoint that can receive POST requests. For a quick test, any tool that shows incoming HTTP requests works.
2. Go to **Settings → API & Webhooks**, scroll to the **Webhooks** section, enter your endpoint URL and click **Create webhook**.
3. Take another decision on your test item, for example **Allow** it again.
4. Your endpoint receives a `ChangeStatus` action with the content's id, its new status and the policy category. See [Webhooks](/developers/webhooks) for all payload shapes and for verifying the `X-Lasso-Signature` header with the secret shown in the **Secret** column.

{% hint style="warning" %}
Your endpoint must respond with a `200` status code. If it keeps failing after retries, Lasso reverts the action to keep both systems in sync, so a broken test endpoint can undo your decisions.
{% endhint %}

### Optional: pre-moderation

`POST /api/v1/content` moderates in the background, which suits platforms where content goes live immediately (post-moderation). If content on your platform should only go live after approval, use the synchronous endpoint instead. It runs the automated checks and returns the decision in the response:

```bash
curl -X POST https://api.lassomoderation.com/api/v1/content/sync \
  -H "Authorization: Bearer lasso.YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "content_id": "post-2",
    "text": "Another test message",
    "user": { "id": "user-1" },
    "category": { "id": "forum" },
    "subcategory": { "id": "general" }
  }'
```

```json
{
  "success": true,
  "status": "allowed",
  "actions": []
}
```

`status` is the final status of the content: `allowed`, `flagged` or `hidden` (hidden is what the dashboard shows as Removed). `actions` lists what acted on it, in the same shape as webhook payloads; it is empty when no rule or AI Moderator took action.

A few things to know about the synchronous endpoint:

* Text-only content is evaluated before the response returns. Content with media can take longer; after 15 seconds the endpoint returns `{ "success": true, "timeout": true }` and the decision arrives through your webhook instead.
* Videos cannot be ingested synchronously.

### Troubleshooting

* **401 Unauthorized**: the API key is missing or wrong. The header must be `Authorization: Bearer lasso.YOUR_API_KEY`.
* **400 with field errors**: the request body is invalid. The `error` object lists each failing field, for example `{ "category": "Required" }`.
* **400 "Can only update content that match existing user, category and subcategory ids"**: you sent a `content_id` that Lasso already knows, with a different user, category or subcategory. Use a new `content_id` or the original ids.
* **429 Too Many Requests**: you hit a rate limit. Check the `X-RateLimit-Remaining` and `X-RateLimit-Reset` response headers, and see [Rate Limits](/developers/rate-limits).

### Next steps

* Automate decisions with [Custom Moderation Rules](/automation-and-review/custom-moderation-rules) and [Lists](/automation-and-review/lists).
* Put flagged content in front of your moderators with [Review Queues](/automation-and-review/review-queues).
* Let your users report content and other users with [User Reports](/automation-and-review/user-reports).
* Moderate the people behind the content with [User Moderation](/managing-users/user-moderation).
* Read the full [API Reference](https://api-reference.lassomoderation.com/) for every endpoint and field.


# Image Moderation

This documentation outlines the various types of image moderation available in **Lasso Moderation**. Each type helps ensure that the content on your platform is safe, compliant, and adheres to community guidelines.

### Optical Character Recognition (OCR)

**OCR (Optical Character Recognition)** is used for extracting text from images. This is particularly useful for identifying inappropriate or harmful text in images, such as hate speech, explicit language, or spam. OCR can recognize various fonts and text layouts, making it a robust tool for detecting textual content within an image. Example:

**How it works:**

* The image is scanned for areas containing text and extracted from the image.
* This text can then be checked against moderation policies for further action.

### Label Detection

Label detection is used to classify and categorize images into predefined categories and subcategories. Lasso Moderation provides a range of default categories and subcategories that help identify inappropriate content:

#### **Explicit Nudity**

* Explicit Nudity
* Explicit Sexual Activity
* Sex Toys
* Exposed Female Nipples
* Exposed Buttocks
* Exposed Male Genitalia
* Exposed Female Genitalia

#### Non-Explicit Nudity of Intimate Parts and Kissing

* Non-Explicit Nudity
* Obstructed Intimate Parts
* Implied Nudity
* Exposed Male Nipple
* Kissing on the Lips

#### **Swimwear or Underwear**

* Female Swimwear or Underwear
* Male Swimwear or Underwear

#### **Violence**

* Graphic Violence
* Blood & Gore
* Physical Violence
* Weapon Violence
* Weapons
* Self-Harm

#### **Visually Disturbing**

* Death and Emaciation
* Crashes
* Emaciated Bodies
* Corpses
* Air Crash
* Explosions and Blasts

#### **Rude Gestures**

* Rude Gestures
* Middle Finger

#### **Drugs & Tobacco**

* Products
* Pills
* Drug & Tobacco Paraphernalia & Use
* Smoking

#### **Alcohol**

* Alcohol
* Alcohol Use
* Drinking
* Alcoholic Beverages

**Gambling**

#### **Hate Symbols**

* Hate Symbols
* Nazi Party
* White Supremacy
* Extremism

### Custom Labels

Lasso Moderation allows users to create custom labels for detecting specific types of objects or scenes. This feature enables the detection of items like "animals" or "objects" based on your platform's needs. Custom labels are useful for identifying specific content not covered by the default labels.

**Examples of custom labels:**

* Animals (e.g., cats, dogs)
* Vehicles (e.g., cars, trucks)
* Specific objects (e.g., logos, tools)

### Face Detection

The face detection feature identifies faces within images and provides additional information such as:

* **Age estimation**
* **Gender prediction**

Additionally, Lasso Moderation can optionally offer **face similarity detection**, which helps recognize images with specific people in it.

### Celebrity Detection

This feature detects and identifies well-known celebrities in images. It uses a comprehensive database of public figures to provide accurate recognition of individuals in media, entertainment, and other public sectors.

### Similar Image Detection

**Similar Image Detection** identifies if the same or visually similar images have been uploaded previously. This feature is essential for preventing duplicate content and identifying repeated uploads of harmful or inappropriate material.

**How it works:**

* The uploaded image is analyzed and compared against a database of previously submitted images.
* Image features such as patterns, colors, and textures are used to detect similarities, even if the image has been altered (e.g., resized, cropped, or slightly edited).
* If a match or near-match is found, the system can flag the image for review or automatically take action based on predefined rules.

### AI-Generated Image Detection

Lasso Moderation can detect whether an image has been generated using artificial intelligence. This is useful for platforms that need to monitor and filter AI-generated content, particularly in contexts where such images may mislead users or violate platform policies.

### CSAM

Lasso offers CSAM detection for teams that need to flag and triage potential child sexual abuse material. We work with a trusted partner who can identify exact matches as well as modified or distorted variants of known CSAM images and videos.

Each image is assigned a similarity score from **0 to 100**, which reflects how closely the descriptor-based representation of the input aligns with known CSAM content in the matching database. For example, a 40% score indicates that approximately 40% of the visual region in the query image shares matching features with a known CSAM image.

Due to the nature of descriptor-based hashing, this score is continuous and context-sensitive, not based on a fixed classification threshold. Any non-zero score indicates some degree of visual correspondence with known CSAM material, even if partial or subtle.

To protect your team, any image flagged with a non-zero score is **automatically blurred in the dashboard**.

**Match score interpretation guidelines:**

* Matches above 40% should be reviewed and flagged as suspicious. For stricter workflows, this threshold can be lowered.
* Matches above 85% are a very strong match and can be blocked automatically.

These are initial recommendations. We encourage teams to monitor matched content over time and adjust thresholds as needed.

To test the integration with non-CSAM images that are known to trigger high scores, please contact us at <support@lassomoderation.com>.

***

These image moderation tools can be used in combination or individually, based on your platform's specific needs. Lasso Moderation offers comprehensive, customizable, and accurate image analysis to keep your content safe and compliant.


# AI Image Detection

Detect images that declare themselves as AI generated in their metadata, and use that in your moderation rules.

AI image detection reads what an image file says about its own origin. Many AI image tools record in the file that the image was generated, either as signed Content Credentials or as ordinary metadata. Lasso reads that information when it processes an image, shows it to your moderators and lets you use it in rules. For example, you can flag AI generated profile photos for review, or tag every image that declares it was made with AI.

{% hint style="info" %}
This feature finds images that **declare** themselves as AI generated. It does not analyze the pixels. Metadata is often lost when an image is shared, screenshotted or re-encoded, so no match does **not** mean an image is real. Contact Lasso to enable this feature for your workspace.
{% endhint %}

### What you can use it for

* **Label AI images**: tag images that declare AI, so moderators can see them and you can measure how common they are.
* **Enforce an AI image policy**: flag AI images in places where your policy does not allow them, such as marketplace listings.
* **Prioritize risky combinations**: combine it with other conditions to review AI images that also contain a recognized public figure, or AI generated profile photos.

### What Lasso checks

Lasso looks for the following, from strongest to weakest evidence:

* **Content Credentials (C2PA)**: a signed record of how the image was made. Lasso checks the signature and whether the image was changed after signing.
* **IPTC digital source type**: a standard metadata field that marks an image as generated by a trained AI model.
* **Generator names**: the name of a known AI tool in the file's XMP or EXIF software fields.
* **PNG generation data**: the settings that tools such as Stable Diffusion interfaces and ComfyUI store in PNG files.

Only Content Credentials can be verified. The other sources are plain text that anyone can edit, so treat them as a strong hint rather than proof.

An image counts as **fully AI generated** when the image was created by an AI model. It counts as **partly AI generated** when AI was used on part of it, for example a real photo with one AI edit.

### Using it in rules

Add the **AI generated image** condition to a content rule or a queue rule. See [Custom Moderation Rules](/automation-and-review/custom-moderation-rules) for how rules work. The condition has two options:

| Option           | Choices                                   | Meaning                                                                                                                        |
| ---------------- | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| What it declares | **declares fully AI generated**           | Only images created by an AI model                                                                                             |
|                  | **declares fully or partly AI generated** | Also includes images where AI was used on part of the image                                                                    |
| Evidence         | **any metadata**                          | Any declaration, signed or not. Matches the most images                                                                        |
|                  | **a verified signature**                  | Only Content Credentials with a valid signature from a certificate on a trusted list. Harder to fake, but matches fewer images |

The condition matches when any image in the content matches.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-6a204b76beedff256393640069db3e73a89aa313%2Fai-generated-image-condition.png?alt=media" alt="The AI generated image condition in the rule editor, with its two dropdowns and help icon"><figcaption></figcaption></figure>

We recommend these settings:

* Use **any metadata** for tagging and sending images to a review queue.
* Use **a verified signature** with **declares fully AI generated** for automatic actions, and only if your policy does not allow AI images at all.

Do not rely on this condition alone to enforce a ban on AI images, because anyone can remove the metadata.

### Seeing it on content

When an image declares AI, the content's details show an **AI detection** row. It lists the declaration, the generator if it is known, and whether the signature was verified, for example:

> Declares fully AI generated · Acme Image Generator · Not verified

Hover over the row to see what each part means. Lasso does not show the row for images without a declaration.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-9cbaaeb0ab51b8b7d1d1f94d014545b8a65ab148%2Fai-detection-content-details.png?alt=media" alt="An AI generated image of a dog with its details below. The AI detection row shows Declares fully AI generated, OpenAI and Verified signature"><figcaption></figcaption></figure>

### What it does not cover

* **Video**: only images are checked, not video screenshots.
* **Older content**: only images processed after the feature was enabled have this information. The condition does not match older content.
* **Credentials stored elsewhere**: some images point to Content Credentials hosted on another server. Lasso does not fetch these, so they do not match unless the file also declares AI in its other metadata.


# Video Moderation

This page explains how **Lasso Moderation** analyzes videos. Videos are moderated through screenshots taken from the video and, when enabled, a transcript of the audio. The results feed into the same rules as images and text.

### Screenshots

Lasso Moderation automatically generates **screenshots** from videos at various intervals. These screenshots can then be analyzed using the same **Image Moderation** techniques that are applied to still images, so inappropriate or harmful content within the video frames can be flagged. Rules that check image labels also look at the labels of video screenshots.

For detailed information on image moderation techniques used on screenshots, refer to the [Image Moderation](/content-analysis/image-moderation) section.

### Audio

When video audio is enabled for your workspace, speech in a video's audio tracks is transcribed. The transcript can be checked by text AI models.

{% hint style="info" %}
Older content may still show a **Video labels** group marked as deprecated. These are scores from a previous video analysis. They are kept for reference, and new videos no longer get them.
{% endhint %}


# Custom Moderation Rules

Guide on rulesets, rules and conditions and how they can be used

Custom moderation rules automate moderation on the Lasso platform. Each rule combines a set of conditions with one or more actions. When a piece of content or a user matches the rule's conditions, Lasso applies the rule's actions, without a moderator having to look at it first.

> **Note**: Some of the conditions and actions described on this page are not available by default and can be enabled on request. If you don't see one in your dashboard, contact us.

There are three types of rules:

* **Content rules**: run on incoming content (messages, images, videos, audio). They can use both content conditions and conditions about the user who posted the content.
* **User rules**: run on users. They can use user conditions, such as signup date, reports received or content volume.
* **Routing queue rules**: decide which review queue a flagged item goes to. They can use review conditions (priority, policy, review type) as well as user and content conditions.

<figure><img src="https://720369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEHJJyWYjMNTzFPyCUpfR%2Fuploads%2FZmF3VrNyMsxmpjd9tOdp%2FScreen%20Shot%202023-03-07%20at%2012.49.32.png?alt=media&#x26;token=bea06cb7-d64a-46a6-846d-4844f3f65a8e" alt="An example of a rule targeting images containing nudity"><figcaption><p>An example of a rule targeting images containing nudity</p></figcaption></figure>

### Anatomy of a rule

A rule consists of:

* **Name**: identifies the rule in the dashboard.
* **Notes** (optional): a short explanation of what the rule is for. Helpful when your team maintains many rules.
* **Conditions**: the criteria that must be met. By default a rule matches only when *all* of its conditions are met (they are combined with AND). See [Combining conditions with AND and OR](#combining-conditions-with-and-and-or) to match when any of them is met.
* **Actions**: what happens when the rule matches. See Actions below.
* **Status**: **Off**, **Monitor only** or **Live**. An off rule is not evaluated. A live rule takes its actions on every match. A monitor-only rule is evaluated and its matches are tracked, but its actions are not taken (see [Monitor-only rules](#monitor-only-rules)). New and imported rules start off, so you can review them before they take effect.

### How rules are evaluated

Rules are evaluated from top to bottom, in the order shown in the rules list. You can drag rules to reorder them, and order matters:

* When a rule's action is **allow** or **remove/ban**, a match stops evaluation. Rules below it are not evaluated for that item.
* When a rule's action is **flag**, evaluation continues. Multiple flagging rules can match the same item, and each can add its own policy, tags and priority.
* A rule that has already been applied to an item is not applied again.
* Decisions made by a human moderator take precedence. If a moderator has removed an item, rules will not overrule that decision.

For routing queue rules, the first matching rule wins and determines the queue.

[Monitor-only rules](#monitor-only-rules) are the exception to the order: they never stop evaluation, and they are evaluated even when a rule above them stopped it.

#### Confirming a rule before it goes live

When you enable or update a rule, Lasso shows a confirmation step that previews how the rule would have matched against your recent content or users, including match counts and percentages. This lets you catch a rule that matches far more (or less) than you intended before it starts taking action.

To try out conditions on recent content before you create or change a rule, use [Research](/automation-and-review/research).

### Monitor-only rules

A monitor-only rule is evaluated like any other enabled rule, but its actions are never taken. Use it to see how often a new rule would match on your live traffic before you let it act. For example, monitor a stricter image label threshold for a week, look at what it matched, and then switch it to live.

To make a rule monitor-only, open the rule, click **Edit rule** and set **Status** to **Monitor only**. Set it to **Live** when you want the rule to take its actions. The switch in the rules list turns a rule on or off and keeps its mode: a monitor-only rule switched back on stays monitor-only.

{% hint style="info" %}
A monitor-only rule does not change the item's status, add tags, give strikes, remove content or route to a queue, so no webhooks are sent for its matches.
{% endhint %}

How a monitor-only rule behaves:

* **It sees all traffic**: it is evaluated even when a rule above it matched and stopped evaluation, so its numbers are not limited to the items that got past your other rules. The one exception is items a moderator removed: no rules run on those.
* **It doesn't affect other rules**: a match does not stop evaluation, and the rules below it run as usual.
* **It counts as no match**: an item that only matches monitor-only rules is treated as not matching any rule.
* **The counts are evaluations, not unique items**: when the same item is checked again (for example after an update or a report), it is counted again.

Monitor-only rules show a **Monitor** badge in the rules list, and you can filter the list on **Monitor only**. On the rule's page, the **Activity** tab shows how many items were evaluated and matched over time, and the items it matched.

{% hint style="warning" %}
📷 Screenshot placeholder: a rule's page with the **Monitor only** badge next to its name and the **Activity** tab open, showing the Evaluated and Matched charts.
{% endhint %}

Monitor-only rules use the same conditions as live rules, including AI and image analysis, so they are not free to evaluate. Switching a rule between monitor-only and live is recorded in the rule's version history.

### Actions

Actions run when the rule's conditions are met.

* **Change status**: the core action of every content and user rule. Sets the item's moderation status to **allowed**, **flagged** or **removed** (for users: **banned**). The exact wording of these statuses can be customized per dashboard.
* **Policy category**: categorizes the action under one of your policies. This is how you track which policy an automated action was taken under, and it is included in webhooks and analytics. Depending on your dashboard settings, a policy can be required for flag/remove actions. You can also add extra policy information as free text.
* **Priority**: shown when the action is *flag*. Sets the review priority of the flagged item: urgent, high, medium (default), low or very low. Routing queue rules can use this priority to route items to different queues.
* **Strike user**: give the user a strike as part of the action. Two variants:
  * **Strike**: adds a strike only if the user has no active strike yet.
  * **Add strike**: always adds a strike, even if the user already has one.
* **Add tags**: add tags to the content and/or the user when the rule matches. Useful for building segments, filtering queues, or feeding follow-up rules that use the *Content tags* / *User tags* conditions.
* **Hide all content** (user rules with a *ban* action): when a user is banned by the rule, all of their existing content is removed as well. You can select a separate policy category for the removed content.
* **Route to queue** (routing queue rules): sends matching items to the selected review queue.

Rule actions trigger the same webhooks as manual moderator actions, so your platform is notified of status changes, strikes and tag updates made by rules.

### Conditions

A rule can have one or more conditions, and conditions from different categories below can be combined. For example, to catch potential spam you can combine *Signed up* (in the last 10 minutes) with *User's content volume* (more than 20 messages).

<figure><img src="https://720369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEHJJyWYjMNTzFPyCUpfR%2Fuploads%2FOeKJ8SQIfuiYiSXYL5rV%2FScreen%20Shot%202023-03-06%20at%2017.27.51.png?alt=media&#x26;token=591677a6-e598-446f-afab-8cad0e17e40f" alt=""><figcaption><p>Example of a set of conditions targeting recently signed up users that have sent over 20 flagged or removed messages</p></figcaption></figure>

#### Combining conditions with AND and OR

Between every two conditions the editor shows how they combine: **AND** (every condition must match) or **OR** (any condition can match). Hover the connector and pick the other option to switch it. All connectors at the same level switch together, so a list of conditions is either all AND or all OR.

To mix the two, use a group. Click **Add group** to add a box of conditions with its own AND/OR connector, and **Add condition to group** to add more conditions to it. The rule treats the whole group as one condition. For example, to catch slurs and hate speech, but only from new accounts:

* A group with *Text* (contains any word from your slur list) **OR** *AI Models* (Hate Speech, is a violation)
* **AND** *Signed up* (in the last 7 days)

This rule matches a message from a new account that either contains a word from the list or is a violation according to the Hate Speech model. Without groups you would need two rules that each repeat the signup condition.

A few things to keep in mind:

* A group cannot contain another group.
* **Ungroup** removes the box and keeps its conditions in place. The **×** on a group removes the group together with its conditions.
* When a rule matches through an OR, the matched words and labels shown on the item come from the conditions that made it match. Conditions in a branch that did not match are not shown, even if one of them matched on its own.
* The rule's page and its version history show how the conditions combine. A change that only moves a condition into or out of a group, or switches AND and OR, is recorded as a new version and goes through the confirmation step like any other change.

Every condition below lists what it checks and the options you can configure.

#### Score comparisons

Conditions that use an AI score compare it with **more than** or **less than** a likelihood you set (0-100%):

* **Both are strict**: a score exactly equal to the likelihood you set does not match.
* **More than** matches when any of the selected scores is above the likelihood. **Less than** only matches when all of them are below it.
* **A score that was never computed does not match either way**, for example when an item was never analyzed by that model.

#### Text conditions

* **Text**: matches words, phrases, URLs, phone numbers or email addresses in the text. Lasso also extracts text from images, videos and audio, and you choose which of these sources the condition applies to. Matching options:

  * **Contains any word / not contains any word**: matches when the text contains one of your word list entries as a whole word, bounded by spaces, punctuation or the start/end of the text. The list entry "ball" matches "nice ball!" but not "football" or "ballroom". Use this for words that are only a problem on their own: an entry like "ass" won't match "class" or "grass". List entries can also be phrases containing spaces or special characters, such as "free money" or "sh\*t", and these match as a whole phrase.
  * **Contains part of any word / not contains part of any word**: matches when a list entry appears anywhere in the text, including inside longer words. The list entry "ball" also matches "football" and "ballroom". This casts a wider net and is harder to evade with creative spelling, but pick entries with care: short entries can match inside innocent words.
  * **Contains at least X words** and **contains part of any word at least X times**: like the above, but the item must contain a minimum number of (partial) matches. Useful for tolerating a single borderline word while catching repeated use.
  * **Contains regex / not contains regex**: matches when the text matches (or matches none of) the patterns in one of your regex lists, for advanced cases that word lists can't express.
  * **Contains a URL / contains any URL / not contains any URL**: detect any link, or match links against one of your domain lists (for example an allowlist of your own domains).
  * **Contains a phone number / contains any phone number / not contains any phone number**: detect any phone number, or match against a phone number list.
  * **Contains an email / not contains an email**: detect email addresses in the text.

  Word matching is case-insensitive. Lasso also matches against a normalized version of the text: accents and look-alike characters are converted to their plain equivalents (for example "bäll", or a Cyrillic "а" styled to look like a Latin "a") and invisible characters are stripped, so common tricks to sneak words past a filter still match.
* **Text length**: the number of characters in the text, longer or shorter than a value you set. For example, flag messages over 300 characters to catch copy-paste spam.
* **Special characters in text**: the number of special characters (anything that is not a letter, number or space). Useful against zalgo text, ASCII art and other obfuscation.
* **Duplicate messages**: matches when the same user has sent the same exact text a minimum number of times within the recent period. A classic spam signal.
* **Language**: the detected language of the text, is (or is not) in a list of languages you select. For example, flag content in languages your moderation team doesn't cover.
* **AI Models**: the verdict of Lasso's default AI models for text (such as Harassment & Bullying, Hate Speech or Scams & Spam) and of any AI models Lasso set up for your platform. Select one or more models and match on their verdict: *is a violation* or *is not a violation*. Some older models return a likelihood instead, which you [compare](#score-comparisons) to a threshold. With more than one model selected, choose how many of them must match: *any* (the default), *all* or *none* of them, or *at least*, *exactly* or *at most* a number of them. A model that has no result for the content never counts as a match, and *none* and *at most* only match once every selected model has a result.
* **AI Scores** (deprecated): the toxicity, threat, identity attack and profanity scores, [compared](#score-comparisons) to a likelihood. These scores stop being available on December 31, 2026, after which rules that use them no longer match. See [Migrating from AI Scores](/other/migrating-from-toxicity-scores) to replace them with AI models.
* **Topic**: the topic assigned to the content is (or is not) in a set of topics you select.

#### Image conditions

* **Image labels**: moderation labels (nudity, violence, drugs, weapons, etc.) that Lasso's AI detects in images. Select one or more labels and [compare their scores](#score-comparisons) to a likelihood. For example, remove images with a likelihood of more than 80% of containing explicit nudity, and flag those with more than 50%.
* **AI Models**: the verdict of AI image models Lasso set up for your platform, *is a violation* or *is not a violation*. Some older models return a likelihood instead, which you [compare](#score-comparisons) to a threshold. With more than one model selected, choose how many of them must match: *any* (the default), *all* or *none* of them, or *at least*, *exactly* or *at most* a number of them. A model that has no result for the content never counts as a match, and *none* and *at most* only match once every selected model has a result.
* **Custom image labels**: images do (or do not) contain one of your custom-trained labels, with a minimum likelihood.
* **Image type**: the image's file type is (or is not) in a set you select, for example to treat GIFs differently from photos.
* **Similar images**: the image is the same as, very similar to, or somewhat similar to images that were previously removed, or images posted by banned users. When a moderator removes an image, this condition lets a rule automatically catch reposts of it, including slightly edited versions.
* **Number of people in image(s)**: how many people are detected in the image, compared to a number you set. For example, on a profile photo, require exactly one person.
* **Content's age range**: the estimated age of people in the image, compared to the user's own age or to a custom age you set. For example, flag profile photos where the estimated age is below the user's registered age.
* **QR code**: the image does (or does not) contain a QR code. QR codes are a common way to smuggle links past text filters.
* **AI generated image**: the image declares in its metadata that it is fully or partly AI generated, from any metadata or only from a verified signature. See [AI Image Detection](/content-analysis/ai-image-detection).
* **Face recognition**: whether all faces in the image match the user's verified photo. Useful for profile photo verification flows.
* **Face close-up**: whether the image is (or is not) a close-up of a face, based on the percentage of the image the largest face covers (defaults to 7%).
* **Celebrity**: the image does (or does not) contain a recognized public figure, with a minimum confidence. Helps catch impersonation and fake accounts using celebrity photos.
* **CSAM**: the image matches (or does not match) known CSAM via industry hash-matching.

#### General content conditions

* **Content type**: the content has text, image(s), video(s) or audio. Best combined with other conditions, for example: flag all images posted by users who signed up within the last day.
* **Project**: the project the content belongs to is (or is not) in a set you select, so you can apply stricter rules to specific projects. (This condition uses whatever name you have given projects in your dashboard, for example "Category" or "Room".)
* **Content tags**: the content's tags are (or are not) in a set you select. Combine with the *Add tags* action to build multi-step rule flows.
* **Content status**: the content's current status is (or is not) allowed, flagged, removed or no status. Rules run when content is sent, so new content has no status yet: use *No status* to match only new content, or *is not* *No status* to match only content that is updated and sent again.

#### Report conditions

Available for both content and users:

* **# of times reported**: how often the item or user has been reported. You can count unique reporters or total reports, over all time or within a period. By default every report counts, and two filters narrow that down: count reports from **any user type** or only from **specific user types** (normal user, trusted user, moderator, admin), and count reports filed under **any policy** or only under **specific policies** (the policy category the reporter picked). Counting any user type also includes reporter types introduced later, so it is the safer default; a specific selection only ever counts the types you picked. For example, remove content reported by 3 or more unique users within 24 hours, or flag content after 2 reports under your harassment policy.
* **Reported by**: the type of user the report came from, is (or is not) one of: normal, trusted, moderator, admin. On workspaces with DSA compliance enabled, state actor is also available, so a rule can react to notices filed by authorities. A report from a moderator can be trusted more than one from a normal user, so you can act on it immediately.

User rules only:

* **# of reports made**: the number of reports the user has made, compared to a number you set. Useful for catching users who mass-report others in bad faith.

#### User conditions

These can be used in user rules, and in content rules to check the user who posted the content:

* **Name**: the user's name, with the same matching options as the *Text* condition (word lists, partial matches, regex). For example, flag users with offensive words in their name.
* **Status**: the user's moderation status is (or is not) allowed, flagged or banned. For example, flag all content posted by currently flagged users.
* **Type**: the user's type is (or is not) one of: normal, trusted, moderator, admin, testing (and, on workspaces with DSA compliance enabled, state actor). For example, skip moderation for your own moderators and admins.
* **Signed up**: how long ago the user signed up (more or less than a number of seconds, minutes, hours, days or weeks). New accounts are riskier, so many spam rules start here.
* **Signup method**: how the user signed up (email, phone, Google, Facebook, Apple, Twitter, etc.). Users signing up through SSO are less often spammers, so you could allow them without review.
* **Email domain**: the user's email domain, matched against one of your domain lists. For example, allow signups from your own company's domains without review, or flag domains you have seen abused before. For disposable email providers, use the *Email address* condition below instead of maintaining a list yourself.
* **Email address**: the user's email address is (or is not) a temporary email address, based on its domain. Lasso checks the domain against a continuously updated database of disposable email providers (mailinator.com, 10minutemail.com and similar services), so you don't have to keep a list up to date. For example, flag signups with a temporary email address so a moderator reviews them before they can post, or combine it with *Signed up* to catch throwaway accounts created for spam. Users without an email address never match. This condition is an add-on: if it shows **(Upgrade required)** in the condition list, contact us to enable it.
* **Location (country)**: the user's country is (or is not) in one of your location lists.
* **IP address**: the user's IP address is (or is not) in one of your IP lists.
* **Profile image**: the user does (or does not) have a profile image. Accounts without one are more often fake, so this combines well with other signals.
* **Number of strikes**: the user's strike count, compared to a number you set. For example, ban users who reach 3 strikes.
* **User tags**: the user's tags are (or are not) in a set you select.
* **User's project**: the project the user belongs to is (or is not) in a set you select.
* **User's content volume**: how much content the user has posted. Choose what to count (messages, images, videos, or all content), which moderation statuses to include, a comparison and number, and whether to count in total or within a period (up to 30 days). For example, flag users with more than 5 removed messages in the last 7 days.
* **Topic volume**: like content volume, but counted per topic. For example, flag users who posted more than 10 items in a sensitive topic.

#### Review conditions (routing queue rules)

Routing queue rules can additionally match on properties of the review itself:

* **Priority**: the review priority is (or is not) urgent, high, medium, low or very low. For example, route urgent items to a dedicated queue.
* **Review type**: the item under review is content or a user.
* **Policy category**: the policy the item was flagged under is (or is not) in a set you select. For example, route everything flagged under your child safety policy to a specialist queue.

#### Custom attribute conditions

Any custom attributes you send with your content or users show up as conditions automatically, named after the attribute. The available options depend on the attribute's type:

* **Number**: compared to a threshold (greater than, at least, less than, at most). For example, flag marketplace listings with a price above 10,000.
* **Text**: the same matching options as the *Text* condition, including your word lists.
* **True/false**: the attribute is true or is false. For example, only apply a rule when `is_verified` is false.
* **Choice (enum)**: the value is (or is not) in a set of the attribute's possible values.

See Custom attributes for how to send these with your content and users.


# Research

Test rule conditions against your recent content to see what a rule would match, without taking any action.

Research lets you try out rule conditions on content you have already received. You build a set of conditions, Lasso checks them against a sample of your recent content, and you see how many items match and which ones. This is called a backtest. For example, you can check how many images an explicit nudity score above 80% would catch before you build a rule around it, or look for a spam phrase across your last 10,000 items.

{% hint style="info" %}
Research is available to Admins. See [Who can use Research](#who-can-use-research) to open it to other roles.
{% endhint %}

{% embed url="<https://vimeo.com/1243273315>" %}
A short demo of building conditions, running a backtest and reading the results
{% endembed %}

A backtest takes no moderation action. It does not change the status of any content or user, and it does not send webhooks, create reviews or count as a rule match.

### What you can use it for

* **Tune a threshold**: compare how many items match at different AI score thresholds before you put one in a rule.
* **Investigate a pattern**: find recent content that contains certain words or comes from a certain kind of user.
* **Check an existing rule**: open a rule in Research, change its conditions and see how the results differ, without touching the rule.
* **Start a new rule**: when the results look right, turn your conditions into a rule.

### Running a backtest

1. Go to **Research** in the **Oversight** section of the navigation.
2. Under **Conditions**, click **Add condition** and pick a condition. Conditions work the same as in [custom moderation rules](/automation-and-review/custom-moderation-rules), including combining them with **AND** and **OR** and using **Add group**.
3. Under **Sample**, choose how many content items to check: **1,000**, **2,500**, **5,000** or **10,000**.
4. Choose where the sample comes from:
   * **Most recent**: your newest content, going back from now.
   * **Last 7 days** or **Last 30 days**: content spread over that period. Busier hours get a bigger share of the sample, in line with how much content you received in them.
5. Click **Run backtest**.

With a lot of traffic, **Most recent** can cover only the last few hours. Pick **Last 7 days** or **Last 30 days** when you want the sample to include different times of day and days of the week, for example to see how a condition does on weekends.

Results appear while the backtest runs, and you can click **Stop** at any time. A stopped backtest keeps the results it found so far, but cannot be resumed.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-75ab990917321a6f50b44af2f4ec69d528572a6a%2Fresearch-backtest-results.png?alt=media" alt="The Research page with an image label condition on the left and the results of a finished backtest on the right"><figcaption></figcaption></figure>

### Reading the results

* **Sample**: how many items were checked and the period they were sent in. For **Last 7 days** and **Last 30 days**, a bar per day shows how many items were sampled that day. Older versions of edited content are left out, so each piece of content counts once. The sample can be smaller than you requested, for example when you received less content than that in the period.
* **Outcome**: how many of the checked items **matched**, had **no match** or were **not scored**.
* **Why they matched**: when your top-level conditions are combined with **OR**, this shows how many items each condition or group matched, so you can see which one does most of the work.
* **Matches per condition**: how many items each condition or group matched.
* **Matched content**: the items that matched, 50 per page. Each item shows which condition or group it matched and the evidence, such as `Explicit nudity 92%` or the word that was found.

Click an item to open its details in a drawer, with the same content and user information as the **Content** page.

{% hint style="warning" %}
The content drawer has the regular moderation controls. The backtest itself takes no action, but an action you take in the drawer is real and applies to the content or user straight away.
{% endhint %}

### Exporting the results

Click **Export CSV** next to **Outcome** to download the matched content as a CSV file, for example to review the matches in a spreadsheet or share them with your team. The button appears once a backtest has at least one match. You can export while a backtest is still running: the file then holds the matches found so far.

The file has one row per matched item, in the order they were found, with these columns:

| Column                                | What it holds                                                             |
| ------------------------------------- | ------------------------------------------------------------------------- |
| `content_id`                          | The content ID from your platform                                         |
| `lasso_content_id`                    | Lasso's ID for the content                                                |
| `created_at`                          | When the content was sent                                                 |
| `content_status`                      | The content's current status: `allowed`, `flagged` or `hidden`            |
| `user_id` / `lasso_user_id`           | The user's ID from your platform and Lasso's ID for them                  |
| `user_name`                           | The user's current name                                                   |
| `category_id` / `category_name`       | The content's category                                                    |
| `subcategory_id` / `subcategory_name` | The content's subcategory                                                 |
| `text`                                | The message text, without HTML formatting                                 |
| `content_tags`                        | The content's tags                                                        |
| `matched_branches`                    | The conditions or groups the item matched, such as `Condition 1; Group 2` |

After these comes one column for each condition in your query. Its heading is the condition's label and the condition as it reads in the editor, for example `Group 1:` followed by the condition. The cell shows the evidence when the condition helped the item match, such as `Explicit nudity 92%` or the word that was found, or `matched` when the condition matched without a value to show. The cell is empty when the condition did not help the item match. That includes a condition that was true on its own but sits in a group that did not match.

Like the results on the page, the export only contains content you can see, and the content details are loaded when you export, so a status or user name can differ from when the backtest ran. Images and other media are not included. Use `lasso_content_id` or `content_id` to look an item up in Lasso.

{% hint style="warning" %}
📷 Screenshot placeholder: the Outcome section of a finished backtest with the **Export CSV** button.
{% endhint %}

### How conditions behave on past content

Research works with the data Lasso already has, and that affects some conditions.

**It does not run any new analysis.** Research uses the scores stored when the content came in, and does not call AI models. Content that was never analyzed by a model in your conditions, for example because the model was added later, cannot be decided. When that is the reason an item did not match, it counts as **not scored** instead of **no match**.

**Some conditions use today's data.** These show a **Current data** badge in the condition list. They check the value as it is now, not as it was when the content was sent. A *Signed Up Date* condition measures how old the account is today, *Number of Strikes* counts the user's strikes today, and *Similar Images* compares against the removed images known today. Other details about the user, such as their name, also come from their current profile. Keep this in mind when you compare results to what a rule did at the time.

**Some conditions are unavailable.** *User's Content Volume*, *Topic Volume*, *Unique Project Volume* and *Duplicate Messages* show an **Unavailable** badge and cannot be selected. They rely on counters that are only kept for a short time. If you open a rule that uses one of them in Research, remove that condition before you run the backtest.

**Score comparisons are strict.** With **more than** or **less than**, a score exactly equal to the threshold does not match. When a condition looks at several scores, **more than** matches when any of them is above the threshold, and **less than** only when all of them are below it.

### Using Research with rules

#### Opening a rule in Research

On the page of a content rule, click **Open in Research** at the bottom of the right-hand column. Research opens with the rule's conditions filled in. Your changes in Research do not change the rule. User rules and routing queue rules cannot be opened in Research.

#### Creating a rule from your conditions

Click **Create rule** next to **Run backtest**. Lasso creates a content rule called `Rule from research` with your conditions and opens it for editing, where you can name it and set its actions. The rule starts off, so it does nothing until you enable it. You do not have to run a backtest first.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-177ef14a66e68086219d455a5694dc351b02237f%2Fresearch-open-in-research.png?alt=media" alt="The Open in Research button at the bottom of a content rule&#x27;s right-hand column"><figcaption></figcaption></figure>

#### Research, monitor-only rules and the confirmation step

These three all show what a rule would do, at different moments:

* **Research** checks past content, without creating a rule. Use it to explore while you are still working out the conditions.
* The [confirmation step](/automation-and-review/custom-moderation-rules#confirming-a-rule-before-it-goes-live) previews the match counts of a rule you are about to enable or update.
* A [monitor-only rule](/automation-and-review/custom-moderation-rules#monitor-only-rules) is evaluated on new content as it comes in. Use it to see how a rule does on live traffic, including conditions Research cannot check, such as volume conditions.

### Past backtests

**Recent backtests** lists the last 10 backtests in your workspace, with who ran them and their match count. Click one to see its results and load its conditions back into the editor. Backtests are kept for 90 days and are then deleted.

The content in the results is loaded when you view it, so an item can look different from when the backtest ran, for example if a moderator has removed it since.

### Who can use Research

Research is available to Admins. It can be opened to other roles for your workspace on request, see [roles and permissions](/moderator-toolkit/roles-and-permissions). If you do, keep in mind:

* **Category Moderators** only see their own backtests, and their backtests only count content from their assigned categories.
* **Create rule** only appears for roles that can create rules.


# AI Moderators

AI members of your moderation team that judge content against your written policy, explain every decision and take the load of borderline cases off your moderators.

An AI Moderator is an AI member of your moderation team. It reads your written policy, judges a piece of content against it the way a trained human moderator would, and explains its reasoning with every decision. Depending on how you configure it, it takes action directly or leaves a recommendation for one of your moderators to confirm with a single click.

AI Moderators work alongside Lasso's AI models and your rules, they do not replace them. AI models work at a high level and do the fast first pass on everything that comes in. The AI Moderator works at the level of your written guidelines and handles the part that used to need a human: deciding what a flagged item really is.

{% hint style="info" %}
Every plan includes one AI Moderator. The Enterprise plan has no limit, so you can run several, for example one per category of your platform or one per language. If AI Moderators are not visible on your **Team** page, contact us to enable them for your workspace.
{% endhint %}

### High-level AI models, detailed judgment

AI models are high level. An AI model answers one broad question, such as: does this text look like harassment? It is fast, cheap and runs on every item, which makes it the right tool for a first pass. Lasso can tune an AI model to your platform, but it stays a broad question. It cannot hold the detail of your guidelines: that trash talk is fine in your game lobby but not in a support thread, that quoting an insult to call it out is not an insult, or that on your marketplace the real problem is sellers moving the deal off-platform. It returns a verdict, violation or not, and your rules turn that into an action.

An AI Moderator is detailed. It reads your written policy, with your definitions, your exceptions and your examples, and judges each item against exactly that, the way a trained member of your team would. Three things follow from that:

* **Higher accuracy on the content that matters.** An AI model is less accurate on borderline content, because a broad question has no room for your exceptions. Some acceptable content gets marked as a violation and some violations pass. An AI Moderator reduces both: it allows the trash talk your policy allows, and it removes the politely worded exclusion your policy forbids.
* **Your rules, in full detail.** Paid account boosting, off-platform payments, asking a match for money: violations specific to your platform, with their own exceptions. Describe them in your policy and the AI Moderator enforces them from the next message.
* **Changes in minutes, not training cycles.** Changing an AI model means new data, retraining and an evaluation round. Changing an AI Moderator means editing a paragraph and publishing a new policy version. Your policy document is the exact, readable description of what gets moderated and why.

|                    | AI models and rules                                                 | AI Moderator                                                                          |
| ------------------ | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| Scope              | High level: one broad question per AI model, tuned to your platform | Detailed: your full policy, with its definitions and exceptions                       |
| Input              | The content                                                         | The content and your written policy                                                   |
| Output             | A violation verdict; a rule turns it into an action                 | An allow, flag or remove decision, the policy category and a one-sentence explanation |
| Context and intent | Not considered                                                      | Considered, within the content it reads                                               |
| Changing behavior  | Have Lasso adjust the model's policy, or train a new model          | Edit the policy text and publish                                                      |
| Cost and speed     | Very low, runs on every item                                        | Higher per item, runs on what reaches it                                              |

The two complement each other. AI models and rules cast a wide, cheap net over everything; the AI Moderator sorts what the net catches against your detailed policy, and tells you why. Because it absorbs the flagged volume, you can afford rules that catch more broadly and catch more real violations without burying your team in borderline cases.

### Examples

Each example below shows the same pair: one message an AI model marks as a violation although your policy allows it (a false positive that costs a moderator's time) and one it lets pass or does not cover at all (a false negative that stays on the platform). "AI models and rules alone" is a setup with AI models and rules only. "With an AI Moderator" is the same platform after writing its guidelines into a policy, adding an AI Moderator set to **Take Action** to its review queue, and casting a wider net, such as a broader keyword list, which would have buried the team before but is now sorted by the AI Moderator.

#### Gaming

Acme Arena, a multiplayer game with in-game chat. Its policy says: trash talk about another player's skill is part of the game and allowed; any attack or exclusion based on nationality, ethnicity, gender or religion is **Hate speech** and is removed, even when phrased politely. A rule flags messages the Harassment & Bullying or Hate Speech models mark as a violation.

| Message                                                 | AI models and rules alone                                                                                                                      | With an AI Moderator                                                                                                                           |
| ------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| "gg ez, you're trash, uninstall the game"               | Harassment & Bullying model: violation, for the insults and "uninstall". Flagged, a moderator reads it and allows it. Hundreds of these a day. | Allowed: "Trash talk about gameplay, allowed under Harassment guidance." No moderator sees it.                                                 |
| "people from \[country] shouldn't be allowed in ranked" | Hate Speech model: no violation. No insult, no slur, polite wording, so it never reaches anyone and stays up.                                  | A keyword list of country and nationality names sends it to the queue. Removed under **Hate speech**: "Excludes players based on nationality." |

#### Social

Acme Social, a community platform. Its policy says: quoting abuse you received in order to call it out is allowed; **Bullying** includes any statement wishing harm on a member or telling them to disappear, however politely worded, and is removed. A rule flags messages the Harassment & Bullying or Hate Speech models mark as a violation.

| Message                                                                                           | AI models and rules alone                                                                                                                         | With an AI Moderator                                                                                                                                                             |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| "Someone just DMed me 'go back to your own country'. This is what we deal with every single day." | Hate Speech model: violation, it sees the quoted phrase. Flagged, a moderator sees it is a victim quoting their harasser and allows it.           | Allowed: "Quotes abuse to report it, not directed at another member."                                                                                                            |
| "Honestly nobody here would notice if you just left for good"                                     | Harassment & Bullying model: no violation. No slur, no insult, just a quiet sentence. The target reports it and a moderator finds it a day later. | The report goes to the same queue, so the AI Moderator handles it within minutes. Removed under **Bullying**: "Tells a member they would not be missed, targeted and demeaning." |

#### Marketplace

Acme Market, a second-hand marketplace with buyer-seller chat. Its policy says: arranging a pickup, including sharing a pickup address, is allowed; inviting a buyer to pay outside Acme checkout, or sharing contact details to continue elsewhere, is **Off-platform dealing** and is removed. A rule flags messages the Personal Info & Off-Platform Contact model marks as a violation.

| Message                                                    | AI models and rules alone                                                                                                                         | With an AI Moderator                                                                                                                                                                                       |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| "Pickup is at 12 Example Street, any time after 6pm works" | Personal Info & Off-Platform Contact model: violation, for the address. Flagged, a moderator allows it. Most matches look like this.              | Allowed: "Arranges a pickup, no off-platform payment or contact."                                                                                                                                          |
| "Can do it cheaper if you pay me directly, no fees"        | No contact details and no request to chat elsewhere, so no AI model marks it. The buyer gets scammed and Acme hears about it in a support ticket. | A keyword list with "pay", "directly" and "fees" matches most buyer chats. The AI Moderator sorts them. Removed under **Off-platform dealing**: "Invites the buyer to pay outside checkout to avoid fees." |

#### Dating

Acme Dates, a dating app. Its policy says: flirting and compliments between matches are allowed, including suggestive ones; asking a match for money, gift cards or financial help of any kind is a **Scam** and is removed, whatever the story. A rule flags messages the Sexual Content or Scams & Spam models mark as a violation.

| Message                                                                        | AI models and rules alone                                                                                                                        | With an AI Moderator                                                                                                                                                                                                                |
| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| "You're gorgeous, let me take you to dinner this weekend 😍"                   | Sexual Content model: violation, it reads as suggestive. Flagged, a moderator allows it. Flirting is the whole app.                              | Allowed: "Flirtatious compliment and a date invitation, normal in this context."                                                                                                                                                    |
| "My card got blocked while travelling, could you help me out until Friday? ❤️" | Scams & Spam model: no violation. No amount, no link, no explicit request for money. Stays up until the victim reports it, usually after paying. | A keyword list with "card", "bank" and "pay back" sends it to the queue. The AI Moderator allows "my bank app is down again, typical" and removes this one under **Scam**: "Asks a match for financial help with an urgency story." |

In every case the moderators' queue ends up holding the genuinely ambiguous items, each one arriving with the AI Moderator's reasoning attached. And when something new appears, say a wave of "free skins, claim at \[link]" messages on Acme Arena or a new gift-card story on Acme Dates, the fix is a sentence in the relevant policy section and a new published version. The AI Moderator applies it to the next message that comes in. No new model, no new rule, no deployment.

### How it works

1. **Rules run first.** Incoming content is analyzed and checked against your [rules](/automation-and-review/custom-moderation-rules). Anything a rule flags becomes a review in one of your [review queues](/automation-and-review/review-queues).
2. **The AI Moderator reviews first.** When a queue includes an AI Moderator, new reviews go to it before any human. It reads the content and the policy that applies to it (your default policy, or a policy scoped to that category or channel) and decides: allow, flag or remove, with a policy category and a one-sentence explanation.
3. **It acts or recommends.** For allow and for remove you choose separately whether the AI Moderator takes the action itself (**Take Action**) or leaves a recommendation (**Recommend**). An action resolves the review and your platform is notified through webhooks like any other action. A recommendation hands the review to a human moderator with the suggested action, category and reasoning attached; the moderator applies it with one click or decides differently. A flag decision always goes to a human.
4. **Start with recommendations.** A good way to introduce an AI Moderator is to set both actions to **Recommend**, check its decisions on the AI Moderator's page under **Team**, and switch to **Take Action** as you gain confidence.
5. **Every decision is recorded.** The AI Moderator's decisions show on the content's timeline and in the audit logs with the policy version they were made against, and the **AI Moderator** tab under **Analytics** shows how often your moderators follow its recommendations, per policy and per policy version. That tells you where the policy text needs sharpening.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-86d00a6ef799d15006bbfa1bbe4f54997371e746%2Fai-moderator-review-card.png?alt=media" alt=""><figcaption><p>The AI Moderator's recommendation on a piece of content, with the policy version and its reasoning</p></figcaption></figure>

{% hint style="info" %}
By default an AI Moderator reviews content that a rule has flagged into a review queue, so rules decide what it sees. Lasso can also configure an AI Moderator to check all incoming content after your rules have run, taking action or flagging before anything reaches a queue. Contact us if that fits your setup.
{% endhint %}

### Setting up an AI Moderator

1. **Write the policy.** Go to **Policies** in the sidebar and open your policy with **View policy**, then **Edit policy**. Write the general guidelines and add guidance for each [policy category](/moderator-toolkit/policy-categories) the AI Moderator should enforce with **Add a category**. Describe what to allow, flag and remove, define your terms and give examples. Review the changes and **Publish**. Categories without guidance are invisible to the AI Moderator.
2. **Add the moderator.** Go to **Team**, and in the **AI Moderators** section click **Add agent**. Give it a name and a role. The Category Moderator role restricts it to part of your platform, like any other team member, see [Roles & Permissions](/moderator-toolkit/roles-and-permissions).
3. **Configure it.** In the AI Moderators table set **Allow action** and **Remove action** to **Recommend** or **Take Action**, and switch the moderator **On**. A new AI Moderator starts switched off and does nothing until you enable it.
4. **Put it in a queue.** In **Review**, edit a queue and tick **Include AI Moderators**, or select the AI Moderator by name under its moderators. **Auto-assign to AI Moderators** in **Settings → Moderation Preferences** (on by default) sends new reviews in that queue to the AI Moderator first.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-b903d49441694fd0094266a7091c3ff6f0b0f41a%2Fai-moderators-team-table.png?alt=media" alt=""><figcaption><p>The AI Moderators section on the Team page</p></figcaption></figure>

### What it reviews

* **Content, not users.** User reviews always go to human moderators.
* **Text content.** Reviewing images with the AI Moderator can be enabled for your workspace on request. Video and audio are not reviewed.
* **Once per item.** An item is reviewed by an AI Moderator once. If you want it looked at again after a policy change, a human moderator handles it.

### AI Moderators in webhooks

When an AI Moderator takes an action, your platform receives the same `ChangeStatus` webhook as for a human moderator. `actor_id` is the AI Moderator's ID, `policy_id` is the category it applied and `policy_information` carries its one-sentence reasoning, so your platform can show the user why their content was removed. Recommendations do not send a webhook; the action the human moderator takes afterwards does. See [Webhooks](/developers/webhooks) for the payload.


# Lists

Reusable sets of words, domains, countries, phone numbers, IP addresses and regex patterns that your moderation rules match against.

Lists are reusable sets of items that your [custom moderation rules](/automation-and-review/custom-moderation-rules) match against, for example a list of banned words, an allowlist of your own domains, or a set of trusted email domains. Instead of putting the values inside each rule, you keep them in a list and let any number of rules reference it. When you add or remove items, every rule that uses the list picks up the change automatically, without editing the rules.

{% hint style="info" %}
A list has no effect on its own. It only does something once a rule condition references it, for example a **Text** condition set to *contains any word* pointed at your word list. Whether a list acts as a blocklist or an allowlist is decided by the rule that uses it (*contains* versus *not contains*).
{% endhint %}

<figure><img src="https://720369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEHJJyWYjMNTzFPyCUpfR%2Fuploads%2FUKswqnrcgXAMclHsxsd0%2FScreenshot%202026-08-04%20at%2015.49.12.png?alt=media&#x26;token=2a6a016a-4520-4858-b47c-80bf418394b4" alt=""><figcaption></figcaption></figure>

### What you can use them for

* Maintain word and phrase lists for profanity, spam or scam detection, shared across all your text rules.
* Allowlist your own domains, so rules only act on links that point elsewhere.
* Match email domains you maintain yourself with the **Email domain** condition, for example to allow signups from your own company's domains. For disposable email providers there is a dedicated **Email address** condition that needs no list, see [custom moderation rules](/automation-and-review/custom-moderation-rules).
* Treat users from specific countries or IP addresses differently, for example for regional compliance.
* Catch structured patterns that word lists can't express, such as ID numbers or obfuscated handles, with regex lists.

### List types

Every list has a type, chosen when you create it, that determines what it can hold and which rule conditions can use it:

* **Text**: words or phrases, including ones with spaces or special characters ("free money", "sh\*t"). Used by the **Text** condition, the user **Name** condition and text [custom attribute](/moderator-toolkit/custom-attributes) conditions.
* **Domains**: websites, entered as URLs (e.g. `https://example.com`). Used to match links in the **Text** condition and by the **Email domain** condition.
* **Phone Numbers**: phone numbers including their country code. Used to match phone numbers found in text.
* **Countries**: countries as ISO 3166-1 alpha-2 codes (e.g. `US`, `GB`, `NL`). Used by the **Location (country)** condition.
* **IP Addresses**: used by the **IP address** condition (available on the Pro and Enterprise plans).
* **Regexes**: regular expression patterns, for cases word lists can't express. Used by the *contains regex* and *not contains regex* matching options wherever text matching is available.

How matching works (whole word versus partial matching, case-insensitivity, normalization of accents and look-alike characters) is described per condition on the [custom moderation rules](/automation-and-review/custom-moderation-rules) page.

### Creating a list

Open **Lists** in the sidebar. Type a name, pick a type under **Select type of list** and click **Create new list**. The type cannot be changed later; the name can (open the list, change the name and click **Save**).

The number of lists you can create depends on your plan: 5 on the Free and Starter plans, 15 on Pro, and unlimited on Enterprise.

### Adding and removing items

Click a list to open it:

* Type a value in the **Add new item** section and click **Add**.
* An item that is already on the list is skipped ("Item already in list"), so a list never contains duplicates.
* Each item records when it was added and by whom, shown in the **Created At** and **Added By** columns. Changes are also recorded in the audit logs.
* To remove items, select them and click the **Delete** button that appears.
* Use the search box to find items on large lists.

Depending on the list's type, values are validated when you add them:

* **Countries** must be ISO 3166-1 alpha-2 codes, anything else is rejected.
* **Phone numbers** must include a country code. They are stored in a normalized format, so `+1-415-910-7311` is saved as `+14159107311`.
* **Domains** must be valid URLs.
* **Regexes** are validated when added. Invalid patterns, patterns of 200 characters or more, and unsafe patterns (for example with nested quantifiers) are rejected.

A list can hold up to 50,000 items. Regex lists are limited to 100 patterns.

<figure><img src="https://720369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEHJJyWYjMNTzFPyCUpfR%2Fuploads%2FJsPIfLLZhGvlj6sPElCm%2FScreenshot%202026-08-04%20at%2015.49.46.png?alt=media&#x26;token=dd9f3d01-bd9f-401b-ba99-81f1e41e564f" alt=""><figcaption></figcaption></figure>

### Uploading a file

To add many items at once, use the **Or upload file** section on the list. Upload a `.txt` file of less than 5 MB with one item per line (a single line of comma-separated values also works). A few things to keep in mind:

* Uploads always append to the list, they never replace it. Items already on the list are skipped.
* The same validation applies as for single items. If any entry in the file is invalid, the whole upload is rejected; fix the file and upload again.

### Adding items while you moderate

Select any text inside a piece of content, anywhere in the dashboard (the content pages, a user's content or a review queue), and a small dialog appears offering to add the selection to a list. Lasso detects what you selected (a country, IP address, phone number, URL or plain text) and only offers lists of the matching type. Pick a list and click the **Add to** button to confirm.

This is handy while reviewing: highlight a new spam phrase and add it to your word list without leaving the queue.

<figure><img src="https://720369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEHJJyWYjMNTzFPyCUpfR%2Fuploads%2FVj0HA1Q9GcHYGyIAsuLt%2FScreenshot%202026-08-04%20at%2015.51.00.png?alt=media&#x26;token=535e4d8c-7570-4c97-81b6-8987531f9b16" alt=""><figcaption></figcaption></figure>

### Testing a regex list

Regex lists have a **Test word on list** section. Type a value under **Word to test** and click **Test** to see whether it matches, and which of the list's patterns matched it. Use this to check new patterns before a rule starts acting on them.

### Using lists in rules

When you pick a list-based matching option in a [custom moderation rule](/automation-and-review/custom-moderation-rules) condition, a selector appears with your lists of the matching type. A few things to know:

* A condition can select multiple lists, their items are combined.
* Changes to a list apply to every rule that uses it, within seconds.
* Renaming a list is safe. Rules reference the list itself, not its name.
* The **Used in rules** column on the Lists page shows which rules use each list, with links to open them.
* If no list of the right type exists yet, the condition shows **No lists available**. Create the list first.

### Downloading and deleting lists

Admins have two extra controls on each row of the Lists page:

* The download icon saves the list as a `.txt` file with one item per line.
* The trash icon deletes the list, after a confirmation. Deleting a list cannot be undone.

A list that is used by a rule cannot be deleted ("Cannot delete list, it's in use by a rule"). Remove the list from every rule condition that references it first.

### Managing lists through the API

Lists can be managed from your own systems through the API, authenticated with your API key. In the API, the list `type` values are `strings` (Text), `urls` (Domains), `locations` (Countries), `phone_numbers`, `ips` and `regexes`.

**Get all lists** (the `items` field is the item count):

```
GET /api/v1/lists
```

```json
{
  "success": true,
  "lists": [
    {
      "id": "cln4sal9000d6saf8m5g12ifp",
      "createdAt": "2026-07-01T12:00:00.000Z",
      "name": "Banned words",
      "type": "strings",
      "items": 42
    }
  ]
}
```

**Create a list**:

```
POST /api/v1/lists

{ "name": "Banned words", "type": "strings" }
```

Returns `{ "success": true, "listId": "..." }`. Lists created through the API count towards your plan's list limit.

**Get a list with its items**:

```
GET /api/v1/lists/{listId}
```

```json
{
  "success": true,
  "list": {
    "id": "cln4sal9000d6saf8m5g12ifp",
    "createdAt": "2026-07-01T12:00:00.000Z",
    "name": "Banned words",
    "type": "strings",
    "items": ["free money", "spam phrase"]
  }
}
```

**Add items** (appends, never replaces):

```
POST /api/v1/lists/{listId}

{ "items": ["first", "second"] }
```

Returns `{ "success": true, "addedItems": [...] }`. `addedItems` contains only the values that were actually added, values already on the list are skipped silently. The same validation as in the dashboard applies, and an invalid value rejects the whole request with a 400 error.

**Remove items**:

```
DELETE /api/v1/lists/{listId}

{ "items": ["first"] }
```

Returns `{ "success": true, "deletedItems": [...] }`. Items are matched by their exact value.

Renaming and deleting lists is not possible through the API, use the dashboard for that. All endpoints are subject to [rate limits](/developers/rate-limits).

### Lists in webhooks

List changes are sent to your platform as `UpdateList` actions through [webhooks](/developers/webhooks), carrying the list's id and name, plus `words_added` and `words_removed` arrays when items change (the fields are named "words" regardless of the list's type). See the [webhooks](/developers/webhooks) page for the full payload.


# Review Queues

Review Queues organize content reviews into customizable categories that can be assigned to specific moderators or teams.

Review Queues provide a powerful way to organize and streamline the content moderation process by categorizing reviews into specific queues based on their attributes. This feature allows administrators to create multiple queues, each tailored to specific needs, and assign them to moderators with the right expertise.

For instance:

* A **"Spanish Queue"** can be created for content requiring Spanish-speaking moderators.
* A **"High Priority Queue"** can ensure urgent or high-priority reviews are processed promptly.

Administrators can configure each queue with a custom name and either assign all moderators or specify particular ones. The routing of reviews into these queues is controlled by [**Routing Rules**](/automation-and-review/review-queues/routing-rules).

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-0d57563f9075a3af35197b088e12d1cd1145851b%2Freview-queue-overview.png?alt=media" alt=""><figcaption><p>Review Queue Overview</p></figcaption></figure>

### **Create and Configure Review Queues**

1. **Navigate to the Queues Section:**
   * In the moderation platform dashboard, click on the **Review** section.
2. **Create a New Queue:**
   * Click the **+** button to create a new queue.
   * Provide a descriptive name for the queue (e.g., "Spanish Queue", "High Priority Queue").
3. **Assign Moderators:**
   * Choose whether **All Moderators** can access this queue or select specific moderators.
4. **Save the Queue:**
   * Once configured, click **Save** to add the queue to your list.

### Example Video

{% embed url="<https://www.youtube.com/watch?v=Mkv8PCfL8_c>" %}
Example of how to set up a review queue with rules
{% endembed %}


# Routing Rules

Routing Rules automate review assignments to queues based on various conditions

Routing Rules determine how reviews are automatically directed to the appropriate queue. These rules use conditions based on the review, user, or content attributes. If no conditions match, reviews are sent to the **Default Queue**.

Examples:

* **Language Rule:** If the language of the content is "Spanish", direct the review to the **Spanish Queue**.
* **Priority Rule:** If the priority is "Urgent" or "High", send the review to the **High Priority Queue**.

Routing rules provide flexibility, allowing administrators to define logic that aligns with their moderation workflow.

To try a routing rule without moving any reviews, make it monitor-only: it tracks how many reviews it would have routed, and the reviews keep going to the queue they would go to otherwise. See [Monitor-only rules](/automation-and-review/custom-moderation-rules#monitor-only-rules).

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-3a4b885ed9fdf25ada7f568466fee7215c04f668%2Freview-queue-rules.png?alt=media" alt=""><figcaption><p>Queue routing rules</p></figcaption></figure>

### Create and configure routing rules

1. **Access Routing Rules:**
   * Click on the **Routing Rules** button in the Review Queues section.
2. **Add a New Rule:**
   * Click **Add Rule** and define a condition. For example:
     * Condition: `Priority` = `Urgent or High`
     * Queue: **High Priority Queue**
3. **Edit Existing Rules:**
   * Click on a rule to modify its conditions or assigned queue.
4. **Test and Save Rules:**
   * Ensure rules cover all necessary scenarios.
   * Click **Save** to apply the changes.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-bdd85f1fe4b46de1f258b9a65e70147d357292e0%2Freview-queue-rule.png?alt=media" alt=""><figcaption><p>Set up a routing rule</p></figcaption></figure>


# User Reports

Let your users report content and other users, and triage those reports in Lasso or act on them automatically with rules.

User reports are reports your own users file about a piece of content or about another user on your platform. Your product sends each report to Lasso through the API, and they show up on the **User Reports** page for your moderators to triage. Reports are also a signal for custom moderation rules, so you can automatically flag or remove something once enough people have reported it.

{% hint style="info" %}
Lasso does not provide a report button or a reporting form. You build the reporting experience in your own product, and send every report to Lasso through the user reports endpoint.
{% endhint %}

### What you can use them for

* Give moderators a queue of everything your community is complaining about, next to what your automated moderation catches.
* Escalate on volume, for example hide content once 3 different users have reported it within 24 hours.
* Trust some reporters more than others, so a report from a moderator or a trusted user can be acted on immediately while a report from a normal user needs corroboration.
* Record notices from trusted flaggers and authorities, with the organisation's name attached to the report.
* Catch bad-faith mass reporting by looking at how many reports a user has filed.
* Track what your users report, and how fast your team resolves it, in the analytics.

### Before you start

Two things need to be in place before your product can send reports.

1. **An API key.** Create one under **Settings → API & Webhooks**. Reports are sent with the same key as the rest of the API.
2. **At least one policy category enabled for user reports.** Every report has to name a policy category, which is the reason the user picked ("Spam", "Harassment", and so on). Go to **Policies**, open a policy category and tick the **User Reports** checkbox: "Can this policy category be selected when users are reporting content or other users?". This is off by default, so a fresh workspace has no reasons your users can pick from.

While you are there, fill in the **Information** field of each of these categories. It is meant as guidance for the reporter: "This information helps users understand when to select this policy category while submitting a user report." It is returned by the API together with the category name, so you can show it in your report dialog.

<figure><img src="https://720369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEHJJyWYjMNTzFPyCUpfR%2Fuploads%2F2gkrEL4bXSh4Lsgx7YwX%2FScreenshot%202026-07-31%20at%2010.35.19.png?alt=media&#x26;token=07842803-1b3c-42fe-9758-57fffffff7c8" alt=""><figcaption></figcaption></figure>

### Fetching the report reasons

`GET /api/v1/user-reports` returns the list of reasons your users can choose from, so your report dialog stays in sync with the dashboard instead of hardcoding a list. Only categories that are enabled **and** have **User Reports** ticked are returned.

```json
{
  "success": true,
  "policies": [
    {
      "id": "harassment",
      "name": "Harassment",
      "description": "Targeted abuse or bullying of another user."
    }
  ]
}
```

The `id` here is the **Policy Category ID** (also shown as a column on the **Policies** page). That is the value you send back as `policy_id` when the user submits the report. If your workspace has translations enabled, each category also carries a `translations` object with the name and description per language.

### Sending a report

`POST /api/v1/user-reports` records one report. Everything goes inside a `report` object:

| Field                | Required | Description                                                                                                                                                                                                                                                                                    |
| -------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `id`                 | No       | Your own id of the report, max 100 characters. Lasso echoes it as the report `id` on the `HandleReports` and `SendMessage` webhooks (next to `lasso_report_id`) so you can tie them to your record, and sending the same id again returns the existing report instead of creating a duplicate. |
| `policy_id`          | Yes      | The **Policy Category ID** of the reason the user picked, for example `harassment`.                                                                                                                                                                                                            |
| `reported_by_id`     | One of   | Your own id of the user filing the report. Max 100 characters. Send this **or** `reported_by`, not both.                                                                                                                                                                                       |
| `reported_by`        | One of   | A user object describing the reporter, for reporters Lasso has not seen yet. An alternative to `reported_by_id`, see [Describing the reporter](#describing-the-reporter).                                                                                                                      |
| `content_id`         | One of   | Your own id of the reported content. Send this **or** `user_id`, not both.                                                                                                                                                                                                                     |
| `user_id`            | One of   | Your own id of the reported user.                                                                                                                                                                                                                                                              |
| `reported_by_type`   | No       | The type of the reporter: `normal`, `trusted`, `moderator`, `admin` or `testing`. Workspaces with DSA compliance can also send `state_actor`. Defaults to the type Lasso already has for that user.                                                                                            |
| `reported_by_entity` | No       | The name of the organisation the report was filed on behalf of, for example a trusted flagger. Max 255 characters. See [Reports from trusted flaggers and authorities](#reports-from-trusted-flaggers-and-authorities).                                                                        |
| `extra_info`         | No       | Free text the reporter added, shown to your moderators next to the report.                                                                                                                                                                                                                     |

```json
{
  "report": {
    "policy_id": "harassment",
    "reported_by_id": "user-456",
    "content_id": "comment-123",
    "extra_info": "Keeps calling me names in this thread"
  }
}
```

A successful call returns the report's ids, so you can store the Lasso id even when you don't send your own:

```json
{
  "success": true,
  "data": {
    "report": {
      "id": "clf10k9xw0008sauvq2xkpd3n",
      "external_id": "ticket-4711"
    }
  }
}
```

`external_id` is only present when you sent `id`.

Things worth knowing:

* Send **either** `content_id` **or** `user_id`, never both and never neither. Both cases return a `400`.
* Send **either** `reported_by_id` **or** `reported_by`, never both and never neither. Both cases also return a `400`.
* The **reported content must already exist in Lasso**. If Lasso does not know the content id you get a `404` with `Reported Content not found`, so sync your content before you allow it to be reported.
* The **reported user and the reporter are created automatically** if Lasso has not seen them yet. They appear as "Unknown" until you sync their real profile. For the reporter you can avoid the placeholder by sending their details in the report itself with `reported_by`.
* An unknown `policy_id` returns a `400` with `Policy not found`. Use the identifier, not the display name.
* Reports are **not deduplicated** unless you send your own `id`. Without it, the same user reporting the same item twice creates two reports. If you only want one report per user per item, send a stable `id` or enforce it in your own product.
* If the reported user or content is **already hidden** in Lasso, the report is stored as handled straight away and never reaches your moderators' open list.

The endpoint is rate limited to **100 requests per minute** per workspace. See rate limits for the response headers and retry behaviour. Full request and response details are in the [API reference](https://api-reference.lassomoderation.com/group/endpoint-user-reports).

### Describing the reporter

Normally you identify the reporter with `reported_by_id`, and Lasso creates an "Unknown" placeholder when it has not seen that user before. When the reporter is not synced to Lasso yet (an anonymous visitor, or a platform that only syncs users once they become relevant to moderation), you can send a `reported_by` object instead, so the reporter is created with real information straight away.

| Field               | Required | Description                                                                             |
| ------------------- | -------- | --------------------------------------------------------------------------------------- |
| `id`                | Yes      | Your own id of the reporter. Max 100 characters.                                        |
| `name`              | No       | The reporter's display name.                                                            |
| `email`             | No       | The reporter's email address.                                                           |
| `email_domain`      | No       | The domain of the reporter's email address, if you prefer not to send the full address. |
| `phone_number`      | No       | The reporter's phone number.                                                            |
| `country_code`      | No       | Two-letter ISO 3166-1 alpha-2 country code, for example `NL`.                           |
| `ip_address`        | No       | The reporter's IP address.                                                              |
| `profile_image_url` | No       | URL of the reporter's profile image.                                                    |
| `metadata`          | No       | Custom key-value data, in the same format as on the user endpoint.                      |

```json
{
  "report": {
    "policy_id": "harassment",
    "reported_by": {
      "id": "device-8f3a2c",
      "name": "PixelPirate",
      "email": "reporter@example.com",
      "country_code": "NL",
      "ip_address": "203.0.113.42",
      "metadata": {
        "app_version": "4.2.1"
      }
    },
    "content_id": "comment-123",
    "extra_info": "Keeps calling me names in this thread"
  }
}
```

A few semantics to be aware of:

* The fields are **only applied when the reporter is created**. If Lasso already knows the user, the extra fields are ignored, so a report can never overwrite a profile you synced. Update existing users through the user endpoint.
* There is no `type` field on the object. The reporter's type comes from `reported_by_type`, the same as with `reported_by_id`.
* Use a **stable id** for anonymous reporters, such as a device id or a hashed email address, rather than a random id per report. With a random id every report creates a new user, and rule conditions that count reports `by unique users` lose their meaning.
* A reporter created from a `reported_by` object is evaluated against your user rules, the same as a user synced through the user endpoint.

### Reports from trusted flaggers and authorities

Not every report comes from a community member. Under the EU Digital Services Act, platforms also receive notices from **trusted flaggers** (organisations whose notices must be prioritised, such as consumer protection agencies and hotlines) and from **state actors** (courts and other authorities). Two fields on the report record where such a notice came from:

* `reported_by_type` marks the kind of reporter: `trusted` for a trusted flagger, `state_actor` for an authority.
* `reported_by_entity` names the organisation itself, for example `Acme Consumer Protection`.

{% hint style="info" %}
The `state_actor` reporter type is only available on workspaces with DSA compliance enabled. Without it, sending `reported_by_type: "state_actor"` returns a `400` with `Reporter type 'state_actor' requires the DSA compliance feature`. The other reporter types and `reported_by_entity` work on every workspace.
{% endhint %}

```json
{
  "report": {
    "policy_id": "illegal-content",
    "reported_by_id": "trusted-flagger-acme",
    "reported_by_type": "trusted",
    "reported_by_entity": "Acme Consumer Protection",
    "content_id": "comment-123",
    "extra_info": "Notice under Article 16 DSA"
  }
}
```

The entity travels with the report everywhere it appears: the reports pages show it next to the reporter (for example "Trusted flagger: Acme Consumer Protection", or "State actor: ..." for authorities), it is a column in the CSV export, and it is included in the `HandleReports` webhook payload as `reporter_entity`.

A few practical notes:

* Use one stable `reported_by_id` per organisation (such as `trusted-flagger-acme`), so all of its notices are attributed to the same reporter and rule conditions that count reports `by unique users` behave sensibly.
* You can also set the organisation's account `type` through the user endpoint (see user moderation), so its reports default to the right type and you can leave `reported_by_type` off.
* Rules can treat these reports differently from community reports with the **Reported by** condition, for example flag anything reported by a trusted flagger or an authority immediately. See custom moderation rules.

### Handling reports in the dashboard

Reports land on the **User Reports** page in the sidebar. It has two tabs, **Content** and **Users**, each with the number of open reports. The Users tab is only visible to moderators with permission to see user reports.

Each row shows the reported item, its current status, when the report came in, the policy category the reporter picked, their extra information, who reported it, how many times the item has been reported in total, and, once resolved, who handled it.

From a row a moderator can:

* **Take a moderation action** on the reported content or user, with the same action buttons used elsewhere in the dashboard. The report is resolved automatically as soon as a decision is made.
* **Ignore the report** when nothing is wrong with the reported item.
* **Ignore all reports for this content** (or **for this user**) to clear every open report on the same item at once.
* Select several rows and use the **Ignore n reports** button to clear them in bulk.

By default the page only shows open reports. Tick **Show handled reports** to include the ones that are already resolved. Resolved rows carry an icon showing how they were closed: a green check when an action was taken, and a crossed-out eye when the report was ignored.

Reports resolve themselves whenever a moderator or a rule takes a final decision on the reported item. Allowing or removing content or a user marks every open report on it as handled and records which action did it. Flagging is not a final decision, so flagged items keep their reports open until someone decides.

Every report also appears in the activity timeline of the reported user or content, as "Reported by *user* for *policy*", together with the extra information the reporter sent. Once a report is resolved, its timeline entry carries a **Handled** or **Ignored** badge showing how it was closed.

### Reacting to reports with rules

A report triggers a re-evaluation of your custom moderation rules on the reported user or content, so a rule can act on it within seconds. The report conditions are grouped under **Reports** in the condition list:

* **Content # of Times Reported** and **User # of Times Reported**: compare the number of reports against a number you set. You can count `by unique users` or `in total`, over all time or `over period` with a window like the last 24 hours. By default every report counts, and two filters narrow that down: count reports from **any user type** or only from **specific user types** (for example only trusted users and moderators), and count reports filed under **any policy** or only under **specific policies**. For example, hide content reported by 3 or more unique users in the last 24 hours, or remove content as soon as it is reported twice under your harassment policy.
* **Content Reported By** and **User Reported By**: check whether the report came from a given type of user. A report from a moderator or an admin can be acted on immediately.
* **# of Reports Made By User**: available on user rules, compares how many reports a user has filed. Useful for catching users who mass-report others in bad faith.

The counting conditions look at every report ever filed on the item, including reports that were already handled or ignored.

Rules are also the link between reports and [review queues](/automation-and-review/review-queues). Reports do not create reviews by themselves, but a rule that flags a reported item will put it in front of your moderators through the normal routing rules.

### Reports in analytics

**Analytics → Reports** shows how reporting behaves over time: **Reports by Type** (content versus users), **Reports by Policy**, **Top Reporters**, **Average Handling Time** and **Reports by Decision**, which splits resolved reports into accepted (the item was removed), rejected (the item was allowed) and ignored. Analytics are updated asynchronously, so very recent reports can take a moment to appear.

<figure><img src="https://720369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEHJJyWYjMNTzFPyCUpfR%2Fuploads%2Fjqqpw8EpMAry7skBXggn%2FScreenshot%202026-07-31%20at%2010.25.13.png?alt=media&#x26;token=d12df4c2-50f4-41fc-8fc8-54e19cf17503" alt=""><figcaption></figcaption></figure>

The users list also has **# Reported** and **# Reports Made** columns, so you can sort your user base by who gets reported most and who reports most.

### Reports and webhooks

There is no webhook for an incoming report, because a report on its own is not a moderation decision. Your platform hears about the outcome instead: whenever reports are resolved, a `HandleReports` action is delivered through webhooks, listing the reports that were closed with the policy category, the reporter, the reason each one carried, your own report `id` if you sent one, and the `lasso_report_id`.

Its `resolution` field tells you how the reports were closed: `actioned` when a moderation action resolved them (the resolving action is embedded in the payload, and is usually delivered in the same webhook call), or `ignored` when a moderator dismissed them without taking an action. That means your platform can, for example, notify reporters about what happened to their report.

See the **Report Actions** example on the webhooks page for the full payload.


# User Moderation

Moderate the people on your platform, not just their content. Flag, ban or temporarily ban users, manually or automatically with rules, and keep your platform in sync through webhooks.

Lasso moderates users as well as content. Every user on your platform gets a moderation status in Lasso, and moderators and rules can act on the account as a whole: flag it for review, ban it permanently or temporarily, remove all of its content in one go, or give it a strike. This is useful when the problem is the person rather than a single post, for example spammers, scammers and repeat offenders.

{% hint style="info" %}
Lasso does not block the user on your platform itself. Every status change is recorded in Lasso and sent to your platform through webhooks, and your platform decides what a ban means (blocking sign-in, hiding the profile, and so on). Make sure you have an active webhook configured under **Settings → API & Webhooks**.
{% endhint %}

### What you can use it for

* Ban spammers and repeat offenders, permanently or for a set amount of time.
* Flag suspicious accounts so a moderator reviews them in a [review queue](/automation-and-review/review-queues).
* Act on users automatically with user rules, for example ban users who reach 3 strikes, or flag day-old accounts that already had content removed.
* Clean up after a bad actor by removing all of their content in a single action.
* Keep your own platform in sync with every decision through webhooks.

### User statuses

Every user has one of three statuses:

* **Allowed**: the user is in good standing. This is also the status a user ends up with when they first sync to Lasso and no rule decides otherwise.
* **Flagged**: the user needs a human decision. Flagging a user creates a review in your review queues (if there isn't one open already). Flagging is not a final decision, so it does not resolve open reports on the user.
* **Banned**: the user should no longer take part in your platform. A ban can be permanent or temporary, and can remove all of the user's content at the same time.

The action names can be customized for your workspace (for example **Suspend** or **Delete** instead of **Ban**); reach out to Lasso support if the defaults don't match your product's vocabulary. In the API and in webhook payloads the statuses are always `allowed`, `flagged` and `hidden`, whatever the display names in the dashboard.

### Where to find your users

The **Users** page in the sidebar lists every user synced to Lasso. You can search users, filter on status and tags, and see per user how much content they posted, how often they were reported and how many reports they filed themselves.

Click a user to open their profile. It shows everything Lasso knows about the account (email, signup method, IP address, country, strikes, tags and any custom attributes), an **Activity** timeline of every action ever taken on the user, and their content history. Next to the email address and email domain, a green check mark or a red block icon shows whether the domain is a known temporary (disposable) email provider; no icon means Lasso has no information about that domain yet. From the menu on the profile a moderator can also add a note, send a message to the user, or re-evaluate the rules with **Rerun rules on this user**.

When an account has used more than one IP address, a count of its IP addresses shows next to the current one. Click it to see every IP address the account has used, with when each one was first and last seen. Lasso records an address when an update for the user comes in with a different `ip_address`, so an account that keeps one address has no history. The first address Lasso knows for an account has no first-seen date. The history is deleted together with the user.

If you set a **User link** under **Settings → Moderation Preferences** (for example `https://example.com/users/{id}`), the profile menu also gets a **View user in ...** option that opens the user directly in your own app.

### Taking action on a user

Allow, flag and ban buttons are shown wherever a user appears: on the Users page, on the user's profile, in review queues and on user reports. Banning opens a confirmation dialog with:

1. **Policy category**: the policy the user violated. Optional by default; you can make it required per action under **Settings → Moderation Preferences**.
2. **Temporarily ban user**: ban for a limited time instead of permanently (see below).
3. **Remove all user's content**: also removes everything the user has posted, with its own policy category for the content.

Content removed this way stays removed: unbanning the user later, or a temporary ban expiring, does not restore it.

Once a default policy is configured, moderators can Shift+Click an action button to act without the confirmation dialog.

<figure><img src="https://720369-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEHJJyWYjMNTzFPyCUpfR%2Fuploads%2FyB0nlB8H8xGQUwoUN6Vv%2FScreenshot%202026-08-04%20at%2016.26.04.png?alt=media&#x26;token=c8fce2a0-319f-446f-99da-6da6feda00be" alt=""><figcaption></figcaption></figure>

### Temporary bans

{% hint style="info" %}
Temporary bans are available on the Pro and Enterprise plans.
{% endhint %}

Instead of banning permanently, tick **Temporarily ban user** in the ban dialog and choose a duration in hours, days or weeks (the default is 3 days; Lasso can configure a different default for your workspace). When the ban expires, Lasso automatically sets the user back to allowed and notifies your platform through the webhook, so the user regains access without a moderator having to remember.

Banning a user who is already banned replaces the current ban, for example through the [status API](https://api-reference.lassomoderation.com/). A permanent ban cancels a temporary ban's expiry, and a temporary ban on a permanently banned user makes them regain access when it ends. Sending a temporary ban of the same duration again changes nothing and does not restart it.

### Moderating users automatically with rules

Under **Rules → Users** you can automate user moderation. A user rule combines conditions about the user (account age, signup method, email domain, temporary email address, IP address, number of strikes, times reported, content volume and more, see the user condition types in custom moderation rules) with actions:

* Change the user's status (**Allow**, **Flag** or **Ban**), with a **Policy Category** and, for flag rules, a review **Priority**.
* When banning, optionally **Remove all content**, with its own policy category for the content.
* **Strike user**, to give the user a strike.
* Add **User Tags** to the user.

Rules are re-evaluated whenever something about the user changes: when the account is created or updated through the API, when the user posts content, when they are reported, when they receive a strike, and when a moderator chooses **Rerun rules on this user**. Rules run in the order shown on the page; an allow or ban stops the evaluation, while multiple flag rules can all fire. Rules never override a ban a moderator has set by hand.

### Reviewing flagged users

Flagged users land in your [review queues](/automation-and-review/review-queues) next to content reviews. Use routing rules with the **Review Type** condition to send user reviews to a dedicated queue or team.

Inside a review the moderator sees the full user profile, activity timeline and content history, and decides with **Allow** or **Ban** (flagging again is not offered inside a review, and banning from a review always asks for confirmation). The optional **Also apply to all user's content** checkbox removes everything the user posted along with the ban; it can be shown or hidden per moderator in the review settings.

User reviews are always handled by human moderators; the AI Moderator only reviews content.

### Syncing users through the API

Users are created and updated in Lasso through `POST /api/v1/user`; see the [API Reference](https://api-reference.lassomoderation.com/) for the full schema. A few semantics to be aware of:

* Send an update whenever the profile changes (name, email, profile image, IP address and so on); every update re-evaluates your user rules with the fresh data.
* Set the user's `type` (`normal`, `trusted`, `moderator`, `admin` or `testing`) so rules can treat your staff and trusted users differently from normal users. Workspaces with [DSA compliance](/compliance/dsa-compliance) enabled can also use `state_actor`, for accounts that file reports on behalf of an authority; see user reports for how trusted flagger and authority reports work.
* The `status` field is only honoured when the user is first created; later values are ignored.
* The user's project (`project_id` / `category_id`) cannot be changed after creation.
* Bulk imports through `POST /api/v1/import/users` skip rule evaluation, so imported users are not run through your rules.
* `GET /api/v1/user/{id}` returns the user's current status, including `temporarily_banned_until` and `strike_until` when applicable, useful when your backend needs to check a user's standing.

### User actions in webhooks

Every user status change is delivered to your webhook as a `ChangeStatus` action with `"type": "user"`. The payload contains your own user id and tags, the new and previous status, the policy that was applied, and a `temporary_ban` object (`until`, `period`, `duration`) when the ban is temporary. When a temporary ban expires, Lasso sends another `ChangeStatus` back to `allowed`. See webhooks for the full payloads and signature verification.

If your endpoint keeps failing after retries, Lasso reverts the status change, so Lasso and your platform don't drift apart.

### Configuring user moderation

Under **Settings → Moderation Preferences** you can control:

* **Can ban users** and **Can unban users**: which user actions moderators can take in this workspace. Disabling unbanning also disables temporary bans, since a temporary ban needs to be lifted again.
* **User Policy Defaults**: a default policy per action, and whether a policy is required to allow, flag or ban a user.
* **User link**: the URL template that opens a user's profile in your app.
* Strike settings: see strikes for the escalation ladder and automatic clearing.

### Related features

* Strikes: escalating, temporary penalties for repeat offences instead of an immediate ban.
* Tags: label users (for example `repeat-offender`) and use the tags in rule conditions and filters.
* Sending Messages: explain a decision to the user instead of acting silently.
* User Reports: let your community report users, and act on those reports manually or with rules.


# Strikes

Give users escalating, temporary penalties for repeat offences instead of a permanent ban.

Strikes let you discipline repeat offenders with escalating, temporary penalties instead of jumping straight to a permanent ban. Every strike a user receives lasts longer than the previous one, based on an escalation ladder that you configure. This gives users a chance to correct their behavior, while persistent offenders are penalized progressively harder.

{% hint style="info" %}
Strikes are available on the Pro and Enterprise plans.
{% endhint %}

### How strikes work

* You define an ordered list of strike tiers. The first strike a user receives uses the duration of the first tier, the second strike uses the second tier, and so on.
* A user can only have one active strike at a time.
* When a strike's duration passes, the strike automatically ends. It stays on the user's record and still counts towards the escalation ladder, so the user's next strike uses the next tier.
* The number of tiers is also the maximum number of strikes a user can receive. Once a user has run out of strikes, they cannot be striked again. At that point a moderator would typically ban the user.
* Lasso records the strike and notifies your platform through [webhooks](/developers/webhooks#strike-actions). Your platform decides what an active strike means for the user, for example a mute, restricted posting, or a temporary suspension.

### Configuring strikes

Strike settings can be found in **Settings → Moderation Preferences**, under **Strike Escalation**.

Each row in the escalation ladder is one tier, consisting of a duration and a period (minutes, hours, days, weeks or months). For example, a common setup is:

1. 1st strike: 1 day
2. 2nd strike: 1 week
3. 3rd strike: 1 month

Use **Add tier** to extend the ladder, and the trash icon to remove a tier. Changes apply to strikes given from that moment on; strikes that are already active keep their original duration.

#### Automatically clearing strikes

You can reward users for good behavior by automatically removing strikes from their record after a period of good standing. Enable **Automatically clear strikes** and set the period (days, weeks or months).

* The good standing period starts once the user's latest strike has ended, and restarts whenever the user receives a new strike.
* Strikes are cleared one at a time, starting with the most recent one. After a strike is cleared, the user needs to complete another full period of good standing before the next one is cleared.
* Strikes are never cleared while the user has an active strike.

For example, with a clearance period of 4 weeks: a user whose strike ended on March 1st and who stays out of trouble will have that strike removed around March 29th. If they had two strikes, the second one would be removed around April 26th.

### Giving a user a strike

#### Manually

Moderators can strike a user from the user's page or from a review queue using the strike button. Optionally, a policy can be selected to categorize the strike, which is useful for tracking actions taken under specific policy guidelines.

The strike button shows the duration of the user's next strike. It is disabled when the user already has an active strike, or when the user has reached the maximum number of strikes.

#### Automatically with rules

[Custom moderation rules](/automation-and-review/custom-moderation-rules) that target users or content can give strikes automatically via the **Strike User** action. There are two options:

* **Strike**: Adds a strike to the user. No action is taken if the user already has an active strike.
* **Add Strike**: Adds a strike even if the user already has an active strike. The current strike is ended and the next tier starts immediately, effectively extending the penalty. No action is taken if this would be beyond the user's last strike.

### Ending and removing strikes

* **End strike**: A moderator can end a user's active strike early. The strike still stays on the user's record and keeps counting towards the escalation ladder.
* **Remove strike**: Removes the most recent strike from the user's record entirely, lowering the user's strike count. If that strike is still active, it is ended first.
* Strikes that run their full duration end automatically, no moderator action is needed.

### Enforcing strikes on your platform

Lasso does not restrict the user in your product directly. To act on strikes, subscribe to [webhooks](/developers/webhooks#strike-actions) and handle the strike actions:

* `StrikeUser`: A strike was given. The payload includes the user's total strike `count`, the `duration` and `period` of the strike, and `until`, the ISO date when the strike ends.
* `EndStrikeUser`: The user's active strike ended, either automatically or by a moderator.
* `RemoveStrikeUser`: A strike was removed from the user's record. The payload includes the user's new strike `count`.

See the *Strike Actions* example on the [webhooks](/developers/webhooks#strike-actions) page for the full payload.


# Policy Categories

The reasons behind your moderation decisions. Set up policy categories once, then use them in moderation, rules, review queues, user reports and reporting.

A policy category is the reason attached to a moderation decision. When a moderator removes a post, when a rule flags a user, or when an AI Moderator hides a comment, the policy category records which of your guidelines was broken, for example "Harassment", "Spam" or "Underage Protection".

Policy categories are what turn a pile of moderation actions into something you can report on and automate against. They also travel outside Lasso: every category has an identifier that your platform receives in [webhooks](/developers/webhooks) and sends back through the API when your users file a report.

{% hint style="info" %}
The **Policies** page holds two related things. **Categories** are the short reasons described here. A **policy** is the written policy document your AI Moderators read. Categories can be added to a written policy so an AI Moderator can pick them, but they work on their own for human moderators and rules.
{% endhint %}

### What you can use them for

* Record why each decision was taken, so an action taken today is still explainable months later.
* Report on what your moderators actually deal with, in **Analytics → Reports** and **Analytics → Reviews**.
* Drive automation: a rule can apply a category, and routing rules can send everything flagged under one category to a specialist queue.
* Give your users a list of report reasons that stays in sync with the dashboard.
* Tell your platform *why* something was removed, through the `policy_id` field in webhooks.
* Meet compliance obligations: a category can be configured to file [DSA reports](/compliance/dsa-compliance/setup) automatically.

### Where to find them

Policy categories live under **Policies** in the sidebar, in the **Categories** section ("Manage your policy categories"). The table lists every category in your workspace, sorted alphabetically, with its name, its **Policy Category ID**, which types and actions it applies to, its hotkey, the number of rules using it and whether it is available in user reports.

### Creating a policy category

1. Go to **Policies** and click the button to add a category.
2. Fill in the **Policy Category Name** (placeholder: "E.g. Inappropriate Content"). Names are limited to 40 characters.
3. Click **Create new policy category**.

The settings dialog opens straight away so you can finish configuring it.

Two things worth knowing about names:

* The name determines the **Policy Category ID**, which is the identifier used everywhere outside the dashboard. "Inappropriate Content" becomes `inappropriate-content`. Renaming a category later does **not** change its ID, so your integration keeps working.
* Because the ID is derived from the name, two names that produce the same ID are the same category. Creating "Spam!" when "Spam" already exists reuses the existing category instead of creating a second one.

You may also see a category appear that nobody created: **Revert Action**. Lasso adds it the first time your platform rejects a status change through a webhook and Lasso reverts its own decision.

### Category settings

Click any row in the Categories table to open **Policy Category Settings**.

**Information**

* **Name** and **Description**. The description is guidance for whoever picks the category: "This information helps users understand when to select this policy category while submitting a user report." It is up to 400 characters, and it is returned by the user reports API, so it is worth writing properly for anything your users can pick.
* **User Reports**: "Can this policy category be selected when users are reporting content or other users?" Off by default. See [user reports](/automation-and-review/user-reports).

**Settings**

* **Hotkey**: "Use this hotkey to quickly apply this policy category to content." Pick a digit from `0` to `9` and pressing it in the action dialog selects that category. Each digit can only be used by one category, so up to ten categories can have one.
* **Policy can be selected by**: "Can this policy category be selected by moderators or rules?" Choose **Moderators & Rules**, **Only Moderators** or **Only Rules**. Use **Only Rules** for internal bookkeeping categories you do not want your team choosing by hand, and **Only Moderators** for judgement calls you never want automated.
* **Available for types**: "For which types can this be used as a policy category?" Either **All**, or one specific object type (content, users or subcategories, under whatever names your workspace uses). A user-only category like "Repeat Offender" will not clutter the dropdown when a moderator is acting on a post.
* **Enabled for actions**: "For which of the actions can this be used as a policy category?" A checkbox per action, using your workspace's own wording for allow, flag and remove, plus **Strikes** if [strikes](/managing-users/strikes) are enabled. Untick the ones that make no sense, for example an "Approved" category that should only ever be used when allowing content.

The dialog also has a collapsible **Rules with this policy category** section listing every rule that applies it, or "No rules tied to this policy". Click **Update** to save.

If your workspace has multiple languages enabled, the Name and Description fields appear once per language and are translated automatically when you create a category. You can correct any translation by hand.

If you have the Sift integration, a **Sift Decision** field lets you map the category onto a decision in Sift. Lasso forwards it when a user's status changes.

If messages on actions are enabled, a **Messages** section lets you pick the message templates the action dialog preselects for this category: one for the author or user and one for the reporters. See [sending messages](/moderator-toolkit/sending-messages#message-defaults-per-policy-category).

### Using categories while moderating

Wherever a moderator takes an action, the confirmation dialog has a **Policy category** field with the placeholder "Select policy category". Only categories that fit are offered: the object type has to match, the action has to be enabled on the category, the category has to be selectable by moderators, and, in a review queue, the category has to be allowed in that queue.

Under **Settings → Moderation preferences** you can make this smoother:

* Set a **default policy category** per action, so the right one is preselected. Once a default is configured, moderators can Shift+Click an action button to act without opening the dialog at all.
* Make a category **required** for a given action, so no decision is recorded without a reason.

Both are configured separately for content, users and subcategories. See [user moderation](/managing-users/user-moderation) for the user side.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-ddbea9e816fcd76cebdc01069a037a54fe0315a9%2FScreenshot%202026-08-14%20at%2009.58.12.png?alt=media" alt=""><figcaption></figcaption></figure>

### Categories in rules

Every rule action that changes a status can carry a policy category, chosen with the **Policy Category** field on the rule. That is how automated decisions end up as explainable as manual ones. A rule that bans a user and removes their content can set a separate **Policy Category Content** for the removals.

Rules count as automation rather than a moderator, so a category set to **Only Moderators** cannot be attached to a rule.

Categories are also something rules can match on. Routing rules for [review queues](/automation-and-review/review-queues) have a **Policy Category** condition ("Condition based on the policy category it got flagged for") with `is in` and `is not in` operators, so you can send everything flagged under your child safety category to a dedicated queue.

When you export and import [custom moderation rules](/automation-and-review/custom-moderation-rules) between workspaces, categories are carried by their ID. Any category the target workspace is missing is created automatically, and the import warns you that it did so.

### Categories in review queues

A review queue can be limited to a subset of categories. On the queue, untick **All policies are available in this queue** and pick the ones you want under **Policies available in this queue**. Moderators working that queue then only see those categories in their action dialog.

### Categories in user reports

Categories with **User Reports** ticked are the reasons your own users choose from when they report something. `GET /api/v1/user-reports` returns them (id, name, description and, with translations enabled, a `translations` object), and you send the id back as `policy_id` when submitting the report. Full details are on the [user reports](/automation-and-review/user-reports) page.

### Categories and AI Moderators

An AI Moderator decides using a written policy, and the sections of that policy are your policy categories. Add a category to a policy document, write the guidance for it there, and the AI Moderator can judge content against it and apply that category to its decisions, along with a short explanation of its reasoning.

A category that is not part of the written policy, or that is in it but has no text, is invisible to the AI Moderator. It still works normally for moderators and rules.

### Categories in the API and webhooks

There is no endpoint for creating or listing all your policy categories. They appear in the API in two places, and always by their **Policy Category ID**, never the display name:

* `POST /api/v1/user-reports` takes `report.policy_id`. An unknown value returns a `400` with `Policy not found`.
* `POST /api/v1/status` takes an optional `policy_id`, so a decision your own platform makes is recorded with the same reason your moderators would use. An unknown value here is ignored silently and the status change still goes through, so check your spelling.

On the way out, every action [webhook](/developers/webhooks) that has a category attached carries:

| Field                | Description                                                                                                  |
| -------------------- | ------------------------------------------------------------------------------------------------------------ |
| `policy_id`          | The Policy Category ID, for example `inappropriate-content`.                                                 |
| `policy_name`        | The display name at the time of the action, for example `Inappropriate Content`.                             |
| `policy_information` | Optional extra reasoning, filled in by AI Moderators and by decisions your platform reverts through the API. |

Do not confuse `policy_id` with the `category_id` and `subcategory_id` fields inside the `content` object of the same payload. Those describe where the content lives on your platform, not why it was actioned. The full payload is documented under [webhooks](/developers/webhooks).

### Reporting on categories

**Analytics → Reports** has **Reports by Policy**, and **Analytics → Reviews** has **Reviews by Policy**, both broken down over time and as a total for the period. Decisions taken without a category are grouped as "No policy", and decisions taken under a category that has since been deleted show as "Deleted Policy".

### Renaming and deleting

Renaming is safe. The Policy Category ID stays the same, past decisions keep pointing at the category, and your integration does not need to change.

Deleting is restricted. The delete button is disabled, with the tooltip "Cannot delete policy category that is used by a rule or in a policy", as long as any rule uses the category or it is part of a written policy. Remove those references first.

When you do delete a category:

* It disappears from every dropdown, but past actions, reports and compliance reports keep their reason. They show up as "Deleted Policy" in analytics.
* Creating a category with the same name again restores the original one, hotkey, settings and history included.

### Choosing your categories

Categories work best when they are few and clearly separated, so a moderator picking one under time pressure does not have to think about it. A set of eight to twelve is typical. Most platforms end up with something close to:

* Harassment and Discrimination
* Hate Speech and Extremism
* Obscenity and Profanity
* Nudity and Sexual Content
* Self-Harm or Threats
* Personal and Sensitive Information
* Fraud and Scams
* Spam
* Underage Protection

Add whatever is specific to your product (cheating and exploits for a game, prohibited goods for a marketplace, misrepresentation for a dating app), plus a couple of internal categories that are not really violations, such as "User Feedback" or a rules-only category for automated cleanup.


# Custom Attributes

Learn how to set up and use Custom Attributes to enrich your content, user profiles, or subcategories with tailored data, enabling enhanced insights and customizable rules.

### **What are Custom Attributes?**

Custom Attributes allow you to enrich your content, user profiles, or subcategories with additional, tailored data points. This feature provides flexibility in tagging and categorizing your data to fit your specific needs, enabling deeper insights and more granular control.

### **Benefits of Custom Attributes**

* **Enhanced Data Enrichment**: Add context-specific information to your content, users, or subcategories.
* **Streamlined Workflows**: Automatically integrate custom attributes into your dashboard, making it easier to visualize and moderate your content/users.
* **Customizable Rules**: Use custom attributes in your moderation rules (found under the "custom" section) for more precise actions and automation.

### Examples of Custom Attributes

* **Verified User**: Marks whether a user has been verified, which can be useful for prioritizing trusted users.
* **User Has Credit Card on File**: Identifies users with linked payment methods for transaction-related rules.
* **# of Connections**: Tracks the number of user connections to target highly networked individuals.
* **Age**: Captures user age for applying age-specific content moderation or analysis.
* **Location**: Stores geographical data for region-based rules or personalized content delivery.

### How to Set Up Custom Attributes

Follow these steps to set up and use Custom Attributes in your dashboard:

#### **Step 1: Add attributes through the API**

1. Add the attributes you would like to use to your API calls to Lasso. An example of adding an attribute to your content can be found [here](https://api-reference.lassomoderation.com/operation/operation-post-content#operation-post-content-body-application-json-metadata).

#### **Step 2: Navigate to the Settings**

1. Log in to your dashboard.
2. Go to **Settings → Tags & Attributes**.

#### **Step 3: Add a Custom Attribute**

1. Scroll to the **Custom Attribute** section.
2. Select your custom attribute in the dropdown (The system will check the last 1,000 items from the previous day to identify which attributes are available)
3. Verify the following details:
   * **Name**: Enter a clear, descriptive name for the attribute.
   * **Type**: Select the appropriate data type (text, number, boolean, enum, user ID, content ID).

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-3ad4fec656fbd5ff940932274662b513ae08a635%2FScreenshot%202024-12-11%20at%2017.51.35.png?alt=media" alt=""><figcaption><p>Example of creating Custom Content Attributes</p></figcaption></figure>

**Step 4: Save and Apply**

1. Save the attribute. Once saved:
   * The custom attribute will be displayed automatically within the dashboard.
   * You can view and manage this data alongside existing content or profiles.

#### **Step 5: Use Custom Attributes in Rules**

1. Go to the **Rules** section in your dashboard.
2. Under the "custom" category, you can incorporate your custom attribute into moderation or workflow rules for more precise automation.


# Tags

Label users and content with your own tags, then use them to filter, build rule conditions and automate moderation workflows.

Tags are descriptive labels you attach to users and content to highlight specific characteristics, themes or behaviors, for example "Suspicious", "VIP" or "Repeat Offender". You define your own set of tags, and moderators, rules and your own systems can then apply them anywhere. Tags power filtering, rule conditions and segmentation across the dashboard.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-b98e7620340479d366875181e130d44af6ad9e42%2Fimage-1785312493024.png?alt=media" alt=""><figcaption></figcaption></figure>

### What you can use them for

* Segment users, for example marking VIPs, potential spammers or accounts under observation.
* Feed follow-up automation: [custom moderation rules](/automation-and-review/custom-moderation-rules) can check tags in their conditions, so one rule can tag a user and another can act on that tag later.
* Route flagged items to the right team by using tags in routing rules for [review queues](/automation-and-review/review-queues).
* Filter the users and content pages to quickly find everything with (or without) a certain tag.
* Sync context from your own platform, for example tagging your premium users through the API.

### Creating tags

Tags are created by admins under **Settings → Tags & Attributes**, in the **Tags** section. Pick a color, type a name (e.g. "Suspicious") and click **Create tag**.

Each tag has:

* A **name**, shown everywhere in the dashboard. Names are unique per workspace and fixed once created.
* An **identifier**, generated automatically from the name ("Repeat Offender" becomes `repeat-offender`). This is the value used in the API and in webhook payloads.
* A **color**, which you can change at any time by clicking the tag's color dot.

Deleting a tag removes it permanently, including from any rules that use it. This cannot be undone.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-d7d1aa0bd0af933b4094368eab76ce7e37d092ce%2Fimage-1785312500143%20(1).png?alt=media" alt=""><figcaption></figcaption></figure>

### Tagging users and content

Moderators can tag from a few places:

* **User page**: the analysis panel on a user's page has a **Tags** row. Click **+** to add one of your tags, click an existing tag to remove it.
* **Content**: the analysis panel on a piece of content has the same **Tags** row.
* **Review queues**: while reviewing, use the tag button in the action bar (or press **T**) to tag without leaving the queue. The tag button can be shown or hidden per moderator via the review settings ("Show tag actions").

Every tag change is recorded in the activity timeline and the audit logs, including whether it was done by a moderator or a rule.

### Tagging automatically with rules

[Custom moderation rules](/automation-and-review/custom-moderation-rules) can both apply tags and react to them:

* **As an action**: content and user rules can add tags when they match, via **Add tags to user** and **Add tags to content**. For example, tag users as "Spammer" when they trip your spam rule. Rules only add tags, they never remove them.
* **As a condition**: the **User tags** and **Content tags** conditions check whether the user or content has any of the selected tags (or none of them). This lets rules build on each other: one rule tags, another escalates.
* **In routing rules**: tag conditions are also available when routing reviews to [review queues](/automation-and-review/review-queues), so tagged items can go to a dedicated queue.

Tags applied by a rule are attributed to that rule in the timeline and in webhooks.

### Filtering by tags

* **Users page**: filter with **Filter on tags** and **Exclude tags**. Including multiple tags shows users that have all of them; excluded tags hide any user carrying one. The users table also has a tags column.
* **Content page**: add the **Tags** filter in the filter bar to only show content with the selected tags.

### Setting tags through the API

User tags can be set from your own platform by including a `tags` array of tag identifiers on the user object, in user create, user sync (including the user embedded in content sync) and bulk user import:

```json
{
  "id": "user-123",
  "name": "Ada",
  "tags": ["premium", "beta-tester"]
}
```

A few things to keep in mind:

* Use the tag **identifier** (e.g. `repeat-offender`), not the display name. Identifiers that don't match an existing tag are ignored, the API never creates new tags.
* The array **replaces** the user's full tag set. Send the complete list each time, an empty array clears all tags, and omitting the field leaves the current tags untouched.
* A user can have at most 100 tags.

Content tags cannot be set through the API. Content is tagged by moderators in the dashboard or automatically by rules.

### Tags in webhooks

Tag changes are sent to your platform as `AddTags` and `RemoveTags` actions through [webhooks](/developers/webhooks), so your own systems can react to them. In addition, every content and user webhook payload includes the object's current tags under `content.tags` and `user.tags`, whatever the action type.

See the *Tag Actions* example on the [webhooks](/developers/webhooks) page for the full payload.

### Tags vs custom attributes

Tags and [custom attributes](/moderator-toolkit/custom-attributes) live on the same settings page but serve different purposes. A tag is a simple label that is either present or not, defined in the dashboard and applied by moderators, rules or the API. A custom attribute is a typed key-value data point (string, number, boolean, and so on) that you send along with your API payloads to enrich content and users with structured data. Use tags for moderation workflow labels, use custom attributes for structured facts about your data.


# Sending Messages

Communicate with your platform's users directly from Lasso, to explain decisions, share guidelines or reply to content.

Send Message lets moderators communicate directly with the users of your platform from within Lasso. Instead of silently removing content or banning a user, a moderator can explain a decision, ask for clarification, or point a user to your community guidelines. Messages are delivered on your own platform, for example as a direct message to the user or as a reply under a piece of content.

{% hint style="info" %}
Lasso does not deliver the message to the user itself. The message is sent to your platform through [webhooks](/developers/webhooks#send-message), and your platform decides how to deliver it (as a DM, a reply, an email, and so on). Make sure you have an active webhook configured under **Settings → API & Webhooks** and that your endpoint handles the `SendMessage` action.
{% endhint %}

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-926474b779fc7fde2b833cecb946c052091ae643%2Fmessage-template-edit-dialog.png?alt=media" alt=""><figcaption></figcaption></figure>

### What you can use it for

* Explain why content was removed or a user was sanctioned.
* Send a friendly reminder about your community guidelines before taking harder action.
* Ask a user for more context on a report or a piece of content.
* Post an official moderator reply under a piece of content.

### Where to find it

Send Message is available anywhere you see the **⋯** menu on a user or a piece of content:

* **User page**: open a user and click the **⋯** menu next to their name, then choose **Send Message**. The message is sent to the user directly.
* **Content**: open a piece of content (from the content explorer or a user's content list) and choose **Send Message** from the content's **⋯** menu. The message is sent as a reply to that piece of content.
* **Review queues**: while reviewing, both the content card and the user panel have the same **⋯** menu, so you can message the user without leaving the queue.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-17686fa5744673f8083dd3cdb0d0e9f978aa7df0%2Fuser-menu-send-message.png?alt=media" alt=""><figcaption></figcaption></figure>

### Sending a message

1. Open the **⋯** menu on the user or content and choose **Send Message**.
2. Optionally pick a saved template from **Template (optional)**. The template's title and text are loaded into the title and message fields, where you can still edit them before sending.
3. Optionally fill in **Title (optional)**. The title is sent along with the message, so your platform can use it as a subject line, for example when it delivers messages as email.
4. Write or adjust your message. You can use variables to personalize it:
   * `{{user_name}}` is replaced with the recipient's name.
   * `{{moderator_name}}` is replaced with your name.
5. Optionally click **Insert snippet** above the message field to add a saved piece of text, such as a link to your appeal form. Search for the snippet by title and click it to insert its text at your cursor.
6. Click **Send message**.

The variables work in both the title and the message. They are filled in when the message is sent, so the user receives the final text, for example "Hi Ada, please keep it friendly. Grace, the moderation team".

Every sent message is recorded on the user's or content's activity timeline with a **Messaged** badge, and in the audit logs, so your team can always see who sent what and when.

### Message templates

If your moderators send the same kinds of messages often, admins can create reusable message templates under **Settings → Moderation Preferences → Message Templates**.

* Templates are shared with the whole workspace.
* Each template has a **Name** (shown in the template picker), an optional **Title**, and a **Message**.
* Templates can contain the `{{user_name}}` and `{{moderator_name}}` variables, in both the title and the message.
* Moderators can always edit the text after picking a template, so templates work well as a starting point rather than a fixed script.
* Editing or deleting a template does not affect messages that have already been sent.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-ac0c97625cd5100187d9f519ef07a435a39b22ad%2Fmessage-templates-settings.png?alt=media" alt=""><figcaption></figcaption></figure>

### Message snippets

Snippets are short pieces of text that moderators insert into a message while writing it, like a link to your appeal form, a rules reminder, or a standard sign-off. Where a template sets up the whole message, a snippet adds one reusable part to it, so you can combine several snippets in the same message.

Create snippets under **Settings → Moderation Preferences → Message Snippets**.

* Snippets are shared with the whole workspace.
* Each snippet has a **Title** (what moderators search for) and a **Text** (what gets inserted).
* Snippets can contain the `{{user_name}}` and `{{moderator_name}}` variables.
* The **Insert snippet** link only shows in the message dialog once at least one snippet exists.
* A snippet is inserted where the cursor is in the message field, or replaces the selected text. Picking a template afterwards replaces the whole message, including any inserted snippets.
* Editing or deleting a snippet does not affect messages that have already been sent.

### Messaging with a moderation action

When you remove or allow content or a user from the action dialog, a **Notify** section at the bottom lets you send messages together with the action, without opening Send Message afterwards:

* **Message the author** (or **Message the user** when you action a user) sends a direct message to the person the action is about.
* **Message N reporters** appears when the reports you are marking as handled have reporters. Every reporter gets one message, even when they reported the same thing several times, and `{{user_name}}` is filled in with each reporter's name. Unticking a report in the report selection above also removes its reporter from the list, and under **Edit** each reporter in the **To** list has a tick box, so you can leave out someone who should not hear back, for example a reporter who filed under the wrong category.

Both rows are preselected from the policy category's message defaults (see below) and show the template that will be used. Click **Edit** to see the recipients, pick another template, insert snippets or adjust the title and text for this one action, or untick a row to send nothing.

The messages are sent as `SendMessage` actions in the same webhook call as the action itself and the `HandleReports` action, so your platform can deliver them together. On the activity timeline and in the audit logs they are shown as messages to the author or to the reporter, with the reports they answer.

{% hint style="info" %}
Messages on actions are enabled per workspace by the Lasso team, on top of messaging itself. The Notify section only shows for allow and remove actions taken from the action dialog. Actions taken by rules, AI moderators, hotkeys or the API send the policy category's default messages as they are, the same way DSA reports are filed automatically, so only set defaults on a category when every action with it should notify.
{% endhint %}

### Message defaults per policy category

Admins can pick the templates that the action dialog preselects per policy category under **Policies → Categories**, in the **Messages** section of a category: one template for the author or user and one for the reporters, or **No message**. A category without defaults still shows the Notify rows, but unticked and without a template.

This is what makes the messages automatic in the common case: a moderator who removes a post under "Animals" gets the "Removed: animal sales" message to the author and the "Report upheld: animal sales" message to the reporters preselected, and only has to confirm the action. The same templates are preselected when content is allowed under that category, so keep categories used for allowing separate from categories used for removing.

### Delivering messages on your platform

When a moderator sends a message, Lasso sends a `SendMessage` action to your webhook endpoint. The payload contains the final message text and, if set, the title (variables already resolved), the moderator who sent it, and either the user to message or the content to reply to. Messages sent with a moderation action also carry the id of the action they accompany and, for reporters, the reports they answer (with your own report id when you sent one). Your endpoint is responsible for delivering the message in your product.

If your webhook rejects the delivery, the failure is recorded on the action in the activity timeline, so moderators can see the message was not delivered.

See the `SendMessage` example on the [webhooks](/developers/webhooks#send-message) page for the full payload and delivery details.


# Roles & Permissions

Control what each member of your moderation team can see and do with the Admin, Moderator and Category Moderator roles.

Every member of your team has a role. The role decides which parts of the dashboard they can open and which changes they can make. Lasso has three roles: **Admin**, **Moderator** and **Category Moderator**.

The roles build on each other. A Moderator can do everything a Category Moderator can, and an Admin can do everything a Moderator can.

{% hint style="info" %}
Roles are available on the Pro and Enterprise plans. On other plans every team member is an Admin.
{% endhint %}

### The three roles

**Admin** owns the workspace. Admins configure Lasso (API keys, webhooks, integrations, moderation preferences), manage the team, edit policies, set up review queues and have access to analytics and data exports. Give this role to the people responsible for your moderation setup.

**Moderator** handles day-to-day moderation across your whole platform. Moderators review content and users in every category and every review queue, handle user reports, and maintain the automation that supports them: rules and lists. They can read your policies but not change them, and they have no access to settings, the team or analytics.

**Category Moderator** is a moderator who only sees part of your platform. They work on the content, review queues and content reports of the categories you assign to them, and nothing else. This suits community volunteers, outsourced teams or specialists who should only moderate one area, for example a single forum, language or game.

### What each role can do

|                                                           | Category Moderator                             | Moderator   | Admin      |
| --------------------------------------------------------- | ---------------------------------------------- | ----------- | ---------- |
| Categories they can see                                   | Assigned categories only                       | All         | All        |
| Review queues they can work in                            | Queues shared with them or with all moderators | All         | All        |
| Review and act on content                                 | ✅                                              | ✅           | ✅          |
| Act on users (flag, ban, strike, message, tag, add notes) | ✅                                              | ✅           | ✅          |
| Handle content reports                                    | ✅                                              | ✅           | ✅          |
| Users page                                                | Only when users are tied to categories         | ✅           | ✅          |
| User reviews and user reports                             | ❌                                              | ✅           | ✅          |
| Create and edit rules                                     | ❌                                              | ✅           | ✅          |
| View lists and edit their entries                         | ❌                                              | ✅           | ✅          |
| Download or delete a list                                 | ❌                                              | ❌           | ✅          |
| View policies                                             | ❌                                              | ✅           | ✅          |
| Edit policies                                             | ❌                                              | ❌           | ✅          |
| Create and edit review queues                             | ❌                                              | ❌           | ✅          |
| Audit logs                                                | Own actions                                    | Own actions | Whole team |
| See users' IP addresses                                   | ❌                                              | ❌           | ✅          |
| Analytics                                                 | ❌                                              | ❌           | ✅          |
| [Research](/automation-and-review/research)               | ❌                                              | ❌           | ✅          |
| Settings, compliance and data exports                     | ❌                                              | ❌           | ✅          |
| Manage the team and AI Moderators                         | ❌                                              | ❌           | ✅          |

A few of these deserve a closer look:

* **Audit logs.** Moderators and Category Moderators only see the actions they took themselves. Admins see the actions of the whole team, rules and AI Moderators, can filter by moderator, and can see whether the webhook for an action was delivered.
* **IP addresses.** Only Admins see a user's IP addresses. All roles can still open the list of other users on the same IP from a user's page, which is what moderators need to spot duplicate accounts.
* **Users page.** Category Moderators normally have no Users page. The exception is a workspace where users are tied to categories, which Lasso enables on request. There, Category Moderators get the Users page and see only the users of their assigned categories.
* **User actions.** Which user actions are available at all (banning, unbanning) is set for the whole workspace under **Settings → Moderation Preferences**, see [user moderation](/managing-users/user-moderation). Roles do not change this.

{% hint style="info" %}
Need a different split, for example Moderators who can see analytics? Contact <support@lassomoderation.com>. Individual permissions can be moved to another role for your workspace.
{% endhint %}

### Assigning a role

Roles are managed by Admins on the **Team** page.

1. Open **Team** and click **Invite moderator**.
2. Fill in **Name** and **Email**, and pick a **Role**.
3. Send the invite. The new team member appears in the table as **Invited** until they accept.

To change a role later, use the dropdown in the **Role** column. You can only hand out your own role or a lower one, and you cannot change your own role.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-ef08dcacb76b98a4a8cc58834a0ab99a7abe955e%2Froles-team-table.png?alt=media" alt=""><figcaption></figcaption></figure>

### Choosing categories for a Category Moderator

The **Category access** column on the **Team** page shows what each team member can see. Admins and Moderators always show **All categories**. For a Category Moderator, click the cell, search for the categories they should moderate and select them.

A Category Moderator without any categories sees no content, so assign at least one right after inviting them. Changes apply immediately.

Category access also limits review queues. A Category Moderator only works in [review queues](/automation-and-review/review-queues) that are shared with them or with all moderators, and within those queues only sees reviews from their categories.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-b9e0568d79219f9ba9392eafc7954090d4eafe17%2Froles-category-access.png?alt=media" alt=""><figcaption></figcaption></figure>

### Roles for AI Moderators

AI Moderators appear on the **Team** page too and have a role and category access like any other team member. Give an AI Moderator the Category Moderator role to have it moderate only part of your platform.

### Related pages

* [Review queues](/automation-and-review/review-queues): choose which moderators work in which queue.
* [Lists](/automation-and-review/lists) and [user reports](/automation-and-review/user-reports).
* [Key concepts](/getting-started/key-concepts): how categories, the team and moderation fit together.


# Webhooks

Guide on how to implement Lasso webhooks for real-time updates

Webhooks allow you to receive real-time notifications about actions taken on the Lasso Moderation platform. By configuring a webhook URL, Lasso Moderation can automatically send a JSON payload to your server whenever a particular event occurs on the platform. Webhooks can be configured under [settings](https://app.lassomoderation.com/settings) in the dashboard.

### Webhook

To set up a webhook, you need to provide a valid URL that can receive HTTPS POST requests. When an event is triggered on the platform, Lasso Moderation will send a JSON payload to the specified URL. This payload contains information about the event that occurred, including any relevant data that you may need to take action.

Multiple actions can be sent at once in one HTTP POST request, this is done in case of bulk operation where multiple actions are taken at once. The actions are ordered by when they are taken.

Here are example responses from a webhook that is triggered based on different actions:

{% tabs %}
{% tab title="Status Actions" %}

```json
{
  "actions": [
    {
      "action_type": "ChangeStatus",
      "action_id": "clf10kbhp0012sauvpxlqsb6h", // The Lasso ID of the action
      "action_created_at": "2023-03-11T15:02:13.178Z", // ISO date of when the action was taken
      "type": "user", // The type of object the action is taken on, "user", "content" or "subcategory"
      "status": "hidden", // The status of the object, this can be "allowed", "flagged" or "hidden"
      "previous_status": "flagged", // The status of the object before the action was taken, this can be `null` (when there was not previous status), "allowed", "flagged" or "hidden"
      "actor_id": "cldk3z9ze0004saiy542wfbck", // (optional) The Lasso ID of the moderator who triggered this action. Either actor_id or rule_id is set.
      "rule_id": "clyhppfjy00574ohv9uigmnia", // (optional) The Lasso ID of the rule which triggered this action. Either actor_id or rule_id is set.
      // (optional) user is only sent when type === "user"
      "user": {
        "id": "cldk3z9ze0004saiy542wfbck", // The product's ID of the user
        "tags": ["potential-spammer"] // Custom tags attached to the user
      },      
      // (optional) content is only sent when type === "content"
      "content": {
        "id": "cldk3zadj019wsaiyudwdtxtr", // The product's ID of the content
        "created_at": "2023-03-11T15:02:13.178Z", // ISO date of when the content was created
        "user_id": "cldk3z9ze0004saiy542wfbck", // The ID of the user who sent the content
        "subcategory_id": "cldvl1z2l002xsaykyoje94od", // The ID of the subcategory the content is part of
        "category_id": "cldq51mh005fjsaw2y0fx3t5c", // The ID of the category the content is part of
        "tags": ["explicit-content"] // Custom tags attached to the content
      },      
      // (optional) subcategory is only sent when type === "subcategory"
      "subcategory": {
        "id": "cldvl1z2l002xsaykyoje94od" // The product's ID of the subcategory
      },
      // (optional) when the user is temporarily banned
      "temporary_ban": {
        "until": "2023-12-18T17:42:38.558Z",
        "period": "week",
        "duration": 1
      },      
      "policy_id": "inappropriate-content", // (optional) The ID of the policy that was used when taking this action
      "policy_name": "Inappropriate Content", // (optional) The name of the policy that was used when taking this action
      "policy_information": "This content contains XXX" // (optional) Extra information that was given when the action was taken
    }
  ]
}
```

{% endtab %}

{% tab title="Tag Actions" %}

```json
{
  "actions": [
    {
      "action_type": "AddTags", // Or "RemoveTags"
      "action_id": "clf10kbhp0012sauvpxlqsb6h", // The Lasso ID of the action
      "action_created_at": "2023-03-11T15:02:13.178Z", // ISO date of when the action was taken
      "type": "user", // The type of object the tag was added to, "user" or "content"
      "tags_added": ["tags-slug1","tag-slug2"], // (optional, only when action type is "AddTags"
      "tags_removed": ["tags-slug1","tag-slug2"], // (optional, only when action type is "RemoveTags"
      "actor_id": "cldk3z9ze0004saiy542wfbck", // (optional) The Lasso ID of the moderator who triggered this action. Either actor_id or rule_id is set.
      "rule_id": "clyhppfjy00574ohv9uigmnia", // (optional) The Lasso ID of the rule which triggered this action. Either actor_id or rule_id is set.
      // (optional) user is only sent when type === "user"
      "user": {
        "id": "cldk3z9ze0004saiy542wfbck", // The product's ID of the user
        "tags": ["potential-spammer"] // Custom tags attached to the user
      },      
      // (optional) content is only sent when type === "content"
      "content": {
        "id": "cldk3zadj019wsaiyudwdtxtr", // The product's ID of the content
        "created_at": "2023-03-11T15:02:13.178Z", // ISO date of when the content was created
        "user_id": "cldk3z9ze0004saiy542wfbck", // The ID of the user who sent the content
        "subcategory_id": "cldvl1z2l002xsaykyoje94od", // The ID of the subcategory the content is part of
        "category_id": "cldq51mh005fjsaw2y0fx3t5c", // The ID of the category the content is part of
        "tags": ["explicit-content"] // Custom tags attached to the content
      }
    }
  ]
}
```

{% endtab %}

{% tab title="List Actions" %}

```json
{
  "actions": [
    {
      "action_type": "UpdateList",
      "action_id": "clf10kbhp0012sauvpxlqsb6h", // The Lasso ID of the action
      "action_created_at": "2023-03-11T15:02:13.178Z", // ISO date of when the action was taken
      "actor_id": "cldk3z9ze0004saiy542wfbck", 
      "list": {
        "id": "cln4sal9000d6saf8m5g12ifp",
        "name": "banned words",
        // (optionally in case items are added to the list)
        "words_added": [
          "F you!"
        ],
        // (optionally in case items are removed from list)
        "words_removed": [
          "Hello!"
        ]
      }
    }
  ]
}
```

{% endtab %}

{% tab title="Strike Actions" %}

```json
{
  "actions": [
    {
      "action_type": "StrikeUser", // or "EndStrikeUser", "RemoveStrikeUser"
      "action_id": "clf10kbhp0012sauvpxlqsb6h", // The Lasso ID of the action
      "action_created_at": "2023-03-11T15:02:13.178Z", // ISO date of when the action was taken
      "type": "user",
      "actor_id": "cldk3z9ze0004saiy542wfbck", // (optional) The Lasso ID of the moderator who triggered this action. Either actor_id or rule_id is set.
      "rule_id": "clyhppfjy00574ohv9uigmnia", // (optional) The Lasso ID of the rule which triggered this action. Either actor_id or rule_id is set.
      "user": {
        "id": "cldk3z9ze0004saiy542wfbck", // The product's ID of the user
        "tags": ["potential-spammer"] // Custom tags attached to the user
      },
      // (optional) only on "StrikeUser" or "RemoveStrikeUser"
      "strike": {
        "count": 2, // The total number of strikes the user has
        // (optional) only on "StrikeUser"
        "duration": 3, // The number of periods the user will be given a strike, in this case 3 hours
        // (optional) only on "StrikeUser"
        "period": "hour", // "minute", "hour", "day", "week" or "month"
        // (optional) only on "StrikeUser"
        "until": "2023-03-11T18:02:13.178Z" // ISO date of when the strike ends
      }
    }
  ]
}
```

{% endtab %}

{% tab title="Send Message" %}
The `SendMessage` action is sent when a moderator sends a message to a user, or posts a reply to a piece of content, from the Lasso platform. Your webhook endpoint is responsible for actually delivering that message on your product (e.g. as a DM to the user or a reply under the content).

Messages are always initiated by a moderator, so `actor_id` is set (`rule_id` is never used for this action).

The `message` field contains the **final text to deliver** — any `{{user_name}}` / `{{moderator_name}}` Lasso has already substituted template variables, so you can deliver it verbatim.

The optional `title` field is a subject line the moderator added to the message, for example for platforms that deliver messages as email. It has its variables resolved the same way, and is left out of the payload when the moderator did not set a title.

Messages sent from the action dialog's **Notify** section (see [sending messages](/moderator-toolkit/sending-messages#messaging-with-a-moderation-action)) arrive in the same webhook call as the action they belong to and carry `triggered_by_action_id` (the `action_id` of that action, usually another entry in the same call). Messages to a reporter also carry `reports`, the reports this person filed: your own `id` when you sent one with the report, and always the `lasso_report_id`, matching the `reports` of the `HandleReports` action. A message without `reports` goes to the person the action is about. Each reporter receives one message, however many reports they filed. Messages sent from the Send Message menu do not have these fields.

```json
{
  "actions": [
    {
      "action_type": "SendMessage",
      "action_id": "clf10kbhp0012sauvpxlqsb6h", // The Lasso ID of the action
      "action_created_at": "2023-03-11T15:02:13.178Z", // ISO date of when the action was taken
      "type": "user", // The type of object the message is sent to, "user" or "content"
      "title": "About your recent post", // (optional) Subject line for the message, only sent when the moderator set one
      "message": "Hi Ada, please follow the community guidelines.", // The message to deliver, with variables already resolved
      "actor_id": "cldk3z9ze0004saiy542wfbck", // The Lasso ID of the moderator who sent the message
      "triggered_by_action_id": "clf10kbhp0011sauvpxlqsb6g", // (optional) The Lasso ID of the action the message was sent with
      "reports": [{ "id": "ticket-4711", "lasso_report_id": "clf10k9xw0008sauvq2xkpd3n" }], // (optional) The reports this reporter filed, only for messages to a reporter; id only when you sent one with the report
      // (optional) user is only sent when type === "user"
      "user": {
        "id": "cldk3z9ze0004saiy542wfbck", // The product's ID of the user to send the message to
        "tags": ["potential-spammer"] // Custom tags attached to the user
      },
      // (optional) content is only sent when type === "content" (a reply to that content)
      "content": {
        "id": "cldk3zadj019wsaiyudwdtxtr", // The product's ID of the content being replied to
        "created_at": "2023-03-11T15:02:13.178Z", // ISO date of when the content was created
        "user_id": "cldk3z9ze0004saiy542wfbck", // The ID of the user who sent the content (the reply recipient)
        "subcategory_id": "cldvl1z2l002xsaykyoje94od", // The ID of the subcategory the content is part of
        "category_id": "cldq51mh005fjsaw2y0fx3t5c", // The ID of the category the content is part of
        "tags": ["explicit-content"] // Custom tags attached to the content
      }
    }
  ]
}
```

{% endtab %}

{% tab title="Report Actions" %}
The `HandleReports` action is sent when user reports are handled. The `resolution` field tells you how:

* `actioned`: a moderation action resolved the reports, for example the reported content was removed. The `handled_by_action` object carries a snapshot of that action, which is usually delivered as its own entry in the same webhook call.
* `ignored`: a moderator dismissed the reports without taking an action. `handled_by_action` is not sent.

The `reports` array lists the handled reports. It contains at most the first 100 reports; `report_count` always carries the true total.

`HandleReports` actions are never reverted. If your endpoint rejects the call, the reports stay handled in Lasso and the failure is recorded on the action.

```json
{
  "actions": [
    {
      "action_type": "HandleReports",
      "action_id": "clf10kbhp0013sauvpxlqsb7j", // The Lasso ID of the action
      "action_created_at": "2023-03-11T15:02:13.178Z", // ISO date of when the reports were handled
      "type": "content", // The type of object the reports were about, "user" or "content"
      "resolution": "actioned", // "actioned" when a moderation action resolved the reports, "ignored" when a moderator dismissed them
      "report_count": 2, // The total number of reports handled by this action
      "reports": [
        {
          "id": "ticket-4711", // (optional) Your own id of the report, only when you sent one with the report
          "lasso_report_id": "clf10k9xw0008sauvq2xkpd3n", // The Lasso ID of the report
          "created_at": "2023-03-11T14:55:02.178Z", // ISO date of when the report was made
          "policy_id": "harassment", // The ID of the policy category the report was filed under
          "policy_name": "Harassment", // The name of the policy category the report was filed under
          "reporter_id": "cldk3z9ze0004saiy542wfbck", // The product's ID of the user who made the report, null when the reporter no longer exists
          "reporter_type": "normal", // The type of the reporting user: "normal", "trusted", "moderator", "admin", "testing" or "state_actor"
          "reporter_entity": "Acme Consumer Protection", // (optional) The organisation the report was filed on behalf of, when it was sent with the report
          "extra_info": "Keeps calling me names in this thread" // (optional) The reason the reporter gave with the report
        }
      ],
      // (optional) only when resolution === "actioned": a snapshot of the action that resolved the reports
      "handled_by_action": {
        "id": "clf10kbhp0012sauvpxlqsb6h", // The Lasso ID of the resolving action
        "type": "ChangeStatus",
        "created_at": "2023-03-11T15:02:13.178Z", // ISO date of when the resolving action was taken
        "status": "hidden", // The status the resolving action set
        "previous_status": "allowed", // The status before the resolving action, can be null
        // (optional) when the resolving action was a temporary ban
        "temporary_ban": {
          "until": "2023-03-18T15:02:13.178Z",
          "period": "week",
          "duration": 1
        }
      },
      "actor_id": "cldk3z9ze0004saiy542wfbck", // (optional) The Lasso ID of the moderator who handled the reports. Either actor_id or rule_id is set.
      "rule_id": "clyhppfjy00574ohv9uigmnia", // (optional) The Lasso ID of the rule whose action resolved the reports. Either actor_id or rule_id is set.
      // (optional) user is only sent when type === "user"
      "user": {
        "id": "cldk3z9ze0004saiy542wfbck", // The product's ID of the reported user
        "tags": ["potential-spammer"] // Custom tags attached to the user
      },
      // (optional) content is only sent when type === "content"
      "content": {
        "id": "cldk3zadj019wsaiyudwdtxtr", // The product's ID of the reported content
        "created_at": "2023-03-11T15:02:13.178Z", // ISO date of when the content was created
        "user_id": "cldk3z9ze0004saiy542wfbck", // The ID of the user who sent the content
        "subcategory_id": "cldvl1z2l002xsaykyoje94od", // The ID of the subcategory the content is part of
        "category_id": "cldq51mh005fjsaw2y0fx3t5c", // The ID of the category the content is part of
        "tags": ["explicit-content"] // Custom tags attached to the content
      }
    }
  ]
}
```

{% endtab %}
{% endtabs %}

### Response

The webhook does not expect a certain response, except for a valid `200` status code when action is handled by your product.

When the product does not respond a `200` status after all [retries](#retries) the action(s) will be automatically reverted in Lasso. Actions that cannot be undone, such as `SendMessage` and `HandleReports`, are not reverted; the failure is recorded on the action instead.

### Invalid actions

In case there is an invalid action taken (e.g. when an action leads to an error), you can revert the action(s). This will make sure the status of the object remains in sync between the product and Lasso. You can revert actions by returning a list of action ids.

{% code title="Webhook response" %}

```json
{
   "revert": ["action_id_1","action_id_2"]
}
```

{% endcode %}

### Retries

In case the webhook fails and receives an error code (`3XX`, `4XX`, `5XX`), it will automatically be retried with exponential backoff. Lasso will try to deliver the webhook at most 5 times over the course of a minute.

### Security (optional, but recommended)

When Lasso Moderation sends a webhook to your server, it includes a digital signature that you can use to ensure that the payload has not been tampered with.

To verify the signature, you need to compute a hash of the payload using a secret key that you share with Lasso Moderation. The secret key can be found under [settings](https://app.lassomoderation.com/settings) in the Lasso Moderation dashboard. The hash should be computed using the SHA-256 hashing algorithm.

Once you have computed the hash, you can compare it to the signature included in the `X-Lasso-Signature` header of the webhook request. If the two values match, you can be confident that the payload has not been modified in transit.

Here are some examples of how you might verify the signature of a webhook payload:

{% tabs %}
{% tab title="Javascript" %}

```javascript
import * as crypto from "crypto";

function verifySignature(
  payload, // body of the request
  signature, // X-Lasso-Signature from the header
): boolean {
  const secret = process.env.LASSO_WEBHOOK_SECRET // You need to set this environment variable.
  const hmac = crypto.createHmac("sha256", secret);
  const hash = hmac.update(payload).digest("base64");
  const expectedSignature = `sha256=${hash}`;
  return expectedSignature === signature;
}
```

{% endtab %}

{% tab title="Python" %}

```python
import hmac
import hashlib
import base64

def verify_signature(payload: str, signature: str) -> bool:
    """
    Verifies the signature of a webhook request payload.

    Args:
        payload (str): The request payload as a string.
        signature (str): The X-Lasso-Signature header value as a string.

    Returns:
        bool: True if the signature is valid, False otherwise.
    """
    # You need to set this environment variable.
    secret = os.environ['LASSO_WEBHOOK_SECRET'] 
    
    # Compute the HMAC digest of the payload using the secret and SHA256 algorithm
    hmac_digest = hmac.new(secret.encode('utf-8'), payload.encode('utf-8'), hashlib.sha256).digest()

    # Encode the HMAC digest using base64
    expected_signature = f'sha256={base64.b64encode(hmac_digest).decode("utf-8")}'

    # Compare the computed signature with the signature received in the header
    return expected_signature == signature
```

{% endtab %}

{% tab title="PHP" %}

```php
function verify_signature($payload, $signature) {
  /**
   * Verifies the signature of a webhook request payload.
   *
   * @param string $payload The request payload as a string.
   * @param string $signature The X-Lasso-Signature header value as a string.
   *
   * @return bool True if the signature is valid, False otherwise.
   */
  // You need to set this environment variable.
  $secret = getenv('LASSO_WEBHOOK_SECRET');
  
  // Compute the HMAC digest of the payload using the secret and SHA256 algorithm
  $hmac_digest = hash_hmac('sha256', $payload, $secret, true);

  // Encode the HMAC digest using base64
  $expected_signature = 'sha256=' . base64_encode($hmac_digest);

  // Compare the computed signature with the signature received in the header
  return $expected_signature === $signature;
}
```

{% endtab %}

{% tab title="Java" %}

```java
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.util.Base64;

public class SignatureVerifier {

    /**
     * Verifies the signature of a webhook request payload.
     *
     * @param payload The request payload as a string.
     * @param signature The X-Lasso-Signature header value as a string.
     * @return True if the signature is valid, False otherwise.
     */
    public static boolean verifySignature(String payload, String signature) {
        // You need to set this environment variable.
        String secret = System.getenv("LASSO_WEBHOOK_SECRET");

        try {
            // Create a new Mac instance specifying the HMAC SHA256 algorithm
            Mac sha256HMAC = Mac.getInstance("HmacSHA256");
            SecretKeySpec secretKey = new SecretKeySpec(secret.getBytes(), "HmacSHA256");
            sha256HMAC.init(secretKey);

            // Compute the HMAC digest of the payload using the secret
            byte[] hmacDigest = sha256HMAC.doFinal(payload.getBytes());

            // Encode the HMAC digest using base64
            String expectedSignature = "sha256=" + Base64.getEncoder().encodeToString(hmacDigest);

            // Compare the computed signature with the signature received in the header
            return expectedSignature.equals(signature);
        } catch (NoSuchAlgorithmException | InvalidKeyException e) {
            e.printStackTrace();
            return false;
        }
    }
}

```

{% endtab %}
{% endtabs %}

#### Other languages

Please reach out to <info@lassomoderation.com> in case you would like a code example in a different language.


# Rate Limits

To ensure fair use and maintain performance across our platform, we apply rate limits to specific actions such as content syncing, user creation, and content submission. These limits vary depending on your plan (free vs. paid) and can be customized for enterprise customers.

#### Standard Limits

| Action                              | Default Limit  |
| ----------------------------------- | -------------- |
| Content Create/Update               | 300 per minute |
| Content Create/Update Synchronously | 120 per minute |
| User Create/Update                  | 300 per minute |

> **Note:** Limits are subject to change. Enterprise customers can request custom rate limits via support.

#### Headers

All rate-limited responses include headers that provide visibility into your usage:

| Header                  | Description                                          |
| ----------------------- | ---------------------------------------------------- |
| `X-RateLimit-Limit`     | Total allowed requests in the current interval       |
| `X-RateLimit-Remaining` | Number of remaining requests in the current interval |
| `X-RateLimit-Reset`     | Milliseconds until the rate limit resets             |

#### Exceeding Limits

If a rate limit is exceeded, you’ll receive a `429 Too Many Requests` response:

```json
{
  "error": "Too many requests, check headers for limits"
}
```

Use the response headers to determine when you can retry your request.

#### Best Practices

* Implement client-side backoff based on the `X-RateLimit-Reset` header.
* Monitor rate-limiting headers in your integration to prevent service disruption.
* If you're regularly hitting limits, consider upgrading or contacting support for a custom plan.

#### Need Higher Limits?

Enterprise customers may configure custom rate limits per action. Reach out to your account representative to discuss your needs.


# URL Signing

Discover how URL signing enhances content security by providing temporary, secure access through seamlessly integrated signed URLs.

**What is URL Signing?**

URL signing is a security enhancement that restricts access to private content such as images, videos, or audio files. Instead of making content publicly accessible, signed URLs allow temporary, secure access by appending a signature to the URL. This ensures that only authorized users can view or download the content during a specified time window.

**Benefits of URL Signing**

* **Enhanced Security**: Protect sensitive content from unauthorized access.
* **Temporary Access**: Define how long the URL remains valid, limiting exposure.
* **Flexible Integration**: Supports multiple cloud storage providers, including AWS S3, Google Cloud Storage, and Azure Blob Storage.
* **Transparent Process**: Lasso seamlessly handles the signing process for your content, ensuring that secure URLs are automatically generated when needed.

***

**How URL Signing Works**

1. **Detection**: When content is sent to Lasso, the platform checks if it originates from a domain requiring signatures.
2. **Signing**: If signing is required, Lasso generates a signed URL using the credentials provided in your integration settings.
3. **Usage**: The signed URL is used to analyze the content and display it securely in the dashboard.
4. **Regeneration**: Signed URLs are not stored and are regenerated upon expiration, ensuring ongoing security.

***

#### Setting Up URL Signing

To set up URL signing for your content, follow the steps for your preferred cloud provider. Each provider requires specific credentials and configuration. Use the links below to navigate to the setup instructions:

* [AWS S3 URL Signing](/developers/url-signing/aws-s3-url-signing)
* [GCP Storage URL Signing](/developers/url-signing/gcp-storage-url-signing)
* [Azure Storage Blob URL Signing](/developers/url-signing/azure-storage-blob-url-signing)
* Looking for another cloud provider? Reach out to <support@lassomoderation.com> and we can help you out.


# AWS S3 URL Signing

Set up AWS S3 with Lasso to enable automatic URL signing for secure and temporary access to your private content.

Our AWS S3 URL signing integration allows you to securely sign URLs for content stored in your S3 buckets. We use AWS AssumeRole to temporarily access your S3 resources without requiring long-term credentials. Follow these steps:

#### **Step 1: Create an IAM Role**

1. Please reach out to our support for our AWS account ID.
2. Create a new IAM role with the following custom trust policy, make sure to replace the account ID and external ID:

   ```json
   {
       "Version": "2012-10-17",
       "Statement": [
           {
               "Effect": "Allow",
               "Principal": {
                   "AWS": "arn:aws:iam::{AWS account ID Lasso}:root"
               },
               "Action": "sts:AssumeRole",
               "Condition": {
                   "StringEquals": {
                       "sts:ExternalId": "{random string, min 20 characters. See Lasso UI to generate external ID.}"
                   }
               }
           }
       ]
   }
   ```
3. Create a new policy and assign the following minimum policy to allow Lasso to generate signed URLs:

   ```json
   {
       "Version": "2012-10-17",
       "Statement": [
           {
               "Effect": "Allow",
               "Action": [
                   "s3:GetObject"
               ],
               "Resource": "arn:aws:s3:::{your-image-bucket}/*"
           }
       ]
   }
   ```
4. Assign the policy to the role.
5. Copy the **ARN** of the newly created role, e.g. `arn:aws:iam::1234567890987:role/LassoModerationBucketAccess`

#### **Step 2: Add Signing Information in Lasso**

1. Navigate to **Settings → Integrations** in Lasso.
2. Select **AWS S3** and fill in the following fields:
   * **Domain**: The domain where your content resides (e.g., `https://your-image-bucket.s3.amazonaws.com`).
   * **Region**: The AWS region of your bucket.
   * **Bucket**: The name of your S3 bucket. (e.g., `your-image-bucket`)
   * **Role ARN**: The **ARN** of the newly created role.
   * **External ID**: The **External ID** you used when creating the role.
   * **TTL**: The time-to-live for the signed URL (minimum 15 minutes). This is the amount of time a URL will be valid for.
   * **Example URL**: Provide an example URL to validate your credentials.

#### **Step 3: Automatic Signing for AWS S3 Content**

Once the integration is set up:

* Any content from the specified **Domain** (e.g., `https://your-image-bucket.s3.amazonaws.com`) will automatically be signed by Lasso when required.
* Lasso dynamically generates a signed URL whenever it needs to access the content, ensuring secure and temporary access.
* This signed URL is used for analyzing the content or displaying it securely in the dashboard. You do not need to update or manage URLs manually.
* If the signed URL expires, Lasso regenerates it automatically when the content is accessed again.


# GCP Storage URL Signing

Configure Google Cloud Storage with Lasso to automatically generate signed URLs for secure access to your GCS content.

Google Cloud Storage URL Signing integration allows you to sign URLs for content stored in GCS buckets. Follow these steps:

#### **Step 1: Create a Service Account**

1. Follow [this guide](https://cloud.google.com/iam/docs/service-accounts-create) to create a service account in Google Cloud or use an existing account.
2. Assign the `roles/storage.objectViewer` role to the service account. This role allows read access to objects in your bucket.
3. Generate a key for the service account and download the JSON key file. You’ll need this file for the next steps.

#### **Step 2: Add Signing Information in Lasso**

1. Navigate to **Settings → Integrations** in Lasso.
2. Select **Google Cloud Storage** and provide the following details:
   * **Domain**: The domain where your content resides (e.g., `https://storage.googleapis.com/your-bucket`).
   * **Bucket**: The name of your bucket.
   * **Service Account Key**: Upload the JSON key file for the service account.
   * **TTL**: The time-to-live for the signed URL (minimum 15 minutes).
   * **Example URL**: Provide an example URL to validate your credentials.

#### **Step 3: Automatic Signing for Google Cloud Storage Content**

After completing the setup:

* All content originating from the specified **Domain** (e.g., `https://storage.googleapis.com/your-bucket`) will be signed automatically by Lasso when accessed.
* Lasso uses the provided **Service Account Key** to generate a secure, time-limited signed URL dynamically.
* This signed URL ensures secure access during analysis and dashboard display, without exposing your private content.
* Expired URLs are seamlessly regenerated as needed, requiring no manual intervention.


# Azure Storage Blob URL Signing

Integrate Azure Blob Storage with Lasso to enable automatic signed URLs for secure and time-limited access to your content.

Azure Blob Storage URL Signing integration enables signing URLs for content stored in Azure blob containers. Follow these steps:

#### **Step 1: Create an Azure Storage Account and Configure Access**

1. Follow [this guide](https://learn.microsoft.com/en-us/azure/storage/common/storage-account-create) to create a storage account in Azure or use an existing account.
2. Obtain the **Access Key** for your storage account:
   * Go to your storage account in the Azure portal.
   * Navigate to **Access keys** under **Settings**.
   * Copy one of the **Access keys** and note the **Storage account name**.

#### **Step 2: Add Signing Information in Lasso**

1. Navigate to **Settings → Integrations** in Lasso.
2. Select **Azure Blob Storage** and fill in the following fields:
   * **Domain**: The domain where your content resides (e.g., `https://youraccount.blob.core.windows.net`).
   * **Account Name**: The name of your Azure storage account.
   * **Access Key**: The key for your Azure storage account.
   * **Container**: The name of the blob container.
   * **TTL**: The time-to-live for the signed URL (minimum 15 minutes).
   * **Example URL**: Provide an example URL to validate your credentials.

#### **Step 3: Automatic Signing for Azure Blob Storage Content**

Once configured:

* All content from the specified **Domain** (e.g., `https://youraccount.blob.core.windows.net`) will be signed automatically by Lasso.
* Lasso uses the **Account Name** and **Access Key** to generate a secure, temporary signed URL for any required content.
* Signed URLs are used to securely access the content for analysis and dashboard display without making the content public.
* When a signed URL expires, Lasso regenerates it on demand, ensuring continuous secure access without additional setup.


# Laravel URL Signing

Sign media URLs with your Laravel application's signing key so Lasso can securely display your private content.

Our Laravel URL signing integration allows Lasso to securely access media that your Laravel application serves behind signed URLs. Lasso signs URLs the same way Laravel's `URL::temporarySignedRoute` does, so your application can validate them with `$request->hasValidSignature()`. No credentials are exchanged at request time, your application stays in control of every download.

{% hint style="info" %}
URL signing is available as an add-on. Contact us to enable it for your workspace.
{% endhint %}

#### **Step 1: Prepare Your Laravel Application**

1. Serve your media through a route that validates signed URLs, for example:

   ```php
   Route::get('/media/{path}', [MediaController::class, 'show'])
       ->where('path', '.*')
       ->middleware(ValidateSignature::class);
   ```

   The route must allow both **GET** and **HEAD** requests. Lasso uses HEAD requests to check content before downloading it.
2. Choose the signing key you will share with Lasso. This can be your `APP_KEY`, but we recommend a dedicated key so you do not have to share your application key. On Laravel 11 and newer, register a key resolver that returns both keys, so your own signed routes (password resets, unsubscribe links) keep working:

   ```php
   // app/Providers/AppServiceProvider.php
   public function boot(): void
   {
       URL::setKeyResolver(fn () => [
           config('app.key'),
           config('services.lasso.signing_key'),
       ]);
   }
   ```

   On Laravel 10 and older the key resolver returns a single key, so validate the dedicated Lasso key in middleware scoped to the media route instead. Sharing your `APP_KEY` also works, but only do so if you understand the implications: anyone holding that key can forge signatures for **every** signed route in your application (password resets, unsubscribe links), not just media URLs.

{% hint style="warning" %}
The signing key is used exactly as written. If your key starts with `base64:`, that prefix is part of the key, Laravel never decodes it. Copy the key verbatim when adding it to Lasso.
{% endhint %}

#### **Step 2: Add Signing Information in Lasso**

1. Navigate to **Settings → Integrations** in Lasso.
2. Select **Laravel Signatures**, click **New signature** and fill in the following fields:
   * **Domain**: The domain where your content resides (e.g. `https://media.your-platform.com`). Every URL on this domain will be signed.
   * **Signing key**: The key your application validates signed URLs with. It is stored encrypted and never shown again, only a masked hint appears in the dashboard.
   * **TTL**: The time-to-live for the signed URL (minimum 15 minutes). This is the amount of time a URL will be valid for.
   * **Example URL**: Provide an example URL on your domain. Lasso signs it and requests it with GET and HEAD to verify your application accepts the signature. The signature is only saved when both requests succeed.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-69409ca95f677d7a2b82bc4bccebe8d826650565%2FScreenshot%202026-08-10%20at%2012.16.11.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **Step 3: Automatic Signing for Your Content**

Once the integration is set up:

* Any content from the specified **Domain** will automatically be signed by Lasso when required.
* Lasso appends two query parameters to the URL: `expires` (a Unix timestamp) and `signature` (a lowercase hex HMAC-SHA256 over the URL, computed the same way Laravel computes it). Existing query parameters are preserved.
* The signed URL is used for analyzing the content or displaying it securely in the dashboard. You do not need to update or manage URLs manually.
* If the signed URL expires, Lasso regenerates it automatically when the content is accessed again.


# DSA Compliance

The **Digital Services Act (DSA)** introduces obligations for online platforms to ensure transparency, accountability, and compliance around content moderation decisions. One of the requirements is that platforms must **report moderation actions** to the [DSA Transparency Database](https://transparency.dsa.ec.europa.eu/).

The reports must include structured information about why content or a user was restricted, along with metadata such as the territorial scope, the applicable terms of service, and categorization of the policy.

You can explore the reporting requirements and examples of reports from other platforms directly in the [DSA Transparency Database](https://transparency.dsa.ec.europa.eu/).


# Setup

#### 2.1 Credentials

Before you can send reports, you need credentials from the DSA Transparency Database.

1. Request credentials from the DSA team. See [onboarding documentation](https://transparency.dsa.ec.europa.eu/page/onboarding-documentation) for more information.
2. Go to [Compliance Settings](https://app.lassomoderation.com/settings/compliance).
3. Add new credentials:
   * **Environment**: `sandbox` or `production`. Use the sandbox environment for testing to validate reports before switching to production.
   * **API tokens**: The credentials you obtained in step 1.
   * **Terms of Service**: A URL pointing to your terms and conditions.
   * **Territorial scope**: By default, all countries in the European Economic Area (EEA) are included. You can limit this to specific countries if needed.
   * **Categories**: If you manage multiple brands under one workspace, you can configure separate credentials per category. Otherwise, select **Use credentials for all categories**.

#### 2.2 Reports per policy

Once credentials are configured, you can enable automatic reporting per policy category.

1. Go to [Policies](https://app.lassomoderation.com/policies)
2. Select the **policy category** you want to send reports for.
3. Choose the policy type: `user` or `content`. Reporting requires a policy to be explicitly marked as one of these types.
4. Enable **DSA reporting for this policy**.
5. Fill in the required fields. Details about these fields can be found in the [DSA API documentation](https://transparency.dsa.ec.europa.eu/page/api-documentation#statement-attributes). For inspiration, check out example reports at the [Transparency Database](https://transparency.dsa.ec.europa.eu/statement).
6. Done! Any time a user or piece of content is removed/banned under this policy, a report will automatically be created.
7. Go to the [Compliance Overview](https://app.lassomoderation.com/compliance) to view all pending/submitted reports.


# Reporting Exceptions

We do not automatically submit reports in the following cases:

#### 3.1 User types

Reports are only submitted for regular users. Actions against users marked as `admin`, `moderator`, `trusted`, `state_actor`, or `testing` are excluded. The type of user can be determined via the `type` field:

* [User creation with `type`](https://api-reference.lassomoderation.com/operation/operation-post-user#operation-post-user-body-application-json-user-type)

#### 3.2 Unpublished content/users

If a user or content item is not yet **published**, no report will be sent. Learn more about publishing via our API:

* [User creation with `published_at`](https://api-reference.lassomoderation.com/operation/operation-post-user#operation-post-user-body-application-json-user-published_at)
* [Publishing a user](https://api-reference.lassomoderation.com/operation/operation-publish-user)

#### 3.3 User location

Reports are only submitted for users located within the **territorial scope** you defined. The location is determined via the `country_code` field:

* [User creation with ](https://api-reference.lassomoderation.com/operation/operation-post-user#operation-post-user-body-application-json-user-country_code)[`country_code`](https://api-reference.lassomoderation.com/operation/operation-post-user#operation-post-user-body-application-json-user-country_code)

#### 3.4 Overwritten reports

Reports are initially created as pending and automatically submitted after a period of time. When a moderator makes a mistake or overwrites a previous decision, these reports will automatically be cancelled and not submitted.


# Migrating from AI Scores

Move your rules off the deprecated AI scores and onto Lasso's default AI models, step by step.

Text moderation is getting an upgrade: Lasso is replacing its AI scores with AI models that each focus on one policy area, such as harassment, hate speech or scams. They are more specific than a general toxicity score and cover areas it never did. This guide explains what changes, how the new AI models work, and how to move your rules over without gaps in what you catch.

{% hint style="danger" %}
**The AI scores are deprecated and stop being available on December 31, 2026.** From that date, rules that use them no longer match, so the content they catch today is no longer actioned. Replace these rules before then.
{% endhint %}

### What is changing

AI scores are generic:

* A high toxicity score says that a message is hostile, but not why.
* One threshold has to cover both a swear word between friends and a targeted threat.

The new AI models replace them with one model per policy area, so each rule acts on exactly the kind of violation it is meant for. They also cover areas the AI scores never did, such as child safety, personal information and scams.

The following scores are deprecated:

* **Toxicity score**
* **Threat score**
* **Identity attack score**
* **Profanity score**

In your rules, these are the **AI Scores** condition. On an item in the **Content** section, they are shown under **Text scores**. Both are marked **Deprecated**.

When you move to the AI models, you will notice two differences:

1. **A verdict instead of a score.** Each model reads the text of a content item and decides whether it violates its one policy area. The result is **Violation** or **Pass**, not a percentage, so there is no threshold to tune.
2. **A written definition per model.** Each model has a definition of what it flags and what it allows, which is what makes its verdicts specific: the **Harassment & Bullying** model flags an insult aimed at another user, while the **Profanity** model flags swearing whether or not it is aimed at anyone.

### What it costs

Nothing extra. The AI models are included in your current pricing: using them in your rules does not change what you pay, and they are not billed separately from the AI scores they replace.

### Moving your rules to the AI models

Start by [finding your deprecated rules](#finding-your-deprecated-rules) and checking which of them still match. Then, for each rule you want to keep:

1. **Create the new rule.**

   * Create a content rule with an **AI Models** condition.
   * Select the models that replace your deprecated rule. Which models fit depends on what your rule is meant to catch: see [Which AI models replace which score](#which-ai-models-replace-which-score) and the [full list of models](#the-default-lasso-ai-models).
   * Choose **is a violation**.
   * Give it the same actions as the deprecated rule it replaces.

   You can also click **Create rule** in [Research](#comparing-ai-scores-and-ai-models-in-research) to start from conditions you tested there. See [Custom Moderation Rules](/automation-and-review/custom-moderation-rules).
2. **Start it in monitor-only mode.** A monitor-only rule is evaluated on all traffic, also when a rule above it already matched, so you can run the new rule next to the old one without changing what happens to your content.
   * Set the rule's **Status** to **Monitor only**. The rule is evaluated on new content and its matches are tracked, but it takes no action.
   * Check its **Activity** tab over a few days to weeks to see what it would have caught. See [Monitor-only rules](/automation-and-review/custom-moderation-rules#monitor-only-rules).
3. **Tune.** [Add examples](#adding-examples) where the models get it wrong, and contact us when a model needs to follow your policy more closely.
4. **Go live.** When the new rule catches what the old one did, set its **Status** to **Live**.
5. **Turn off the deprecated rule.** Switch the deprecated rule off in the rules list. Keep an eye on the new rule's **Activity** tab for the first days after the switch.

### The default Lasso AI models

Lasso provides 10 default AI models for text:

* **Harassment & Bullying**: hostile content aimed at a specific person, such as insults, degradation, telling someone to self-harm, unwanted sexual comments, pile-ons, doxxing, stalking and blackmail.
* **Hate Speech**: attacks on people for a protected characteristic such as race, religion, gender, sexual orientation, disability or nationality, including slurs, dehumanization and hateful stereotypes.
* **Violence & Threats**: threats of physical harm, incitement to violence, glorification of violent acts, graphic violence or gore, and animal cruelty.
* **Extremism & Terrorism**: support, praise or recruitment for terrorist or violent extremist organizations, propaganda, and extremist symbols and slogans.
* **Profanity**: swearing, obscenities and crude language, targeted or not.
* **Sexual Content**: sexually explicit or suggestive content involving adults, propositions, solicitation of nudes and sexual roleplay.
* **Child Safety**: sexualization of minors, grooming patterns and attempts to move minors to private channels.
* **Self-Harm & Suicide**: encouragement, instructions or glorification of suicide, self-injury or eating disorders, and dangerous challenges. Recovery and help-seeking content is allowed.
* **Personal Info & Off-Platform Contact**: phone numbers, emails, addresses, ID or financial numbers and handles, and requests to move the conversation off-platform.
* **Scams & Spam**: phishing, investment, romance and giveaway scams, impersonation, money solicitation and unsolicited advertising.

#### Already enabled in your workspace

The default AI models are already enabled in your workspace, and they evaluate your text content as it comes in. **No rule acts on them yet.** Until you add rules that use them, their verdicts are recorded but nothing is flagged or removed because of them. This gives you time to look at what they catch before you let them take action.

#### Customized to your policy

The default models follow a general policy that suits most platforms. When your community guidelines draw the line somewhere else, for example when you allow mild swearing, or when sharing a social media handle is fine on your platform, Lasso can adjust a model to match your policy. Customization is done by Lasso: contact us with the change you need, ideally with examples (see [Adding examples](#adding-examples)).

### Which AI models replace which score

Most deprecated rules map to one or a few AI models:

| Deprecated score          | Most likely replaced by                                                              |
| ------------------------- | ------------------------------------------------------------------------------------ |
| **Profanity score**       | **Profanity**                                                                        |
| **Threat score**          | **Violence & Threats**                                                               |
| **Identity attack score** | **Hate Speech**                                                                      |
| **Toxicity score**        | **Harassment & Bullying**, **Hate Speech**, **Violence & Threats** and **Profanity** |

The general toxicity score covers the most ground, so a rule on it usually becomes a rule on several models. It scores high on swearing as well as on attacks, so include **Profanity** only when your rule is meant to catch crude language. Decide per model whether it should take the same action: you may want to remove hate speech straight away but only flag harassment for review, which a single toxicity threshold could not do.

#### What the AI models catch that the AI scores did not

Several models cover content the AI scores were never built for. Polite, friendly or neutral messages score low on toxicity, even when they break your rules:

* **Child Safety**: grooming often reads as friendly ("how old are you? let's keep this between us").
* **Personal Info & Off-Platform Contact**: a phone number or a request to chat elsewhere is not toxic.
* **Scams & Spam**: phishing and giveaway scams are written to sound trustworthy.
* **Self-Harm & Suicide**, **Sexual Content** and **Extremism & Terrorism**: often not hostile in tone.

Expect these models to match content that none of your current rules catch. Review what they match in the [Model Hub](#seeing-what-the-ai-models-catch-in-the-model-hub) before you add rules for them, and start those rules in [monitor-only mode](#moving-your-rules-to-the-ai-models).

### Seeing what the AI models catch in the Model Hub

The **Model Hub** shows every AI model in your workspace. Go to **Model Hub → Text → Default Lasso AI Models** to see the default models and which of them are enabled.

Click a model to open its page. It shows:

* **Evaluated**, **Matched** and **Match rate** for the last 7 or 30 days.
* **Recent content**: the latest content the model evaluated, newest first. Filter on **Matched** or **Not matched** to see what the model flags as a violation and what it lets pass.
* **Used in rules**: the rules that use this model.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-1e1c8279e2017d108dc665be52b15178a776eeba%2Ftoxicity-migration-model-hub-model-page.png?alt=media" alt="The Scams &#x26; Spam model page in the Model Hub, with the Evaluated, Matched and Match rate tiles and the Recent content list filtered on Matched"><figcaption></figcaption></figure>

#### Adding examples

When you disagree with a verdict, add the content as an example:

1. Hover over the item in **Recent content** and click **Add as example**. You can also click the model's row under **AI Models** in the details of any content item.
2. Tick **Violation** if the content should be a violation, or leave it unticked if it should pass.
3. Optionally, explain why under **Reason (optional)**.
4. Click **Mark as violation** or **Mark as OK**.

Examples are only visible to your workspace. Lasso uses them to measure how well the model fits your platform and to tune it to your policy. The more examples you add, especially for borderline content, the better Lasso can tailor the model to your platform.

### Finding your deprecated rules

Go to **Rules → Content**. Rules that use an AI score show a **Deprecated** badge in the **Action** column, and the header shows how many rules are affected.

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-bc13272f41284cf136084189f60d567971f25d82%2Ftoxicity-migration-deprecated-badge.png?alt=media" alt="The Deprecated badge next to a rule&#x27;s Remove action in the rules list"><figcaption></figcaption></figure>

For each of these rules, check how often it matched. The rules list shows **Evaluated** and **Matched** per rule, and you can switch the period at the top of the list to **7d**, **30d** or **90d**. Open a rule and go to its **Activity** tab to see the content it matched.

* **No matches in the last 30 days**: the rule has not taken any action recently. You can turn it off or delete it without a replacement, unless it guards against something rare that you still want to catch.
* **Matches**: note which scores and thresholds the rule uses, for example *toxicity score more than 80%*. You need these to compare against the AI models in Research, and to pick the models that replace it (see [Which AI models replace which score](#which-ai-models-replace-which-score)).

### Comparing AI scores and AI models in Research

[Research](/automation-and-review/research) runs rule conditions against your most recent content (up to the last 10,000 items) and shows which items would have matched. It takes no action: nothing is flagged or removed, no webhooks are sent, and your rules do not change. This makes it the place to compare what an AI score catches with what the AI models catch, on your own content, before you change any rule.

Each comparison combines a deprecated score with the AI models that replace it, and shows one of two things:

* **Caught by the AI score, not by the AI models**: content your current rule acts on that the AI models let pass. Content that is fine on your platform was a false positive of the AI score, and the new rule fixes it. Content that should be actioned is a gap in the AI models: add it as an example, marked as a violation.
* **Caught by the AI models, not by the AI score**: content the AI models flag that your current rule misses. Content that should be actioned was a false negative of the AI score, and the new rule catches it. Content that is fine on your platform can be added as an example, marked as OK.

Click an item in the results to open its details. Under **AI Models**, click a model's row to add the item as an example to that model.

{% hint style="info" %}
Research uses the results stored when content came in. Content received before the AI models were enabled has no AI model verdict and shows as **not scored**. Let the models run for a few days before you compare.
{% endhint %}

#### Example comparisons

These four comparisons cover the most common rules, on the toxicity score and the threat score. Each link opens Research in your workspace with the conditions filled in. Nothing runs until you start it: change the threshold to the one your rule uses, choose a sample size and click **Run backtest**.

The **Finds** column says what each comparison mostly surfaces. A false positive is content the AI score acts on that is fine on your platform. A false negative is content that should be actioned but the AI score lets pass.

| Comparison                                                        | Finds                           | Conditions                                                                                                                                                                                               | Open in Research                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| ----------------------------------------------------------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Toxicity: caught by toxicity, not by the AI models**            | False positives of the AI score | **toxicity score** more than 45%, AND four **AI Models** conditions with **is not a violation**: **Harassment & Bullying**, **Hate Speech**, **Violence & Threats** and **Profanity**, one per condition | [Open backtest](https://app.lassomoderation.com/research?share=eyJjb25kaXRpb25PcGVyYXRvciI6ImFuZCIsImNvbmRpdGlvbkdyb3VwcyI6W3sib3BlcmF0b3IiOiJhbmQifV0sImNvbmRpdGlvbnMiOlt7InN1YmplY3QiOiJ0b3hpY2l0eSIsImRhdGEiOnsidHlwZSI6InRveGljaXR5IiwiY29tcGFyaXNvbiI6Im1vcmVfdGhhbiIsInRocmVzaG9sZCI6NDV9LCJncm91cCI6bnVsbH0seyJzdWJqZWN0IjoiYWlfbW9kZWwiLCJkYXRhIjp7ImxhYmVscyI6WyJsYXNzby1kZWZhdWx0LWhhdGVfc3BlZWNoIl0sImJpbmFyeSI6Im5vX3Zpb2xhdGlvbiJ9LCJncm91cCI6MH0seyJzdWJqZWN0IjoiYWlfbW9kZWwiLCJkYXRhIjp7ImxhYmVscyI6WyJsYXNzby1kZWZhdWx0LWhhcmFzc21lbnQiXSwiYmluYXJ5Ijoibm9fdmlvbGF0aW9uIn0sImdyb3VwIjowfSx7InN1YmplY3QiOiJhaV9tb2RlbCIsImRhdGEiOnsibGFiZWxzIjpbImxhc3NvLWRlZmF1bHQtdmlvbGVuY2UiXSwiYmluYXJ5Ijoibm9fdmlvbGF0aW9uIn0sImdyb3VwIjowfSx7InN1YmplY3QiOiJhaV9tb2RlbCIsImRhdGEiOnsibGFiZWxzIjpbImxhc3NvLWRlZmF1bHQtcHJvZmFuaXR5Il0sImJpbmFyeSI6Im5vX3Zpb2xhdGlvbiJ9LCJncm91cCI6MH1dfQ) |
| **Toxicity: caught by the AI models, not by toxicity**            | False negatives of the AI score | **toxicity score** less than 45%, AND one **AI Models** condition with **Harassment & Bullying**, **Hate Speech**, **Violence & Threats** and **Profanity** selected and **is a violation**              | [Open backtest](https://app.lassomoderation.com/research?share=eyJjb25kaXRpb25PcGVyYXRvciI6ImFuZCIsImNvbmRpdGlvbkdyb3VwcyI6W3sib3BlcmF0b3IiOiJhbmQifV0sImNvbmRpdGlvbnMiOlt7InN1YmplY3QiOiJ0b3hpY2l0eSIsImRhdGEiOnsidHlwZSI6InRveGljaXR5IiwiY29tcGFyaXNvbiI6Imxlc3NfdGhhbiIsInRocmVzaG9sZCI6NDV9LCJncm91cCI6bnVsbH0seyJzdWJqZWN0IjoiYWlfbW9kZWwiLCJkYXRhIjp7ImxhYmVscyI6WyJsYXNzby1kZWZhdWx0LXZpb2xlbmNlIiwibGFzc28tZGVmYXVsdC1oYXRlX3NwZWVjaCIsImxhc3NvLWRlZmF1bHQtcHJvZmFuaXR5IiwibGFzc28tZGVmYXVsdC1oYXJhc3NtZW50Il0sImJpbmFyeSI6InZpb2xhdGlvbiJ9LCJncm91cCI6MH1dfQ)                                                                                                                                                                                                                                                                                                                         |
| **Threat: caught by the threat score, not by Violence & Threats** | False positives of the AI score | **threat score** more than 45%, AND **Violence & Threats** **is not a violation**                                                                                                                        | [Open backtest](https://app.lassomoderation.com/research?share=eyJjb25kaXRpb25PcGVyYXRvciI6ImFuZCIsImNvbmRpdGlvbkdyb3VwcyI6W3sib3BlcmF0b3IiOiJhbmQifV0sImNvbmRpdGlvbnMiOlt7InN1YmplY3QiOiJ0b3hpY2l0eSIsImRhdGEiOnsidHlwZSI6InRocmVhdCIsImNvbXBhcmlzb24iOiJtb3JlX3RoYW4iLCJ0aHJlc2hvbGQiOjQ1fSwiZ3JvdXAiOm51bGx9LHsic3ViamVjdCI6ImFpX21vZGVsIiwiZGF0YSI6eyJsYWJlbHMiOlsibGFzc28tZGVmYXVsdC12aW9sZW5jZSJdLCJiaW5hcnkiOiJub192aW9sYXRpb24ifSwiZ3JvdXAiOjB9XX0)                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| **Threat: caught by Violence & Threats, not by the threat score** | False negatives of the AI score | **threat score** less than 45%, AND **Violence & Threats** **is a violation**                                                                                                                            | [Open backtest](https://app.lassomoderation.com/research?share=eyJjb25kaXRpb25PcGVyYXRvciI6ImFuZCIsImNvbmRpdGlvbkdyb3VwcyI6W3sib3BlcmF0b3IiOiJhbmQifV0sImNvbmRpdGlvbnMiOlt7InN1YmplY3QiOiJ0b3hpY2l0eSIsImRhdGEiOnsidHlwZSI6InRocmVhdCIsImNvbXBhcmlzb24iOiJsZXNzX3RoYW4iLCJ0aHJlc2hvbGQiOjQ1fSwiZ3JvdXAiOm51bGx9LHsic3ViamVjdCI6ImFpX21vZGVsIiwiZGF0YSI6eyJsYWJlbHMiOlsibGFzc28tZGVmYXVsdC12aW9sZW5jZSJdLCJiaW5hcnkiOiJ2aW9sYXRpb24ifSwiZ3JvdXAiOjB9XX0)                                                                                                                                                                                                                                                                                                                                                                                                                                        |

<figure><img src="https://2736176226-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FFslADZ1R9paAfD3FHscR%2Fuploads%2Fgit-blob-fc50c2441bcb2c84dfb2fc503f9763712dbcf6bd%2Ftoxicity-migration-research-conditions.png?alt=media" alt="Research conditions: an AI Scores condition with toxicity score less than 45%, AND an AI Models condition with Harassment &#x26; Bullying, Hate Speech, Violence &#x26; Threats and Profanity selected and is a violation"><figcaption></figcaption></figure>

#### Comparing your own rules

To compare one of your own deprecated rules:

1. Open the rule and click **Open in Research**. Research opens with the rule's conditions filled in.
2. Click **Add condition**, choose **AI Models**, select the models that should replace the rule (see [Which AI models replace which score](#which-ai-models-replace-which-score)) and choose **is not a violation**.
3. Make sure all conditions are combined with **AND**. If your rule's conditions use **OR**, put them in a group first.
4. Click **Run backtest**.

For the other direction, change the score condition to **less than** and the **AI Models** condition to **is a violation**.

{% hint style="info" %}
With **is not a violation**, add one **AI Models** condition per model. A condition with several models selected matches when **any** of them has the chosen verdict, so it would also show content that only one of the models lets pass.
{% endhint %}

### Technical integration

The AI scores are not part of the API response or webhook payloads, so your integration does not need to change. Webhooks for actions taken by rules include the `rule_id`: if your platform maps rule IDs to its own logic, update that mapping when you replace a deprecated rule with a new rule.

### We are happy to help

If there are models you do not want to run, if a model needs to follow your policy more closely, or if you have other questions about this change, contact Lasso support. We are happy to go over the change with you on a call and help you set up your new rules.


