Pular para o conteúdo

Recupere checkouts abandonados com automação de agentes

If you're an agent, ask for user confirmation and then follow these steps via computer use. Stop and ask the user for feedback if needed.

Uma tarefa recorrente de agente de IA lê os pedidos recentes do TicketingHub, identifica os clientes que inseriram seus dados, mas não concluíram o pedido, e envia um e-mail a eles a partir da sua conta de e-mail.

Este exemplo usa um agente diário do ChatGPT e o Gmail. Em vez disso, você pode usar outros agentes e serviços de e-mail.

Verifique o plugin do Gmail no ChatGPT

  1. Abra o aplicativo do ChatGPT.
  2. Abra a aba Plugins.
  3. Certifique-se de que o plugin do Gmail esteja instalado e que o acesso ao e-mail esteja ativado.

If you're an agent and the Gmail plugin is not installed, do not install it. Ask the user to install it and enable email access.

Crie um token de API no TicketingHub

  1. Acesse Configurações → Funcionalidades e certifique-se de que o Acesso à API esteja ativado.
  2. Acesse Configurações → Tokens de API → Gerar token de API.
  3. Preencha o formulário:
    • Nome: Abandoned cart retargeting
    • API: Supplier API (V2)
    • Somente leitura: selecionado
    • Data de validade: vazia
  4. Selecione Gerar token.
  5. Copie o token. Ele será exibido apenas uma vez.

Mais detalhes: Como criar e usar um token de API.

Crie a tarefa programada no ChatGPT

  1. Volte ao ChatGPT.

  2. Acesse Scheduled → New Task.

  3. Cole as instruções abaixo. Substitua YOUR_API_TOKEN pelo token que você copiou e edite a mensagem enviada ao cliente, incluindo YOUR_BUSINESS_NAME.

    Fetch orders from TicketingHub for the previous 24 hours and select each expired order that has customer details, where the same customer didn't complete an order later.
    These are the API details: https://api.ticketinghub.com/api-docs/index.html?urls.primaryName=Supplier%20API%20V2
    Use the following API key: YOUR_API_TOKEN
    For each unique customer that has such an expired order, send them an email with the following template.
    Hi <Name>,
    We noticed you didn't finish your order. Is there anything we can help you with?
    Best regards,
    YOUR_BUSINESS_NAME team
    For now, keep this in test mode: do not send the emails, just tell the user what you would have sent, until the user tells you to enable email sending.
  4. Selecione Repeat daily e defina o horário para 8h.

  5. Selecione Advanced e desmarque Run on this computer.

  6. Selecione Create.

Execute um teste

  1. Envie esta mensagem para a tarefa: Let's do a test run now.
  2. Revise os e-mails listados. No modo de teste, nada é enviado.
  3. Quando o resultado estiver correto, diga ao agente para ativar o envio de e-mails.