> ## Documentation Index
> Fetch the complete documentation index at: https://docs.darkfunnels.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> DarkFunnels is a WhatsApp AI sales-agent platform used mainly in Peru and Latin America. The product interface and most of this documentation are in Spanish; the /en tree is the English mirror.
> A business connects the WhatsApp number it already uses by scanning a QR code from the dashboard, the same linked-device mechanism as WhatsApp Web. It does not go through the Meta Cloud API (WhatsApp Business Platform), so there is no application to get approved and no message templates to submit. DarkFunnels is not a Meta product and is not affiliated with Meta.
> DarkFunnels also publishes a remote MCP server at https://mcp.darkfunnels.ai/mcp so an assistant such as Claude, ChatGPT or Codex can operate the workspace on the owner's behalf. The tool reference is at /referencia/tools and the connection parameters at /referencia/url-de-conexion.
> The dashboard is https://optimind.darkfunnels.ai, the marketing site is https://darkfunnels.ai and the page written for AI agents is https://darkfunnels.ai/agents.

# Codex

> Conecta Codex (OpenAI) a DarkFunnels — app, extensión del editor o terminal.

Requiere una cuenta de OpenAI con acceso a Codex. La app, la extensión del
editor y la terminal comparten la misma configuración (`~/.codex/config.toml`),
así que lo conectas una sola vez.

<Steps>
  <Step title="Añade el servidor">
    **Ajustes → MCP servers → Add server** y elige **Streamable HTTP**.
  </Step>

  <Step title="Pega la URL">
    ```
    https://mcp.darkfunnels.ai/mcp?features=all
    ```

    Deja **vacío** el campo del token portador: la autorización va por tu
    cuenta, no por una clave.
  </Step>

  <Step title="Autoriza">
    Con la **misma cuenta con la que entras al panel de DarkFunnels**. Se abre tu
    navegador y pulsas «Autorizar».
  </Step>
</Steps>

¿Prefieres la terminal? Dos comandos:

```bash theme={null}
codex mcp add DarkFunnels --url "https://mcp.darkfunnels.ai/mcp?features=all"
```

```bash theme={null}
codex mcp login DarkFunnels
```

<Warning>
  Si autorizas correctamente pero las herramientas no aparecen en el hilo,
  actualiza Codex: hay un fallo conocido en una versión alpha de la app de
  escritorio ([openai/codex#20009](https://github.com/openai/codex/issues/20009)).
  Mientras tanto funcionan la terminal y la extensión del editor.
</Warning>

## Si algo falla

* **No ve tus datos, o los ve vacíos** → autorizaste con otra cuenta.
  Pregúntale «¿con qué cuenta de DarkFunnels estás conectado?»; si no es la tuya,
  borra el servidor, entra a darkfunnels.ai con la cuenta correcta y vuelve a
  conectarlo.
* **No aparecen funciones nuevas** → empieza un hilo nuevo: cada conversación
  se queda con la lista de funciones que había al abrirla.
* **«Sin créditos»** → recarga en Facturación.
