Passer au contenu principal

Comment envoyer automatiquement des rapports de campagnes LGM par email avec Zapier

Automatise l’envoi par email d’un rapport contenant les statistiques clés de tes campagnes, à la fréquence de ton choix.

Antoine Perez avatar
Écrit par Antoine Perez
Mis à jour cette semaine

Aperçu

Tu veux garder un œil sur les performances sans ouvrir LGM tous les jours ?
Avec Zapier, tu peux t’envoyer automatiquement un rapport par email contenant les métriques essentielles de tes campagnes (acceptations, réponses, conversions, etc.).

Tu choisis simplement la fréquence d’envoi : chaque semaine, toutes les deux semaines ou une fois par mois.

Avantages

  • Visibilité : Suivre facilement l’évolution de tes taux d’acceptation et de réponse

  • Partage : Envoyer automatiquement les résultats à ton équipe

  • Fiabilité : Recevoir des rapports planifiés qui arrivent toujours à l’heure


Configurer l’envoi automatique des rapports avec Zapier

Étape 1 : Récupérer les prérequis (clé API + Campaign ID)

Récupérer ta clé API externe

Ouvre LGMAll settings.

Va dans Integrations & APIAPI, puis copie ta clé API externe:

Trouver ton Campaign ID

Pour récupérer les statistiques de ta campagne, tu as besoin de son Campaign ID, qui correspond à l’identifiant interne de la campagne.

  1. Ouvre la page de ta campagne.

  2. L’ID apparaît directement dans l’URL, par exemple :
    https://app.lagrowthmachine.com/campaigns/66d5b7969da42c6b0685e9/overview
    Ici, le Campaign ID est 66d5b7969da42c6b0685e9.


Étape 2 : Créer le scénario dans Zapier

Pour créer le Zap, suis ce tutoriel pas à pas dans Zapier afin de configurer chaque étape du scénario:

Appel API 1 : Get Campaign (informations de la campagne)

Après avoir créé ton trigger Zapier de type Schedule, ajoute un module Webhook Custom Request et utilise la méthode GET avec l’URL suivante :

https://apiv2.lagrowthmachine.com/flow/campaigns/:campaignId?apikey=Your-external-apikey

Remplace Your-external-apikey par ta clé API externe.
Remplace :campaignId par ton Campaign ID.

Paramètres du module :

  • Data Pass-Through? : Off

  • Unflatten : On

Après avoir testé l’étape, vérifie que tu reçois bien les champs de la campagne, par exemple :


{{=gives["338690464"]["campaign"]["name"]}}

Note : Cet appel permet de récupérer le nom de la campagne et ses métadonnées afin de les afficher dans l’email (en-tête, objet, etc.).

Appel API 2 : Get Campaign Stats (métriques)

Ajoute un second module Webhook Custom Request en utilisant la méthode GET avec l’URL suivante :

https://apiv2.lagrowthmachine.com/flow/campaigns/:campaignId/stats?apikey=Your-external-apikey

Remplace Your-external-apikey et :campaignId comme précédemment.

Paramètres du module :

  • Data Pass-Through? : Off

  • Unflatten : On

Important : Le scénario contiendra deux appels API distincts :

  • Get Campaign → Contexte et nom de la campagne

  • Get Campaign Stats → Métriques chiffrées

Étape 3 : Préparer l’email automatisé

Tu peux personnaliser :

  • L’objet de l’email dans Subject

  • Le contenu dans Content, en insérant les champs retournés par les appels API (nom de la campagne, taille de l’audience, réponses, etc.)

Si tu préfères utiliser un template existant, sélectionne Body typeHTML, puis colle le code ci-dessous :

Code HTML à copier

<!-- ✅ LGM Weekly Campaign Report - HTML email (600px) -->
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<title>Weekly LGM Campaign Report</title>
<meta name="color-scheme" content="light only">
<meta name="supported-color-schemes" content="light only">
</head>
<body style="margin:0; padding:0; background:#f5f6fb; font-family:Arial, Helvetica, sans-serif; color:#1c1c28;">
<div style="display:none; max-height:0; overflow:hidden; opacity:0;">Your weekly LGM campaign report is ready.</div>

