Integración de Facebook Messenger para chatbots
Acerca de esta integración
Facebook Messenger es una de nuestras integraciones más populares. Permite a los creadores conectar sus chatbots directamente con Messenger, para que las empresas puedan automatizar conversaciones dentro de una de las aplicaciones de mensajería social más utilizadas.
La integración funciona con la API oficial de Messenger, lo que garantiza mensajes confiables, rápidos y totalmente compatibles con la plataforma de Meta. Los creadores solo necesitan una página de Facebook y acceso a la API para comenzar a conectar su chatbot.
Una vez configurado, un chatbot en Messenger puede responder preguntas, enviar actualizaciones, gestionar archivos multimedia y brindar soporte al cliente a gran escala. Esto convierte a Messenger en un canal práctico para empresas que buscan ofrecer comunicación instantánea donde sus clientes ya pasan tiempo.
Funciones clave
- Automatiza conversaciones con clientes
- Envía respuestas instantáneas
- Admite imágenes, videos y archivos
- Personaliza mensajes con datos del chatbot
- Gestiona mensajes bidireccionales a gran escala
- Integra con la bandeja de entrada de la página de Facebook
- Activa flujos de trabajo a partir de eventos de Messenger
- Ofrece soporte al cliente en tiempo real
Preguntas frecuentes
¿Cómo conecto un chatbot a Facebook Messenger?
Para conectar un chatbot a Facebook Messenger, debes vincular una página de Facebook a tu plataforma de chatbot a través de la API de Messenger. Esto requiere autenticar tu cuenta de Facebook y seleccionar la página que atenderá el bot.
¿Qué necesito antes de configurar un chatbot en Messenger?
Antes de configurar un chatbot en Messenger, necesitas una página de Facebook publicada, una cuenta de desarrollador de Meta y una plataforma de chatbot que sea compatible con la integración de Messenger.
¿Necesito revisión o aprobación de Facebook para publicar un bot en Messenger?
Necesitas revisión de la aplicación de Facebook si tu bot de Messenger usará funciones avanzadas como envíos masivos o menús persistentes. Si tu bot solo responde a mensajes de usuarios dentro de la ventana de 24 horas, no se requiere revisión de la aplicación.
¿Los chatbots de Messenger pueden gestionar imágenes, videos y archivos?
Los chatbots de Messenger pueden enviar y recibir texto, imágenes, GIFs, videos, mensajes de audio y archivos adjuntos.
¿Cómo pruebo mi chatbot en Messenger antes de publicarlo?
Para probar un chatbot en Messenger antes de publicarlo, puedes usar administradores o editores de tu página de Facebook para realizar conversaciones privadas con el bot.
¿Hay costos por enviar mensajes en Facebook Messenger?
No hay costos por enviar mensajes en Facebook Messenger. Las empresas pueden enviar mensajes gratis a los usuarios dentro de las 24 horas desde la última interacción del usuario, pero fuera de ese plazo solo se permiten tipos de mensajes aprobados como notificaciones únicas o mensajes patrocinados.
<iframe src="https://www.youtube.com/embed/pOIrLMpZZqc"></iframe>
The Facebook and Messenger integration empowers your chatbot to seamlessly interact across Facebook's messaging ecosystem, combining both Messenger and Facebook Page capabilities into one powerful solution. Connect your AI-powered chatbot to engage with your audience through multiple touchpoints: respond to direct messages, reply to comments on Facebook Page posts, and even initiate private conversations directly from post comments.
## Configuration (Updates)
### Manual configuration
#### Webhook Subscriptions
Using the Messenger App in your Meta app, subscribe to the following fields:
- **messages**: Required to receive incoming direct messages
- **messaging_postbacks**: Required to handle button clicks and quick replies
- **(NEW) feed**: Required to receive and respond to comments on Facebook page posts. This field is essential for the comment interaction features and proactive conversation from comments.
## Proactive Conversations
The integration now supports proactive conversation creation, letting you seamlessly move from public interactions to private DMs. When someone comments on a post from your Facebook Page, you can use that comment’s ID to automatically initiate a private conversation with the user.
## Migrating from 4.x to 5.x
### Reauthorization for comment replies
If your bot was previously connected to your Facebook page using OAuth, you will need to complete the authorization flow again in order to receive messages on the `commentReplies` channel.
### Changes to the 'Get Or Create Conversation' card
The following changes have been implemented:
- Renaming of the `id` parameter to `userId`. The ID still corresponds to the Messenger ID of the user that is or will be taking part in the conversation.
- It is now the responsibility of the Bot developer to ensure the validity of the provided user ID. No additional checks are made in the action.
### Removal of `recipientId` and `senderId` conversation tags
The `recipientId` and `senderId` conversation tags were removed because of their redundancy. The recipient ID, which corresponded to the Bot's Messenger ID, can still be found in the `recipientId` message tag of incoming messages or in the `senderId` message tag of outgoing messages. The sender ID, which corresponded to the user's Messenger ID, can still be found in the `id` conversation tag.
### Markdown message type
The Markdown message type has been deprecated, so its support has been removed in the `channel` channel. You can use the text message type to send Markdown instead.
## Migrating from 3.x to 4.x
### _postback_ and _say_ messages prefix
In version 4.0 of Messenger, _postback_ and _say_ messages no longer use the prefixes `postback:` or `say:`. If your bot relied on these prefixes for logic or transitions, you can update it to depend solely on the value set for the postback.