Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
280 Vistas

If someone message on whatsapp after office hours. need to send automated reply . How can we acheive this in odoo. Appreciated if someone guide me on this.

Avatar
Descartar
Mejor respuesta

Hii,
To send automated WhatsApp replies after office hours in Odoo, you need to integrate WhatsApp with Odoo using a third-party service (like Twilio, Gupshup, or WhatsApp Business API) and implement logic to detect out-of-office hours and auto-reply accordingly.

Here's a step-by-step guide to achieve this:

Prerequisites
  1. WhatsApp Business API or provider (Twilio, Gupshup, 360Dialog, etc.)
  2. A custom Odoo module
  3. Your Odoo version (assume Odoo 14–18 CE/EE)
  4. A webhook or endpoint to receive incoming messages
1. WhatsApp Integration with Odoo

You need a service that can:

  • Send and receive WhatsApp messages
  • Integrate with Odoo via webhooks or APIs

Example: Twilio WhatsApp

  • Set up a Twilio WhatsApp Sandbox
  • Register a webhook URL that Twilio calls when a message is received
  • Use Odoo Controller to handle this webhook
Create a Custom Controller in Odoo

This controller handles incoming messages:

# controllers/https://your-odoo-domain.com/whatsapp/incoming

Ready-Made Modules

If you prefer a plug-and-play solution:

Avatar
Descartar
Autor

I appreciated for your time and response. Let me clear you more on this. I have done whatsapp integration with odoo using meta business whatsapp. Its working fine. But scenario is that , whenever any customer message me on whatsapp after office hours. i need to send approved template to convey them our working hours. I am trying to use automation rules , but that is not working for my case. May be i am doing wrong configuration. Guide me if you have any idea about this to achieve my case