<table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%" style="background:#f5f6fb; padding:24px 12px;">
<tr>
<td align="center">
<table role="presentation" cellpadding="0" cellspacing="0" border="0" width="600" style="width:600px; max-width:600px; background:#ffffff; border-radius:12px; overflow:hidden; box-shadow:0 2px 8px rgba(20,16,51,0.06);">
<!-- Header -->
<tr>
<td style="background:#1a1535; padding:18px 20px;">
<table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="middle" style="width:48px;">
<img src="https://i.imgur.com/QGlv090.png" width="120" alt="La Growth Machine" style="display:block; height:auto;">
</td>
<td align="right" valign="middle">
<div style="font-size:16px; color:#C6C3EE; letter-spacing:.2px;">Weekly Campaign Report</div>
<div style="font-size:18px; color:#C6C3EE; margin-top:4px;">{{1.data.campaign.name}}</div>
<div style="font-size:20px; color:#FFFFFF; font-weight:700; line-height:1.2; margin-top:2px;">
Campaign ID: {{10.data.engagementStats.campaignId}}
</div>
</td>
</tr>
</table>
</td>
</tr>

<!-- Summary band -->
<tr>
<td style="background:#f0eff8; padding:14px 20px; border-bottom:1px solid #e7e6f2;">
<div style="font-size:14px; color:#4b4576;">📊 Performance snapshot — sent automatically every Monday.</div>
</td>
</tr>

<!-- Overview -->
<tr>
<td style="padding:20px;">
<table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%"
style="border:1px solid #ececf5; border-radius:10px; overflow:hidden;">
<tr>
<td colspan="2" style="background:#faf9ff; padding:12px 16px; border-bottom:1px solid #ececf5; font-weight:700; color:#1a1535;">
Overview
</td>
</tr>
<tr>
<td style="padding:12px 16px; width:50%; border-bottom:1px solid #f2f1fa; color:#55516b;">Audience size</td>
<td style="padding:12px 16px; width:50%; border-bottom:1px solid #f2f1fa; font-weight:700; color:#1c1c28;">
{{10.data.engagementStats.audienceSize}}
</td>
</tr>
<tr>
<td style="padding:12px 16px; border-bottom:1px solid #f2f1fa; color:#55516b;">Started</td>
<td style="padding:12px 16px; border-bottom:1px solid #f2f1fa; font-weight:700; color:#1c1c28;">
{{10.data.engagementStats.started}}
</td>
</tr>
<tr>
<td style="padding:12px 16px; border-bottom:1px solid #f2f1fa; color:#55516b;">Completed</td>
<td style="padding:12px 16px; border-bottom:1px solid #f2f1fa; font-weight:700; color:#1c1c28;">
{{10.data.engagementStats.completed}}
</td>
</tr>
<tr>
<td style="padding:12px 16px; color:#55516b;">Converted</td>
<td style="padding:12px 16px; font-weight:700; color:#1c1c28;">
{{10.data.engagementStats.converted}}
</td>
</tr>
</table>
</td>
</tr>

<!-- Replies -->
<tr>
<td style="padding:0 20px 20px 20px;">
<table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%"
style="border:1px solid #ececf5; border-radius:10px; overflow:hidden;">
<tr>
<td colspan="3" style="background:#faf9ff; padding:12px 16px; border-bottom:1px solid #ececf5; font-weight:700; color:#1a1535;">
Replies
</td>
</tr>
<tr>
<td style="padding:12px 16px; width:40%; border-bottom:1px solid #f2f1fa; color:#55516b;">Contacted</td>
<td style="padding:12px 16px; width:30%; border-bottom:1px solid #f2f1fa; font-weight:700; color:#1c1c28;">
{{10.data.engagementStats.replies.contacted}}
</td>
<td style="padding:12px 16px; width:30%; border-bottom:1px solid #f2f1fa; color:#4b4576;">&nbsp;</td>
</tr>
<tr>
<td style="padding:12px 16px; border-bottom:1px solid #f2f1fa; color:#55516b;">Total replies</td>
<td style="padding:12px 16px; font-weight:700; color:#1c1c28;">
{{10.data.engagementStats.replies.replied}}
</td>
<td style="padding:12px 16px; color:#4b4576;">
{{10.data.engagementStats.replies.contactedReplyPercent}}%
</td>
</tr>
<tr>
<td style="padding:12px 16px; border-bottom:1px solid #f2f1fa; color:#55516b;">LinkedIn replies</td>
<td style="padding:12px 16px; font-weight:700; color:#1c1c28;">
{{10.data.engagementStats.replies.linkedinReplied}} / {{10.data.engagementStats.replies.linkedinContacted}}
</td>
<td style="padding:12px 16px; color:#4b4576;">
{{10.data.engagementStats.replies.linkedinContactedReplyPercent}}%
</td>
</tr>
<tr>
<td style="padding:12px 16px; color:#55516b;">Email replies</td>
<td style="padding:12px 16px; font-weight:700; color:#1c1c28;">
{{10.data.engagementStats.replies.emailReplied}} / {{10.data.engagementStats.replies.emailContacted}}
</td>
<td style="padding:12px 16px; color:#4b4576;">
{{10.data.engagementStats.replies.emailContactedReplyPercent}}%
</td>
</tr>
</table>
</td>
</tr>

