# Mail Whatsapp Gateway

This module allows to respond whatsapp chats.

This way, a group of users can respond customers or any other set of partners in an integrated way.

Table of contents

- Configuration
  - First steps
  - Configure the gateway
- Usage
- Bug Tracker
- Credits
  - Authors
  - Contributors
  - Other credits
  - Maintainers

# Configuration

## First steps

You need to create a WhatsApp Business Account (WABA), a Meta App and define a phone number. You can follow this steps.

If you create a test Business Account, passwords will change every 24 hours.

In order to make the webhook accessible, the system must be public.

## Configure the gateway

Once you have created the Meta App, you need to add the gateway and webhook. In order to make it you must follow this steps:

- Access Settings > Emails > Mail Gateway
- Create a Gateway of type WhatsApp

> - Use the Meta App authentication key as Token field
> - Use the Meta App Phone Number ID as Whatsapp from Phone field
> - Write your own Webhook key
> - Use the Application Secret Key on Whatsapp Security Key. It will be used in order to validate the data
> - Press the Integrate Webhook Key. In this case, it will not integrate it, we need to make it manually
> - Copy the webhook URL

- Access Facebook Apps website
- Access your App then Whatsapp > Configuration
- Create your webhook using your URL and put the Whatsapp Security Key as validation Key
- Administer the Webhook and activate the messages webhook

# Usage

1. Access Gateway
2. Wait until someone starts a conversation.
3. Now you will be able to respond and receive messages to this person.

# Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

# Credits

## Authors

- Creu Blanca
- Dixmit

## Contributors

- Olga Marco <olga.marco@creublanca.es>
- Enric Tobella <etobella@creublanca.es>

## Other credits

This work has been funded by AEOdoo (Asociación Española de Odoo - https://www.aeodoo.org)

## Maintainers

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/social project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.