> For the complete documentation index, see [llms.txt](https://helpcenter.channable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-es/reglas-edicion-masiva-y-enriquecimiento/como-utilizar-acciones-entonces-en-las-reglas/accion-de-regla-lunghezza-massima.md).

# Acción de regla: lunghezza massima

### Casos de uso

{% hint style="info" %}
Acortar títulos de producto

Usa el **longitud máxima** acción para acortar/recortar la longitud de los valores en tus datos de producto. Algunos canales, como Google Ads y Marktplaats, requieren que campos como "title" tengan un límite de caracteres.
{% endhint %}

### Acortar títulos de producto (a 30 caracteres)

Usando **longitud máxima**, puedes cortar el título a 30 caracteres para que cada título cumpla con la longitud máxima del canal de exportación.

{% stepper %}
{% step %}

### Añadir una regla con la acción Longitud máxima

* Crear o editar una regla donde quieras acortar el título del producto.
* Añade una acción THEN y elige **Longitud máxima** acción.
  {% endstep %}

{% step %}

### Configurar la longitud máxima

* Establece la longitud máxima en 30 caracteres (o el límite que requiera tu canal).
* Elige cómo debe recortarse el texto:
  * Recortar directamente: cortar el título directamente después de 30 caracteres.
  * Recortar por palabras: recortar el título tras la última palabra completa que quepa dentro del límite de 30 caracteres.
    {% endstep %}

{% step %}

### Resultado

Las sentencias THEN (y AND) producirán los títulos recortados según tu configuración.
{% endstep %}
{% endstepper %}

Imágenes que muestran la configuración y los títulos recortados resultantes:

<figure><img src="/files/0adeb206468085712edbcbb6aec103f717e18531" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/6abb6e2255c21eafacc0c39bd152e295bcff2c31" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://helpcenter.channable.com/manage-improve-product-data/manage-product-and-improve-data-es/reglas-edicion-masiva-y-enriquecimiento/como-utilizar-acciones-entonces-en-las-reglas/accion-de-regla-lunghezza-massima.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
