# Set up image recognition for WhatsApp

In this guide, we'll show you how you can use Flow Builder to set up image recognition for WhatsApp. This will allow you to categorize inbound images from customers, based on [Google's Vision AI](https://cloud.google.com/vision) IR algorithm.&#x20;

&#x20;

<figure><img src="https://675349995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUJNEE9TMK4fU91VKstBr%2Fuploads%2Fgit-blob-336ebdd37234f720b837f4af0c8199f322ceff9f%2FScreenshot_20200630-121143_WhatsApp.jpg?alt=media" alt=""><figcaption></figcaption></figure>

&#x20;

We'll be looking at an example of a conversational flow that automatically categorizes images in messages that are sent on WhatsApp.

&#x20;

### Requirements

* A [MessageBird account](https://dashboard.messagebird.com/en/sign-up)
* [Google Cloud Platform](https://cloud.google.com/free)
* [Flow Builder](https://dashboard.messagebird.com/en/flow-builder)

&#x20;

### Step one: Sign up to MessageBird and WhatsApp Business

Before we build the flow, you'll need to complete the following steps. If you've already completed these, you can skip ahead to [step two](#h_01EQDX8SVS7R9Y72S56BQRD0G8).

1. Sign up for a [MessageBird account](https://dashboard.messagebird.com/en/sign-up)
2. Sign up for a [WhatsApp Business account](https://www.messagebird.com/whatsapp/)

&#x20;

### Step two: Set up Google Cloud Platform <a href="#h_01eqdx8svs7r9y72s56bqrd0g8" id="h_01eqdx8svs7r9y72s56bqrd0g8"></a>

Once you've signed up for both MessageBird and WhatsApp Business, follow these steps to set up Google Cloud Platform.

1. Go to [Google Cloud Platform](https://cloud.google.com/free) and sign up for a free account
2. Create a new [Google Cloud Platform project](https://cloud.google.com/appengine/docs/standard/nodejs/building-app/creating-project)
3. Create an [API key](https://cloud.google.com/docs/authentication/api-keys) in GCP
4. Enable the [Cloud Vision API](https://cloud.google.com/vision/docs/before-you-begin)

&#x20;

### Step three: Connect everything in the MessageBird Dashboard

Once you've set up Google Cloud Platform, follow these steps to connect everything together.

1. Download [this Vision AI flow](https://drive.google.com/file/d/1rCR_JimMovwe8WswZlUVb3EdT1YOnKWC/view?usp=sharing)&#x20;
2. Log in to the [MessageBird Dashboard](https://dashboard.messagebird.com/)
3. Navigate to [Flow Builder](https://dashboard.messagebird.com/en/flow-builder)
4. Click on **Import Flow** and upload the Vision AI flow
5. The first step of your flow is the Omni-channel step. Click on this step, go to the step setting and check the box next to your WhatsApp Business channel to select it
6. Click on the second step, which is named **Replace 1 of 1 - GCP API Key**, and add the Google Cloud Platform API key into the **Value** field
7. To trigger the flow, initiate a message with the WhatsApp channel. You'll receive a WhatsApp message asking you to reply with an image
8. Reply with an image. Once you've done this, Flow Builder will make a call to Vision AI's API endpoint, with the image as the payload. The uploaded image will be processed and, based on probability, the top two category types will be returned within the conversation. That's it, you're done!
