Skip to content

Commit fff986d

Browse files
authored
Fixes #1031 - Overhaul WhatsApp configuration and align it to the new flow from Meta
1 parent fddb271 commit fff986d

27 files changed

+209
-403
lines changed

channels/whatsapp/index.rst

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,33 @@
11
WhatsApp
22
========
33

4-
With the release of Zammad 6.3, you can now connect your Zammad with a
5-
WhatsApp Business account, allowing your customers to reach out to you through
6-
WhatsApp. 🎉
7-
8-
If you already dived deep into this topic, you can head to the setup guide.
9-
If not, we strongly encourage you to read the prerequisites and limitations
10-
of this channel carefully and to follow our tutorial for preparing your
11-
setup.
12-
13-
We tried to keep it clear and created a separate sub-page for the necessary
14-
steps on Meta/WhatsApp side.
4+
Connect Zammad with a WhatsApp Business account so your customers can
5+
reach out to you through WhatsApp. 🎉
156

167
.. warning::
17-
Please be aware that the usage of **WhatsApp Cloud API** is mandatory to
18-
connect WhatsApp to Zammad. You won't be able
19-
to connect to WhatsApp in Zammad if you just use the WhatsApp Business *App*.
20-
Have a look
21-
`here <https://developers.facebook.com/docs/whatsapp/cloud-api>`_
22-
for further information about the Cloud API.
23-
24-
There may be additional costs for you from Meta/WhatsApp side. Have a look
25-
at their
26-
`pricing page <https://developers.facebook.com/docs/whatsapp/pricing>`_ to
27-
be safe from surprises.
288

29-
Be aware that if you go through the whole process, it is very time consuming.
30-
You should have some time to follow our preparation guide.
9+
- The usage of **WhatsApp Cloud API** is mandatory to connect WhatsApp to
10+
Zammad. You won't be able to connect to WhatsApp in Zammad if you just use
11+
the WhatsApp Business *App*. Have a look
12+
`here <https://developers.facebook.com/docs/whatsapp/cloud-api>`_
13+
for further information about the Cloud API.
14+
- There may be additional costs for you from Meta/WhatsApp side. Have a look
15+
at their
16+
`pricing page <https://developers.facebook.com/docs/whatsapp/pricing>`_ to
17+
be safe from surprises.
18+
- This setup process can be very time consuming. You should have some time to
19+
follow this guide.
20+
21+
If you are already familiar with Meta's app creation process and their developer
22+
console, you can directly jump to the setup page.
23+
In all other cases, we strongly encourage you to read about the limitations
24+
of this channel carefully and to follow the preparation steps first.
25+
26+
This guide is separated in 3 sub-pages:
3127

3228
.. toctree::
33-
:hidden:
29+
:maxdepth: 1
3430

35-
preparation
36-
prerequisites
3731
limitations
38-
setup
32+
preparation
33+
setup

channels/whatsapp/preparation.rst

Lines changed: 37 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,32 @@ Preparation
33

44
Here you can find instructions for the required steps you need to take before
55
you can use the WhatsApp channel in Zammad.
6-
76
Please note that these steps may change in the future, depending on changes on
87
Meta's side. You should also consider to read their docs if you have issues:
98

109
- `WhatsApp Cloud API <https://developers.facebook.com/docs/whatsapp/cloud-api>`_
1110
- `WhatsApp Business Platform <https://developers.facebook.com/docs/whatsapp>`_
1211

12+
Prerequisites
13+
-------------
14+
15+
- Make sure your system is accessible from the internet because WhatsApp sends
16+
messages via webhooks to your system.
17+
- Make sure to have properly set up your
18+
:doc:`FQDN in Settings > System </settings/system/base>` (for the callback
19+
URL Meta will use to deliver new messages).
20+
1321
.. _create-meta-business-account:
1422

1523
Create a Meta Business Account
1624
------------------------------
1725

1826
If you don't already have a business account, visit
19-
https://business.facebook.com/overview and click on "Create an account":
20-
21-
.. figure:: /images/channels/whatsapp/create-meta-business-account.png
22-
:alt: Meta business account starting page
23-
:align: center
24-
27+
https://business.facebook.com/overview and click on "Create an account".
2528
Have a look at
2629
`Meta's documentation <https://www.facebook.com/business/help/1710077379203657?id=180505742745347>`_
2730
if you have problems.
2831

29-
3032
Create a Meta Developer Account
3133
-------------------------------
3234

@@ -38,109 +40,69 @@ Create a Meta Developer App
3840
---------------------------
3941

4042
While already logged in with your developer account, go to
41-
https://developers.facebook.com/apps/.
42-
43-
You will see a screen like the following screenshot. Click on "Create App" and
44-
follow the steps below.
43+
https://developers.facebook.com/apps/. Click on **Create App** and follow the
44+
steps below.
4545

4646
.. figure:: /images/channels/whatsapp/meta-create-app.png
4747
:alt: Meta developer app overview
4848
:align: center
4949