<!-- Relations -->
<tr>
<td style="padding:0 20px 24px 20px;">
<table role="presentation" cellpadding="0" cellspacing="0" border="0" width="100%"
style="border:1px solid #ececf5; border-radius:10px; overflow:hidden;">
<tr>
<td colspan="3" style="background:#faf9ff; padding:12px 16px; border-bottom:1px solid #ececf5; font-weight:700; color:#1a1535;">
Relations
</td>
</tr>
<tr>
<td style="padding:12px 16px; width:40%; border-bottom:1px solid #f2f1fa; color:#55516b;">Requests sent</td>
<td style="padding:12px 16px; width:30%; border-bottom:1px solid #f2f1fa; font-weight:700; color:#1c1c28;">
{{10.data.engagementStats.relations.requestSent}}
</td>
<td style="padding:12px 16px; width:30%; border-bottom:1px solid #f2f1fa; color:#4b4576;">&nbsp;</td>
</tr>
<tr>
<td style="padding:12px 16px; border-bottom:1px solid #f2f1fa; color:#55516b;">New relations</td>
<td style="padding:12px 16px; font-weight:700; color:#1c1c28;">
{{10.data.engagementStats.relations.newRelations}}
</td>
<td style="padding:12px 16px; color:#4b4576;">
{{10.data.engagementStats.relations.newRelationsPercent}}%
</td>
</tr>
<tr>
<td style="padding:12px 16px; color:#55516b;">Already connected</td>
<td style="padding:12px 16px; font-weight:700; color:#1c1c28;">
{{10.data.engagementStats.relations.alreadyConnected}}
</td>
<td style="padding:12px 16px; color:#4b4576;">&nbsp;</td>
</tr>
</table>
</td>
</tr>

<!-- Footer -->
<tr>
<td style="padding:16px 20px 26px 20px; text-align:center; color:#6b678a; font-size:12px;">
Sent automatically every Monday • Powered by La Growth Machine & Make
</td>
</tr>
</table>

<div style="height:24px; line-height:24px;">&nbsp;</div>
</td>
</tr>
</table>
</body>
</html>

Voici le résultat du template partagé au dessus:

Et voilà.


Tu reçois désormais automatiquement un rapport clair et complet de tes campagnes, sans avoir à intervenir. Il te suffit de lancer ton Zap 🚀

Note : Les champs comme {{=gives["338690464"]["campaign"]["hubspot"]}} proviennent directement des modules Webhook.

Vérifie toujours les chemins exacts et adapte-les si nécessaire en fonction des données retournées par tes modules.

Si besoin, consulte la documentation de l’API LGM.


FAQ

Comment vérifier que mes données API sont correctement mappées ?

Teste chaque module avec Test Step et inspecte la sortie pour confirmer les chemins utilisés.

Puis-je changer la fréquence d’envoi sans recréer tout le scénario ?

Oui. Il suffit d’ajuster le module Scheduler pour modifier la cadence.

Puis-je ajouter plus de métriques dans l’email ?

Oui. Ajoute-les directement dans le HTML ou dans le bloc texte, puis mappe les champs API correspondants.

Le template HTML est-il obligatoire ?

Non. Tu peux rédiger l’email en texte brut, utiliser ce template ou créer le tien.

Avez-vous trouvé la réponse à votre question ?