---
title: "AI fraud rules: Build rules using natural language (new feature on the Ravelin Dashboard)"
date: 2024-07-17T16:44:00+01:00
author: Jamie Willis
canonical_url: "https://www.ravelin.com/blog/ai-fraud-prevention-rules"
section: Blog
---
Blog /[Ravelin product](/resources?search=&category%5B0%5D=228587#resourceContainer "Go to Ravelin product")

# AI fraud rules: Build rules using natural language (new feature on the Ravelin Dashboard)

Let’s take a look at a much-anticipated addition to Ravelin’s platform: Our AI-powered fraud rule generator, which promises to make the creation of new fraud rules faster, easier and more streamlined.

17 July 2024

![AI fraud rules: Build rules using natural language (new feature on the Ravelin Dashboard)](https://storage.googleapis.com/ravelin-website-assets-production/assets/images/_blogSmall/228573/309-AI-Rules-builder-Blog-885x505.webp)

Artificial intelligence has been touted as one of the biggest tech innovations of our time.

Granted, some of the AI hype might be questionable, but in the world of fraud prevention, machine learning is already recognized as near-essential, especially for bigger organizations as well as those that need to scale operations on a regular basis.

But there is also plenty of untapped potential in other applications of AI and generative AI technology for and within [fraud prevention solutions](https://www.ravelin.com/solutions) and strategies.

Today, we’re going to present the latest way AI tech is improving the Ravelin product: AI fraud rules.

## What are Ravelin’s AI fraud rules?

Released in June of 2024 and just out of Beta and available to all users, Ravelin’s AI rule generator is a new feature on the Dashboard. Instead of scrolling through the dozens of rule-generating options and building rules manually, fraud managers and analysts can use Ravelin’s AI rule generator to speed up their work.

Just type out what you want the rule to do and Ravelin’s system and the large language model (LLM) will generate the rule for you.

Additionally, **AI-generated rules can be edited, added to, and tested** – just like any rule on the Ravelin platform.

![ai applications in fraud prevention](https://storage.googleapis.com/ravelin-website-assets-production/assets/images/p33-image.png)  
*"Which types of AI are or can prove useful in the fight against fraud?" Responses from Ravelin's Fraud Survey 2024.*

## How can LLM technology help stop fraud?

Because they understand (and use) natural language, LLMs are thought of as a valuable tool in the battle against fraud.

In the case of the new AI rules generator, they are a quick and easy way to add new fraud rules to the Ravelin platform, allowing you to take swift action against [real-time fraud attacks](https://pages.ravelin.com/ravcon-2024-real-life-stories-of-real-time-fraud-attacks).

In fact, in Ravelin’s [Fraud &amp; Payments Survey 2024](https://pages.ravelin.com/fraud-trends-2024-report), 46% of respondents around the world said that large language models (LLMs) could prove useful in the fight against fraud. The figure jumps to 54.2% for respondents in senior leadership. It’s not a stretch to gather that **LLM features in a fraud platform can prove very useful in getting C-suite buy-in**.

## How does AI work for fraud rule generation?

In addition to generating text of various types, an LLM has the benefit of understanding natural language. Therefore, on fraud prevention platforms such as Ravelin, it can speed up the creation and editing of complex fraud rules, saving time and effort and allowing for faster response times to real-time challenges.

Here's how AI fraud rules work on Ravelin:

1. Navigate to *Rules* &gt; *Create rule.*
2. Select a checkpoint for the rule to apply to. You will also want to select a rule category.
3. At this point, you would normally need to build the rule using various conditions from drop-down and search menus. Instead, select *Build with AI*.
4. In the prompt that shows up, phrase your rule using natural language. This means that you should ask the AI to do this in the same way you might ask a colleague.
    - The AI understands synonyms, such as *block* for *prevent*.
    - You can combine several conditions in one request, for example checking users’ IP address plus their device, but excluding customers who have already bought more than $500 in products in the past year.
5. Select *Generate*.
6. Carefully read the generated conditions, and ensure they all align with your intentions.
7. You can click on *Estimate rule impact* to see how this rule would affect your customers if it had been active in the past week.
8. Choose to *Run in Test Mode* or *Run in Live Mode* and name your rule.
    - We recommend publishing in Test Mode first, where possible. This makes the rule passive and allows you to evaluate the performance and impact of the rule without affecting any customers.
9. Click *Publish rule.*

### Tips for AI fraud rule creation

- You can phrase your rule in any language, which allows team members to use the rules generator in the language they are most confident in.
- We recommend running new rules in Test Mode first, unless responding in real time to an attack. This allows you [to evaluate the rule](https://ravelin.notion.site/Rules-132599863e1c4fa3b827bb281f676e67#f6a00f11e12e4bf39c3a0d74c7b79147), and see whether it is a good idea to implement it in earnest.
- On Ravelin, a rule can contain up to sixteen conditions, and the same is true for AI rules.
- Always read the outcome of the AI fraud rule generator to confirm it is as desired – you can easily make changes and adjustments, if needed, as well as add conditions.

**Note**: Although Ravelin is a firm believer in the power of machine learning in fraud prevention, we know that [fraud rules can help in certain situations](https://www.ravelin.com/blog/why-rules-are-still-relevant-to-fraud-detection), such as **a temporary measure in a new fraud attack or to ensure that a certain category of loyal customer always enjoys friction-free checkouts**.

In some cases, rules block more requests than the ML models, but the ML models do a much better job at blocking more subtle cases of fraud, which is too difficult to stop with rules. The Ravelin team is always at hand to support with this and provide expert advice for your particular circumstances.

## Examples of AI rules that can be built with Ravelin

Here are some examples of AI rule prompts that will generate a fraud rule on Ravelin:

1. “Always allow customers who are using a gmail email address, are in the market LatAm and have placed at least 200 orders”

  
2\. “send the customers to manual review if they're placing an order over ¥2990 and have placed more than 5 orders in the last hour and are using a PS4.”

![block](https://storage.googleapis.com/ravelin-website-assets-production/assets/images/Screenshot-2024-07-11-at-14.49.52.png)3\. “block all customers from France using AMEX and values over 200 euro and who have failed 3DS more than 4 times, had more than 7 chargebacks and are using a risky IP, and are using the currency SEK”

4\. “Senden Sie Transaktionen an 3DS, wenn Sie das Gateway „Supergate“ verwenden, eine Acquiring-Bank in Irland haben oder eine kostenlose E-Mail-Adresse verwenden”

5\. “フランスの銀行が発行したカードを使用し、特定の電子メール アドレスを使用し、過去 1 日に 10 回以上注文に失敗した顧客を確認する”

![foreign language use in AI rule generator](https://storage.googleapis.com/ravelin-website-assets-production/assets/images/Screenshot-2024-07-11-at-14.51.54.png)6\. "Block all payments! We're under attack!" (we wouldn’t recommend this – but on the other hand, we can guarantee that it will result in 0% payment fraud...)

![ai rules fraud](https://storage.googleapis.com/ravelin-website-assets-production/assets/images/Screenshot-2024-07-17-at-16.46.42.png)

##   
AI-native fraud prevention

Ravelin prides itself in being an AI-native fraud and payments expert, putting cutting-edge tech to good use to prevent fraud and abuse.

In addition to AI fraud rules on our platform, we use sophisticated machine-learning fraud prevention models which, as well as other features, [leverage natural language processing (NLP) to better understand text](https://www.ravelin.com/blog/why-fraud-prevention-without-natural-language-processing-is-missing-a-trick) when making recommendations.

This means, for example, that the model will be able to take into account the name or the popularity of an item being added to a shopping basket, or even the type of discount applied and whether it might be [promo abuse](https://www.ravelin.com/solutions/policy-abuse).

![nlp processing by Ravelin fraud model](https://storage.googleapis.com/ravelin-website-assets-production/assets/images/Update-NLP-after-image.png)## Parting thoughts

Remember that although rules have their place in fraud prevention, at Ravelin we believe that the best way to prevent fraud at scale is machine learning.

Consider letting your [machine learning fraud model](https://www.ravelin.com/insights/machine-learning-for-fraud-detection) pick up the bulk of fraud, and instead use rules sparingly to **test out new tactics, block new and different attacks, and ensure good customers enjoy the frictionless shopping journeys** they deserve.

And when it’s time to write those rules, consider getting the help of our new AI rule creator.

![Ravelin Logo](https://storage.googleapis.com/ravelin-website-assets-production/assets/images/ravelin-symbol-logo-transparent.webp)

## Let Ravelin's AI-native fraud prevention fuel your secure growth

Let's have a chat on how we can not just protect your bottom line but allow you to accept more payments and grow with confidence.

[Book a call ](https://www.ravelin.com/contact-us)

   

## Frequently Asked Questions

**Why use AI for fraud rules?**

Building rules with Ravelin's AI fraud rules functionality speeds up your rule creation, allows you to do so in any language, and makes it easier to find the rule parameters that are relevant to your rule.

**How will I know that my AI rule will work well?**

The Ravelin Dashboard offers several ways to estimate your rule impact, as well as having a Sandbox for more experimentation. You can also edit your AI rule after it's generated, just like with any fraud rule.

**How does Ravelin use AI?**

Ravelin offers AI-native fraud prevention solutions that make use of advanced technologies in several ways.

Related to AI, Ravelin:

- Deploys powerful machine learning models with hundreds of ML features
- Uses natural language processing to understand data within context
- Offers AI functionality to improve fraud teams' experience – including building rules with AI.

Please follow the link to our [AI fraud detection with Machine Learning and Natural Language Processing](https://www.ravelin.com/blog/ai-fraud-detection-with-ml-and-nlp) article to learn more.

**Are fraud rules still needed in 2025?**

At Ravelin, we know that machine learning and AI is the best way to prevent fraud at scale.

That said, we believe that [rules are still relevant to fraud detection in certain cases](https://www.ravelin.com/blog/why-rules-are-still-relevant-to-fraud-detection), including in response to an ongoing fraud attack, and in order to implement and experiment with a merchant's policies.

 ## Further reading

- [Ravelin Help Center: Rules](https://ravelin.notion.site/Rules-132599863e1c4fa3b827bb281f676e67#64aea23c4a1b4f3393b8197a53d1fd4a)
- [Report: AI vs AI and the Future of Fraud](https://pages.ravelin.com/ai-in-fraud-report)
- [Rules are still relevant to fraud detection – here’s why](https://www.ravelin.com/blog/why-rules-are-still-relevant-to-fraud-detection)
- [Podcast: Leader, follower or laggard when it comes to AI?](https://www.ravelin.com/podcast/leader-follower-laggard)
- [Ebook: Machine learning practices at Ravelin](https://pages.ravelin.com/machine-learning-at-ravelin)
- [Machine learning and fraud prediction: What data is required to make it work?](https://www.ravelin.com/blog/machine-learning-and-fraud-prediction-what-data-is-required-to-make-it-work)
- [3DS rule experimentation and optimization](https://www.ravelin.com/blog/3ds-rule-experimentation-and-optimization)
- [Ravelin insights: Machine learning for fraud detection](https://www.ravelin.com/insights/machine-learning-for-fraud-detection)

## Authors

![Jamie Willis](https://storage.googleapis.com/ravelin-website-assets-production/assets/images/_avatarSmall/228584/wamie.webp)

Jamie WillisSenior Software Engineer

[More from this author](https://www.ravelin.com/author/jamie-willis)

![Nikoleta Dimitriou](https://storage.googleapis.com/ravelin-website-assets-production/assets/images/_avatarSmall/196785/1669287463716_2023-12-07-164059_ybjd.webp)

Nikoleta DimitriouSenior Content Manager

With a marketing career focused on technology, Nikoleta has worked for the data science, e-learning, and fraud industries, among others. Since 2023…

[More from this author](https://www.ravelin.com/author/nikoleta-dimitriou)

## Related content

[Blog / Press release

### Driven by AI, customers now rival criminals for ecommerce fraud, say merchants

Global ecommerce fraud enters a new phase as losses continue to climb. Merchants now view criminals and their own customers as presenting a comparable risk, and there's a gap in AI adoption.

![Ravelin Symbol Blue 1](https://storage.googleapis.com/ravelin-website-assets-production/assets/images/_33x33_crop_center-center_none_ns/187712/Ravelin-Symbol-Blue-1.webp)Ravelin Technology](https://www.ravelin.com/blog/ravelin-fraud-survey-2026-press-release)

[Blog / Payments &amp; payment fraud

### Safeguarding agentic commerce – fraud strategy advice by Ravelin's CPO

"If there’s anything fraudsters like, it’s a new thing." Here's how to protect your online shop from agentic commerce fraud – which can target you no matter whether you're actively adopting AI shopping or not.

![RAVELIN STAFF Mark Barlow Head Of product website](https://storage.googleapis.com/ravelin-website-assets-production/assets/images/_33x33_crop_center-center_none_ns/175066/RAVELIN_STAFF_Mark_Barlow_Head_Of_product_website.webp)Mark Barlow,Chief Product Officer](https://www.ravelin.com/blog/agentic-commerce-fraud-prevention-strategy-analysis)

[Blog / Ravelin product

### Next-level reporting with Ravelin: Introducing Insights and AI-powered queries

Discover how the new Insights section and AI-powered queries in the Ravelin Dashboard simplify your fraud reporting.

![Ashleigh](https://storage.googleapis.com/ravelin-website-assets-production/assets/images/_33x33_crop_center-center_none_ns/267519/ashleigh.webp)Ashleigh Luccini Gilera,Senior Product Marketing Manager](https://www.ravelin.com/blog/fraud-reporting-insights-ai-queries)
