# Use Lithic AI Assistant to Write Rules in Plain Language

May 27, 2026

.png)

Claire Jacobs  
Senior Product Marketing Manager

Sumati Mehta  
Product Marketing Lead

## Table of Contents

We recently launched new Rules Engine features as part of our [Fraud Command](/content/blog/from-foundations-to-full-control-fraud-essentials-and-fraud-command-are-live/index.html) suite that make it easier than ever to analyze, create, and tailor custom decisioning logic for your programs. [Custom Code Rules](/content/blog/smarter-rules-less-risk-backtesting-and-custom-code-are-here/index.html) lets you write TypeScript logic directly in the Lithic Rules Engine and as we covered in [how we built it](/content/blog/from-conditions-to-custom-code-how-we-built-it/index.html), the design work that went into making arbitrary code safe to run on a payments hot path also enabled us to embed a native AI rule-writing assistant. Now rather than coding the TypeScript yourself, you can describe the rule you want in plain language and the assistant generates it for you.

The magic of our Rules Engine is that it also extends across multiple payment rails (card, ACH) and stages of the transaction lifecycle, connecting data and context from pre-auth moments like 3DS authentication and digital wallet tokenization through to authorization itself and post-auth transaction monitoring. This widespread application means that it's never been more effortless to implement a robust end-to-end fraud and risk mitigation strategy.

Click through the demo below to get a sense of how intuitive it is to start building your custom logic. We promise no engineering sprints or code reviews were harmed in the making of this video.

Using AI Assistant for Rule Creation

## Write Rules with AI in the Lithic Dashboard

### Create 3DS, card authorization, tokenization and other rules using natural language. Here, we'll create decline logic based on custom risk scoring.

Get Started

Read the developer documentation [here](https://docs.lithic.com/docs/custom-code-rules) to learn more about the technical interface or jump directly into the [Sandbox](https://app.lithic.com/signup) to begin experimenting.

## Want a payments platform that helps you as you grow?  
[Explore Sandbox](https://app.lithic.com/signup)
