MAILCHIMP Automations Get - Buscar Automação
O que é este Node?
O Mailchimp Automations Get é o node responsável por buscar detalhes completos de uma automação específica usando seu ID.
Por que este Node existe?
Consultar automações é importante para gestão. Este node existe para:
- Verificar status: Checar se automação está ativa
- Estatísticas: Ver quantos emails foram enviados
- Configurações: Consultar settings da automação
- Decisões: Lógica baseada em status
- Monitoramento: Acompanhar performance
Como funciona internamente?
Código interno (mailchimp.executor.ts:332-339):
case 'get':
const automationId = this.replaceVariables(data.automationId || '', context.variables);
const getAutomationResponse = await axios.get(`${baseUrl}/automations/${automationId}`, {
headers: {
'Authorization': `Bearer ${apiKey}`,
},
});
return getAutomationResponse.data;
Parâmetros
| Campo | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| automationId | string | Sim | ID da automação |
Exemplo: Verificar Status de Automação
{
"name": "Verificar Status de Automação",
"nodes": [
{
"id": "start_1",
"type": "start",
"position": { "x": 100, "y": 100 },
"data": { "label": "Início" }
},
{
"id": "mailchimp_1",
"type": "mailchimp",
"position": { "x": 300, "y": 100 },
"data": {
"label": "Buscar Automação",
"resource": "automations",
"operation": "get",
"config": {
"apiKey": "{{mailchimp_api_key}}",
"server": "{{mailchimp_server}}"
},
"automationId": "{{automation_id}}",
"responseVariable": "automation"
}
},
{
"id": "condition_1",
"type": "condition",
"position": { "x": 500, "y": 100 },
"data": {
"label": "Está Ativa?",
"parameters": {
"condition": "{{automation.status}} == 'sending'"
}
}
},
{
"id": "message_active",
"type": "message",
"position": { "x": 700, "y": 50 },
"data": {
"label": "Ativa",
"parameters": {
"message": "✅ Automação ATIVA\n\n🤖 {{automation.title}}\n📧 Emails enviados: {{automation.emails_sent}}\n📊 Status: {{automation.status}}"
}
}
},
{
"id": "message_inactive",
"type": "message",
"position": { "x": 700, "y": 150 },
"data": {
"label": "Inativa",
"parameters": {
"message": "⏸️ Automação PAUSADA\n\n🤖 {{automation.title}}\n📊 Status: {{automation.status}}\n\nConsidere reativar!"
}
}
},
{
"id": "end_1",
"type": "end",
"position": { "x": 900, "y": 100 },
"data": { "label": "Fim" }
}
],
"edges": [
{ "source": "start_1", "target": "mailchimp_1" },
{ "source": "mailchimp_1", "target": "condition_1" },
{ "source": "condition_1", "target": "message_active", "label": "true" },
{ "source": "condition_1", "target": "message_inactive", "label": "false" },
{ "source": "message_active", "target": "end_1" },
{ "source": "message_inactive", "target": "end_1" }
]
}
Resposta do Node
{
"id": "abc123auto",
"workflow_id": "welcome_series",
"title": "Série de Boas-Vindas",
"status": "sending",
"recipients": {
"list_id": "xyz789",
"list_name": "Newsletter Principal"
},
"settings": {
"from_name": "Equipe Lumina",
"reply_to": "contato@lumina.com.br",
"authenticate": true,
"auto_footer": false
},
"tracking": {
"opens": true,
"html_clicks": true,
"text_clicks": false,
"goal_tracking": true
},
"emails_sent": 523,
"start_time": "2025-01-15T10:00:00+00:00",
"report_summary": {
"opens": 425,
"unique_opens": 380,
"open_rate": 72.6,
"clicks": 95,
"click_rate": 18.1
}
}
Métricas Disponíveis
- emails_sent: Total de emails enviados pela automação
- opens: Total de aberturas
- unique_opens: Aberturas únicas
- open_rate: Taxa de abertura (%)
- clicks: Total de cliques
- click_rate: Taxa de cliques (%)
Próximos Passos
→ Automations Pause - Pausar se necessário → Automations Start - Reativar se pausada