> 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="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/ZJgqLfXytD8JPlqSw4p8/360007538399" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/pFh1lPPOp9nHvmhCok4g/360007523800" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
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=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
