---
title: "Use AI to generate Regular Expressions"
method: POST
path: "/pipeline/ai/expression"
tags: ["Experimental"]
---

# Use AI to generate Regular Expressions

`POST /pipeline/ai/expression`

Generates one or more regular expression that will parse the given log samples

## Request body

- object
  - `samples` string[], required — At least 1 line to pass to the AI model for pattern generation. If the lines are not all from the same application, it will generate an expression for each identified app. It accepts a maximum of 5 lines.

## Response `200`

Default Response

---

[API](https://skmtc.net/mezmo/apis/pipeline-api.md) · [All operations](https://skmtc.net/mezmo/apis/pipeline-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mezmo/pipeline-api/versions/fb2535545d90/schema)
