@@ -3,30 +3,32 @@ Preparation
33
44Here you can find instructions for the required steps you need to take before
55you can use the WhatsApp channel in Zammad.
6-
76Please note that these steps may change in the future, depending on changes on
87Meta'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
1523Create a Meta Business Account
1624------------------------------
1725
1826If 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".
2528Have a look at
2629`Meta's documentation <https://www.facebook.com/business/help/1710077379203657?id=180505742745347 >`_
2730if you have problems.
2831
29-
3032Create a Meta Developer Account
3133-------------------------------
3234
@@ -38,109 +40,69 @@ Create a Meta Developer App
3840---------------------------
3941
4042While 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
140105Click through the steps adding your information. You have to verify your number
141106by receiving a security code and repeating it when asked.
142-
143107After 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 >`.
0 commit comments