> For the complete documentation index, see [llms.txt](https://docs.mercuri.cx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mercuri.cx/mercuri-docs-es/caracteristicas/automations/fluxo-de-trabalho-automatizado-para-empresas-de-comercio-eletronico/fulfillment-created-automatizaciones.md).

# FulFillment Created Automatizaciones

### Caso de uso 1: Empresas con múltiples socios de envío

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FPJrZ9NcQF3RHdEtpi08G%2Fimage.png?alt=media&#x26;token=baaa612d-41bd-4ee9-8466-ff3301dcb57d" alt=""><figcaption></figcaption></figure>

Un negocio utiliza múltiples socios de envío (*p. ej., Delhivery, BlueDart, Shiprocket*). Cuando un pedido se cumple, el cliente debería recibir un mensaje por WhatsApp o SMS que contenga:

* Número de pedido
* Socio de mensajería
* Número de seguimiento
* Un botón que enlace a la página de rastreo según el socio de mensajería

### Pasos para configurar un flujo de trabajo automatizado

{% hint style="info" %}
Si ya configuraste la plantilla de WhatsApp/SMS para el evento ***Fulfillment Created***, entonces salta a esta sección.
{% endhint %}

<details>

<summary><mark style="color:blue;"><strong>A .1. Setting up the WhatsApp Template</strong></mark></summary>

**Navigate to WhatsApp Templates**

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FLi2ylv9RKcvkUFdG6wed%2FMercuri%20SMS%20and%20Whatsapp%20-%20Shared%20Inbox.gif?alt=media&#x26;token=20d42b7a-e868-4226-b609-5280e40764aa" alt=""><figcaption><p>Step 1 : <strong>Navigate to WhatsApp Templates</strong></p></figcaption></figure>

1. Ve a **Templates > WhatsApp** en el panel de Mercuri CX.
2. Haz clic en **Create Template**.
3. Selecciona la **WhatsApp Account** que se usará para enviar mensajes.

**Configurar los detalles de la plantilla**

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FqXSAgTKsBsAN47rgeg6v%2Fimage.png?alt=media&#x26;token=163eb0a7-f782-4056-b92b-1ee075a64aca" alt=""><figcaption><p>Configure Template Details</p></figcaption></figure>

**Completa la información básica de la plantilla:**

* **Template Name:** `Shipment_Details` (Usa un nombre fácil de identificar después)
* **Language:** `English` (o el idioma de tu base de clientes)
* **Category:** `UTILITY` (ya que es un mensaje informativo)

\[*Understand the different categories of WhatsApp templates*]

**Completa los componentes de la plantilla**

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2FwJ8KdzBFMrnVSz7FjqcJ%2Fimage.png?alt=media&#x26;token=2f3503c5-35ce-4d5a-86a3-17b6d9931b26" alt=""><figcaption><p>Step 3 : Template Components</p></figcaption></figure>

**Header (opcional):**

Nota: El encabezado puede contener solo una variable si es necesario, pero en este caso se considera un título fijo.

1. **Type:** Text
2. **Example Text:** `Mercuri CX`

\[*Click here to explore different media that can be added to the header* ]

**Body (Cuerpo):**

1. Agrega el contenido del mensaje en la sección **Body**.
2. Para incluir información dinámica como ID de pedido o nombre del cliente, usa el botón **"Add Variable"** al final de ese campo.

**Mensaje de ejemplo:**

`Hello {{1}}, Your package with order number: {{2}} has been shipped and will be delivered in 3–6 days via our courier partner.`\
`Courier partner: {{3}}`\
`Tracking AWB number: {{4}}`

`Tap the button below to track your order in real time.`&#x20;

**Variables:**

* `{{1}}` → Nombre del cliente
* `{{2}}` → Número de pedido
* `{{3}}` → Socio de mensajería (p. ej., Delhivery, BlueDart)
* `{{4}}` → Número de seguimiento (AWB)

Nota: Asigna valores de muestra para cada variable antes de enviar para aprobación.

**Agregar botón dinámico de rastreo**

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2Fd4PEQov7rG5rUXXiCc95%2Fimage.png?alt=media&#x26;token=bd96e106-c026-4d7c-99a3-f97b29b1fce4" alt=""><figcaption><p>Adding Dynamic Tracking button</p></figcaption></figure>

Haz clic en **Add Button** > selecciona **Visit Website**.

Configura los detalles:

* **Type of Action:** Visit website
* **Button Text:** `Track now`
* **URL Type:** Dynamic
* **Website URL:** `https://snte.me/{{1}}` (Este es un enlace de rastreo acortado donde `{{1}}` se reemplaza dinámicamente con el código generado por tu socio de envío.)

En **Sample URL Setup**:

* **Variable value:** `URL short code`
* **Sample text:** `https://snte.me/DL123456789IN` (Ejemplo para aprobación)

Haz clic en **Create template** una vez completado.

\[*Know more about the different buttons available in templates*]

</details>

<details>

<summary><mark style="color:blue;"><strong>A.2. Setting up the SMS Template</strong></mark></summary>

<figure><img src="https://392978341-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsZtOBCP9JV8XEWJpUU4t%2Fuploads%2Fs8bnFShLRttc87zvDwgV%2Fimage.png?alt=media&#x26;token=c638721a-0706-4a94-a050-36301d678a38" alt="" width="563"><figcaption></figcaption></figure>

1. Ve a la sección **Templates > SMS** en el menú lateral del panel de Mercuri.
2. Haz clic en **Create Template**.

**3. Completa los detalles de la plantilla:**

* **Template Name:** `Shipment_details`
* **Template Text:** Redacta un mensaje conciso (máx. 160 caracteres) usando variables dinámicas.

Ejemplo:

`Hi {#var#}, your order #{#var#} has been shipped via {#var#}. Track it here: {#var#}. Thanks for shopping with us!`

**4. Mapea las variables:**\
Asocia cada `{#var#}` a campos como nombre, ID de pedido, compañía de envío y enlace de rastreo.

**5. Vista previa:**\
Revisa la **SMS Preview** para validar cómo verá el cliente el mensaje.

**6. Guardar:**\
Haz clic en **Create** para guardar la plantilla. Quedará disponible para automatizaciones.

</details>

#### B. Agregar la plantilla de WhatsApp / SMS al flujo automatizado

* Ve a la sección **Automation** del panel.
* Haz clic en **Create Automation**.
* Selecciona `Fulfillment Created` como tipo de automatización.
* Elige **WhatsApp** (o SMS si es necesario) como canal de entrega.
* Selecciona la plantilla aprobada `Shipment_details` que creaste antes.

***

#### Vídeotutorial

<mark style="color:blue;">**Videotutorial para la automatización de WhatsApp**</mark>

{% embed url="<https://youtu.be/b7a7oW8yE20>" %}

***

<mark style="color:blue;">**Videotutorial para la automatización de SMS**</mark>

{% embed url="<https://youtu.be/Im1bKZwd8Rk>" %}


---

# 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://docs.mercuri.cx/mercuri-docs-es/caracteristicas/automations/fluxo-de-trabalho-automatizado-para-empresas-de-comercio-eletronico/fulfillment-created-automatizaciones.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.
