Intégration ManyChat
En bref
ManyChat ne supporte pas MCP — uniquement External Request HTTP. Mappez la réponse JSON pour afficher les étapes au technicien.
Prérequis
- Compte ManyChat Pro ou supérieur (External Request)
- Clé API AskMarcel (ak_live_)
- Flow ManyChat avec collecte marque/modèle/code erreur
Configurer External Request
- 1
Ajouter une action External Request
Dans votre flow → Actions → External Request.
- 2
Méthode et URL
POST https://api.askmarcel.app/v1/diagnostic
- 3
Headers
Authorization: Bearer {{votre_clé}} et Content-Type: application/json.
- 4
Body
Utilisez les variables ManyChat collectées dans le flow.
Body JSON{ "brand": "{{brand}}", "model": "{{model}}", "error_code": "{{error_code}}" }
Mapper la réponse
ManyChat gère mal les tableaux imbriqués (steps[]). Deux stratégies :
- Simple : affichez le champ diagnostic (string) + source.manual + source.page
- Avancé : passez par Make/n8n comme intermédiaire pour formater steps[] en texte
Limitation mapping
Si steps[] ne s'affiche pas correctement, utilisez le champ diagnostic seul ou un intermédiaire Make/n8n.
Afficher au technicien
Utilisez un bloc Message avec les custom fields mappés : {{diagnostic}}, Page {{source.page}} — {{source.manual}}.
Vérifier que ça marche
Déclenchez le flow avec un code erreur test. Le message ManyChat doit afficher le diagnostic et la source.
curl -s https://api.askmarcel.app/v1/diagnostic \
-H "Authorization: Bearer ak_live_..." \
-H "Content-Type: application/json" \
-d '{"brand":"Mitsubishi","model":"Ecodan PUHZ-W85","error_code":"E7"}'Limites connues
- Pas de MCP — REST uniquement
- External Request nécessite un plan payant ManyChat
- Tableaux imbriqués (steps[]) : mapping limité — préférez Make/n8n si besoin de liste formatée
Vidéo en cours de tournage
Prévenez-moi