50-
Choose "Other" when you are asked what you want to do with your app:
50+
Enter a fitting name and provide a contact email address for your app:
5151

5252
.. figure:: /images/channels/whatsapp/meta-create-app-step1.png
5353
:alt: Meta app creation step 1
5454
:align: center
55-
:scale: 50%
5655

57-
Choose "Business" as app type:
56+
Choose **Connect with customers through WhatsApp** as use case:
5857

5958
.. figure:: /images/channels/whatsapp/meta-create-app-step2.png
6059
:alt: Meta app creation step 2
6160
:align: center
62-
:scale: 50%
6361

64-
Enter a name for the app, a contact email address and a business account.
65-
Please note that the name may not contain specific product names from Meta, as
66-
you can see in the screenshot below.
62+
Choose a business portfolio, in case you have more than one:
6763

6864
.. figure:: /images/channels/whatsapp/meta-create-app-step3.png
69-
:alt: Meta app creation step 2
70-
:align: center
71-
:scale: 50%
72-
73-
If you already have a business account, you should assign it. In this step, this
74-
is optional, but later it is required anyway. Click on "Create App" to finish
75-
this step.
76-
77-
Add WhatsApp Product to Your App
78-
--------------------------------
79-
80-
Now you have to add a product to your app. In our case, this is WhatsApp.
81-
Search for it and click on "Set up":
82-
83-
.. figure:: /images/channels/whatsapp/meta-add-product.png
84-
:alt: Add a product to your app
65+
:alt: Meta app creation step 3
8566
:align: center
8667

87-
In the next step, you have to add a "Meta Business Account". This guide assumes
88-
that you already have one. If not, go to the
89-
:ref:`instructions above <create-meta-business-account>` and create one.
68+
Check if additional steps are required and follow them. In case everything is
69+
fine, you should see a screen like this:
9070

91-
.. figure:: /images/channels/whatsapp/meta-add-product-step1.png
92-
:alt: Add the product WhatsApp to your app
71+
.. figure:: /images/channels/whatsapp/meta-create-app-step4.png
72+
:alt: Meta app creation step 4
9373
:align: center
94-
:scale: 70%
95-
96-
Create a System User
97-
--------------------
98-
Go to `Users > System users <https://business.facebook.com/settings/system-users/>`_
99-
and add a system user. This is required to get a permanent API token. Make sure
100-
the user has admin permissions.
10174

102-
After creating a system user, you should see a screen similar to the one below.
103-
Here you can assign assets and (re-)generate an access token.
75+
After that, you will see a summary of your configuration. Check if everything is
76+
correct and go back to the dashboard via the button:
10477

105-
For now we just assign assets to this user. The creation of the token is
106-
covered in the :doc:`Zammad setup section </channels/whatsapp/index>` because
107-
the token is only displayed once and then you can copy and paste it directly.
108-
109-
.. figure:: /images/channels/whatsapp/created-system-user.png
110-
:alt: System user overview
78+
.. figure:: /images/channels/whatsapp/meta-create-app-step5.png
79+
:alt: Meta app creation step 5
11180
:align: center
11281

113-
You now have to assign assets to this user. Choose your app
114-
and "Manage app" permissions:
115-
116-
.. figure:: /images/channels/whatsapp/system-user-assign-assets.png
117-
:alt: Assign assets to system user
118-
:align: center
119-
:scale: 70%
12082

121-
Configure Your WhatsApp Business Platform
122-
-----------------------------------------
83+
Assign a Phone Number
84+
---------------------
12385

124-
After adding a "Meta Business Account" to your app, the "App Dashboard" is
125-
presented to you. Click on "Start using the API":
86+
In the app dashboard, first re-open the configuration:
12687

127-
.. figure:: /images/channels/whatsapp/meta-app-dashboard-overview.png
128-
:alt: App dashboard overview
88+
.. figure:: /images/channels/whatsapp/meta-app-dashboard.png
89+
:alt: Meta app dashboard configuration option.
12990
:align: center
13091

131-
Assign an Unused Phone Number
132-
-----------------------------
92+
Now go to **API Setup** and choose or add a phone number.
13393

134-
Please note: this number may not be used in a WhatsApp app already!
94+
.. note::
95+
- This number may not be used in a WhatsApp app already, not even in a
96+
WhatsApp Business app.
97+
- In case you want to test it with a provided test number, additional
98+
steps might be required (see
99+
`Reddit thread <https://www.reddit.com/r/WhatsappBusinessAPI/comments/1oa4ftw/comment/nk7sxtq/>`_).
135100

136101
.. figure:: /images/channels/whatsapp/add-phone-number.png
137102
:align: center
138103
:alt: Adding a new phone number to your app
139104

140105
Click through the steps adding your information. You have to verify your number
141106
by receiving a security code and repeating it when asked.
142-
143107
After you successfully performed these steps, you are now good to go with
144-
the :doc:`setup on Zammad side <index>`. 🎉
145-
146-
We promise it will become easier! 🤓
108+
the :doc:`channel setup on Zammad side <setup>`.

channels/whatsapp/prerequisites.rst

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)