# WhatsApp

## Connect with WhatsApp

Connect the Scope with WhatsApp to activate your conversational AI in WhatsApp.

## Before you begin

1. You need to have a WhatsApp business account.

## Integrate Scope with WhatsApp

1. Go to [Facebook Developer](https://developers.facebook.com/) page and create a Business app.

<figure><img src="https://lh6.googleusercontent.com/IygyG7Fmy53TvQXzGg9vQzN2cW_DIVKFu0_S5CUfvCN5p2qFKIQ5lqcnS9bZSHioqDlSaEAtuZxyDl9Jw9_RbII9vvxs0VV6AL2X0bdbQUhyUv2R-fAHGpowMTBgxETLTDgqnd9by8Ty5LU8TpLVLg" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh3.googleusercontent.com/ohii4zDCajygNG4HhsLSf8kkABml7gnZZnNUcvSZBOjsoSPbGzduRBisrruAn34d2k_PbfegDek5Ma6zhu03B146NOzU31ta9aWA5bwCQaGY4Y3YcBu3AAkm0BfQKW4YbLfoYYbXyoJDGI9ZinXWXg" alt=""><figcaption></figcaption></figure>

2. Add a WhatsApp product to your Facebook App.

<figure><img src="https://lh4.googleusercontent.com/hq55LVo5qDlwM3vaflbQeNzoghAKhEEef7L1lhpIQtcL9ttenOjMjwlZszn9HxX408lv9MqCTryghLYNIY9SL6GS5Hj2XjxCdyXXMc8RmV_FKUbFhQyA285QN2CR97hG-5Xt0eSqbznVGRH_OiQSTg" alt=""><figcaption></figcaption></figure>

3. Click on `Webhooks` – use the `Callback URL` and `Verify Token` to create an event in the WhatsApp Webhook Setup.

<figure><img src="https://lh5.googleusercontent.com/cGnnnZP-BVWaE40GnK_C2twCTmFxQH1XhYGP8kSt_JDyNkvJGV8Kbu41RIoNLi4hUnr6NWz6TyBdHr2GoLL6a54k2W4QAbdIHi7PQBC6Ip43mt81GqIiB-rhObE-UHS2GKNUOTGsZLoN7hsNcfKP5w" alt=""><figcaption></figcaption></figure>

4. Copy the `Callback URL` and `Verify token` from the scope’s WhatsApp integration settings.

<figure><img src="https://lh5.googleusercontent.com/lPDCaGnN7WYIn1tUMW-xfgjYWg7fizIGafzflETR82zbMRh5-0uZ2SC1mHlcJBQ4kQpussgmKtD9HHHGQZl1BtO0plvwh9uIoHFiIcOq1LVF6IK2VhC2Il2XuKrDtuxQl-7UdLNTyKjgbRPpCg7QhA" alt=""><figcaption></figcaption></figure>

5. Paste the `Callback URL` and `Verify token` from Mind Expression to the WhatsApp configuration.

<figure><img src="https://lh5.googleusercontent.com/7__Ykg0Ea2LOJ3yHVOjsGJYIZ8h6-jJ89w4DSyoEr2H18ajFVvh-T7DObcVYESMHyTAHvX0OjUJo935Dybioq7J0OW-Ld-9xqlQNyFHdn7NsnkVFV5em9exZoyI_55n7RT9InY2bnggBUp2Zt6-OAw" alt=""><figcaption></figcaption></figure>

6. After saving, click on manage on the `Webhook` section, and subscribe to `messages`.

<figure><img src="https://lh6.googleusercontent.com/npQg6AZ3Cqg6fRux3Hfl-eb7-uhlFn0EpXL8jhJRPgANfeBSceDm2F2vHpCIfF3eMfXY8o3XgB_q5Bf4XZv0jbvFwtBh8Jv6d7_6khqqmFRdckQnzlKWRUxhDH8K94An85gLZrEZLWgT-W-hncP9LA" alt=""><figcaption></figcaption></figure>

7. Go to `Whatsapp > Getting Started`, and copy the `Whatsapp Business Account ID`.

<figure><img src="https://lh3.googleusercontent.com/FoQ7sGG3WirX51vplZZi3czA0CVbS2Q20TuCD4wxQGxMyASaBy974f-LqkWUREAIuOWrg5LZdAjOFoYD4zi3o_NZcKv8HXmMZvOdIcfVtmUAg5SJ7lsFbuxFwyogpWh4QamZRbCwP9hHrP7n0X4KlA" alt=""><figcaption><p>'</p></figcaption></figure>

8. Paste the WhatsApp business account ID to Mind Expression’s WhatsApp integration settings.

<figure><img src="https://lh3.googleusercontent.com/9kCI_Du0M2hPM0Q4k7DrXlDeQx8kES7YbmnxyJE5Tddr63J9PI3I45R4ACwn8-YcIueYgmSfOjFi5NNqePXqqSCOy6ziXWRxtv4mNLmtmGzDqBBkZxWjYxfxibC7AlqBOd1zAxA1koreBlCi64cAPQ" alt=""><figcaption></figcaption></figure>

9. On the getting started page in meta for developers, add your business phone number to connect to the app by clicking on `Add phone number`.

<figure><img src="https://lh6.googleusercontent.com/FIFkxAldlVMcXe4z-KkWKXG68hGhbONoF-thxpq6aLJcmnBI65wukmqDZbptT2Mml223RglR-uCdgePPWJpIYlbDJk7tcgpNHzU139Ji4DzFeCWs4RbssmXGWfGFSmEtkWIcN0bSfETw-dZaGQjYTw" alt=""><figcaption></figcaption></figure>

10. .Fill out the required information then click `Next`.

<figure><img src="https://lh6.googleusercontent.com/CqxvuZy_neqxK6BNKNybGZFNAe6kcPtK5OWQ6BMLMzJilia1b-PDTPlZ8Eejm1WG87LVsXljBQDSRQq2TTgr6POBoAftO5iMhxirElSUkBL1hdklR5s-q9gH0wXxmXtNPOcD_ZlU9HK8BPpsEawAfg" alt=""><figcaption></figcaption></figure>

11. Add the business phone number for the WhatsApp CAI.

<figure><img src="https://lh3.googleusercontent.com/N4ZTZTKv758SPvke2GdC45oYMn4QvkBz3kt09Q3_nofzmcDrgjGIWxV74SuYMMx1Gsr8pWCAcDbW-9AwiBYpR0uN_XUm4PlflH8WmW9DwLoyKeBQ0qEzCwp4gH4zIO57oa0nyOOZmt5W1dJK-jsnyg" alt=""><figcaption></figcaption></figure>

12. Go to the [Facebook business](https://business.facebook.com/latest/settings) and click on `Business settings.`

<figure><img src="https://lh5.googleusercontent.com/rU6vcBA_5Lhdj4XRyGcKsQ20L71fMvZECeSovOg2yzrKANQqA9RAn8WhxpJw7BNLXqGiQtq68SzqLUkr4PcFVMug46fhDWM5AmG-95pkM0xnkO9LxWLZW61xIa_zcY5vb3za21vYg9fZi3hrRdeBqA" alt=""><figcaption></figcaption></figure>

13. Go to the `System Users` page and click on `Add assets` on the right side of `Assigned assets`. If there is no system user yet, create one first and set the user role as an `Admin`.

<figure><img src="https://lh5.googleusercontent.com/Kv8eFmArxE2SAlQZrl1G9wECwDjobQMX_vpQSQ4by1kNIxWE405jEnjyE8M-TIw6QSuB3esHB4hCSATFPChlq9wpnobnv4_cunX0GR9Fc6AcnFP2CtrhRzTd75jcJpydhO7t3ZkwgoKndjusaukg2Q" alt=""><figcaption></figcaption></figure>

14. After clicking on `Add assets`, go to `Apps` and click on the name of the app you created for WhatsApp. Turn on the `Manage App` toggle then click on `Save changes`.

<figure><img src="https://lh6.googleusercontent.com/UBl7BgVRNu_EnVfTgN11KCiwpcat2H6VXS6L3yTQVJ6i9zbkXjgYrYCg7LqOnKgNVSNXeCFuUxTV-ASGHdsYphYYzVdpxTeN7Rx2V5y-ZJapGFiDQG2gsubevkUWUc2sJBkC-tYMb2Ac4F5y8h-j" alt=""><figcaption></figcaption></figure>

15. Go to the `WhatsApp Accounts`, click `Add People` to add the user created in **Step 13**, and turn on `Manage WhatsApp account`.

<figure><img src="https://lh4.googleusercontent.com/HFhe7Q-ihaLpuld_HriJEzYPi43EFDca60cOr0t9OBbBHv_2HOdoRS9WiiNlxzFMvE3bK-UH7VcpijrBtePuTlgDYRhnEBjhp3mmA31rAEk9AMT7w5pbIqBzZEx7FIa-RcgGgrVGsqD8vrZnx7t2" alt=""><figcaption></figcaption></figure>

16. Go back to `System users` and click on `Generate new token`.

<figure><img src="https://lh3.googleusercontent.com/1htI1ekwufGN8WZ-pr_MSm3j8vTfV5JOxg77_1ePDr_7WRXEWSDxaQiohTqPIwr6s_r4-H_o3J3c9s6ufc8-7uFun60tcGj6u9eMPiXuykvAJ6911sB3dIFjlTbR6WfgsFEIqIzbil4RZr0-72c5" alt=""><figcaption></figcaption></figure>

17. Select the permissions below then click on `Generate token`.\\

    * `whatsapp_business_messaging`
    * `whatsapp_business_management`

<figure><img src="https://lh5.googleusercontent.com/PIQeSS7kiqJOYutlcFra-UqlbIeG5NDYSKHpcFey8Zsb6SpG6hicofq6XxWtHfnatO_zeShw_27kdzaxrlf2HKBZ2JNx7tJN38VFoZ052FsDUTOhLN9I-oF5uymxs-LR4Cnv7qfYdl3-E7zFZpq1" alt=""><figcaption></figcaption></figure>

18. Copy the `Access token` and paste it as `Access Token` in Mind Expression’s WhatsApp integration.

<figure><img src="https://lh4.googleusercontent.com/5zKaSK7kgiiQsY2rhaiwyYmjeFHh03yYPmZL1udsQhJUjyRF8ugc1CQ2jqp5mUvVQMHSZbR_2wgpcPUigwhHCaZ2d4nFSLUiTIt6TsXEgKtUo9NxGZaUbAYEVWAlIbPurs8cxNZE6wXIG6Ws1U1G" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh5.googleusercontent.com/-mEYRP6i4GuePY9VE8S6TWJNUmf-eeIEOuc_e-mbRF8hFO2Rc_MnYADEP7sfZclfiUv09s8S4tp4xm_2B81lSw1ljVOeVCIaNA-V2-tKJI_E82xmeeEekQUSMuv-YSsZmTskseh3opBlqu8jeSpB" alt=""><figcaption></figcaption></figure>

19. Click on `Authorization` and select the phone number used for the WhatsApp application.

<figure><img src="https://lh4.googleusercontent.com/hxkQyEeyjkv4sPEVj9FM6pMsd4u48M-CwN8xTuoIbrQbv6eciZs4gvlFf7tDNISO8RqWY3F_LzOm-cD9NjP278HS7nHZ0N1Ma0-iBmlz4GPG2xkzf-p1tsJbIEfFtN0_Xb0B1dcCA92oKhDwwP7m" alt=""><figcaption></figcaption></figure>

20. &#x20;Click `Connect`

<figure><img src="https://lh4.googleusercontent.com/tgNOotveO_YT4lIRegAM2GY_IpQk4wBNckdespYG0-PEv8EYyrCaQF-RX6RxgV5VMjoFCnuBgHLRlXy1LnSdJtL5avSRmnGQtvjBSu7dbM59MdAeZgJdo-vVlCTOwj7FmTyJe9GNvC_FwbYQp1o8" alt=""><figcaption></figcaption></figure>

## Testing the CAI

1. Using a different phone number, add the phone number used in the WhatsApp business account.
2. Send a message to the business account with a configured statement.
