> For the complete documentation index, see [llms.txt](https://assiny.gitbook.io/assiny-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://assiny.gitbook.io/assiny-docs/integracoes/sellflux.md).

# SellFlux

## Como Integrar com a SellFlux

Conecte seu checkout da Assiny diretamente à SellFlux para iniciar funis de automação, adicionar leads e gerenciar suas vendas de forma integrada.

Este guia mostra como configurar a SellFlux para receber as notificações da Assiny.

### Configuração Passo a Passo

O processo é feito em duas partes:

1. **Na SellFlux:** Criar a integração com a Assiny, importar a configuração JSON e copiar a URL do Webhook.
2. **Na Assiny:** Colar a URL do Webhook para enviar os eventos.

#### Parte 1: Configurando na SellFlux

1. Acesse seu painel de controle na **SellFlux**.
2. No menu lateral, clique em **Integrações**.
3. Na tela "Minhas Integrações", clique no botão **+ Nova Integração** no canto superior direito.
4. Procure e selecione **Assiny** na lista de plataformas.

<figure><img src="/files/jIieXLgYBjl2cRzluXhP" alt="" width="375"><figcaption></figcaption></figure>

5. Procure e selecione Assiny na lista de plataformas.

<figure><img src="/files/cwAQ5mNpteVSqnOQVLxN" alt="" width="563"><figcaption></figcaption></figure>

6. Na seção **Campos personalizados**, clique no ícone de **Importar** (o ícone de uma seta apontando para cima, ao lado do "Adicionar").

<figure><img src="/files/yJiePx8uhVcchpskCexE" alt=""><figcaption></figcaption></figure>

6. Uma janela "Importar Configurações" irá aparecer.
7. **Copie o código JSON abaixo:**

```
{
  "customKeys": [
    {
      "key": "customer.name",
      "dataType": "string",
      "label": "Nome do Cliente"
    },
    {
      "key": "customer.email",
      "dataType": "string",
      "label": "Email do Cliente"
    },
    {
      "key": "customer.phone",
      "dataType": "string",
      "label": "Telefone do Cliente"
    },
    {
      "key": "product.name",
      "dataType": "string",
      "label": "Nome do Produto"
    },
    {
      "key": "transaction.status",
      "dataType": "string",
      "label": "Status da Venda"
    },
    {
      "key": "transaction.amount",
      "dataType": "number",
      "label": "Valor Total"
    }
  ]
}
```

9. **Cole o código JSON** dentro da caixa de texto na SellFlux e clique em **Importar**. Isso irá mapear automaticamente os campos que a Assiny envia.
10. De volta à tela de "Configurações gerais", localize o campo **URL do webhook** e clique no ícone para **copiar** a URL.
11. Clique em **Salvar Integração**.

#### Parte 2: Configurando na Assiny

Agora, vamos informar à Assiny para onde ela deve enviar os dados das vendas.

1. Em outra aba, acesse sua conta na **Assiny**.
2. No menu lateral, vá em **Integrações** e depois em **Webhooks**.
3. Clique em **Novo Webhook**.
4. Preencha os campos:
   * **Nome:** Dê um nome fácil de identificar (ex: `Envio para SellFlux`).
   * **URL do Webhook:** **Cole a URL** que você copiou da SellFlux na Parte 1.
   * **Produto:** Selecione o produto da Assiny cuja compra irá disparar a automação.
   * **Eventos:** Selecione **Todos os eventos**.
5. Clique em **Salvar**.

### Pronto!

Sua integração está ativa. Quando uma compra do produto selecionado for concluída na Assiny, os dados do cliente e da transação serão enviados automaticamente para a SellFlux, populando os campos personalizados que você importou.

### Solução de Problemas

**P: Os dados não estão chegando na SellFlux.** R: Verifique os seguintes pontos:

1. Se a **URL do Webhook** na Assiny é *exatamente* a mesma fornecida pela SellFlux.
2. Confira se não há **espaços em branco** antes ou depois da URL colada na Assiny.
3. Verifique se o JSON foi importado corretamente na SellFlux e se os campos personalizados foram criados.


---

# 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:

```
GET https://assiny.gitbook.io/assiny-docs/integracoes/sellflux.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
