# 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="/files/9SUeE3OBPhNN0b5jTi0J" 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!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bird.com/connectivity-platform/how-to-guides/set-up-image-recognition-for-whatsapp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
