> For the complete documentation index, see [llms.txt](https://help.botpenguin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.botpenguin.com/ai-agents/install-your-ai-agent/whatsapp-and-social.md). Agents can also search and read this documentation through its [MCP server](https://help.botpenguin.com/~gitbook/mcp).

# WhatsApp & Social

Connecting a social channel lets your AI agent chat with customers where they already are. It answers messages, follows your instructions and sends every chat to your BotPenguin Inbox. Each channel has its own section below. The setup always has three steps: Choose channel, Connect and Confirmation.

### Prerequisites

* An AI agent that is set up. See Create your first AI Agent.
* Pop-ups allowed in your browser. Sign-in for WhatsApp, Instagram and Facebook opens in a Meta window.
* The items listed in each section.

### Key definitions

| Term                 | Meaning                                                                      |
| -------------------- | ---------------------------------------------------------------------------- |
| Prerequisites        | The things you must have before you connect a channel.                       |
| Meta                 | The company behind Facebook, Instagram and WhatsApp. It handles the sign-in. |
| Facebook Page        | A business page on Facebook. Instagram and Facebook connect through a Page.  |
| BotFather            | A Telegram bot that creates other Telegram bots and gives you their token.   |
| Authentication token | A long code that lets BotPenguin use your Telegram bot.                      |

### Connect WhatsApp

Before you start, you need a registered business, a website with a data privacy policy, a payment card that works for international payments, a use case that follows the WhatsApp Commerce Policy, and a phone number that is not on WhatsApp and can receive SMS.

1. Click **Connect another channel** on WhatsApp & Social, choose **WhatsApp** and click Continue.

![Choose WhatsApp on the Choose channel step](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/xwglc7jrgHzGtptlbkuH/images/whatsapp-and-social-whatsapp-step-1.png)

2. On Connect WhatsApp, read the prerequisites. Tick each one, or click **Select all** when you meet them all.

![Click Select all after you check the prerequisites](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/CtJgH4VmA6Bzbzm9cWa3/images/whatsapp-and-social-whatsapp-step-2.png)

3. Choose how to add your number. Pick **Connect a new number** for a number that is not on WhatsApp. Pick Migrate an existing number to move a number that is already on WhatsApp, then choose its region.

![Choose Connect a new number or Migrate an existing number](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/qYWasIsPvnufV7o4ah0D/images/whatsapp-and-social-whatsapp-step-3.png)

4. Click **Continue with Facebook**.

![Click Continue with Facebook](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/CfBKtXPGMsUlYR1PvfR6/images/whatsapp-and-social-whatsapp-step-4.png)

5. Complete the sign-up in the Meta window. You return to BotPenguin by yourself. A confirmation shows that WhatsApp is connected.

![WhatsApp is connected](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/gKyYcSOxW3BLU33Mw5DP/images/whatsapp-and-social-whatsapp-step-5.png)

After you connect, set up your WhatsApp profile, flows and catalog from the connected channels list. If Meta asks for a payment method, add one in Meta Business Manager: open your WhatsApp account, click Payment Setting, then Add Payment Method, and finish the verification.

### Connect Instagram

Before you start, you need an Instagram account that is a Professional (Business or Creator) account, linked to a Facebook Page where you are an admin. The account must not be restricted or under review.

1. Click **Connect another channel**, choose **Instagram** and click Continue.

![Choose Instagram on the Choose channel step](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/NCQVRLngLsR5Tlq8nLYv/images/whatsapp-and-social-instagram-step-1.png)

2. On Login with Instagram, read the prerequisites. Click **Select all** when you meet them all.

![Click Select all after you check the prerequisites](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/qtbU5W79NJg8lB6dhRTG/images/whatsapp-and-social-instagram-step-2.png)

3. Click **Login with Instagram**.

![Click Login with Instagram](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/DjOioVFGDQTT8naJpF9G/images/whatsapp-and-social-instagram-step-3.png)

4. Sign in with your Instagram account and allow the permissions BotPenguin asks for. A confirmation shows that Instagram is connected.

![Instagram is connected](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/Wb4bBJEG6uKVhO9Shv7e/images/whatsapp-and-social-instagram-step-4.png)

### Connect Facebook

Before you start, you need admin access to the Facebook Page, a Page that is not restricted or under review, a Facebook Business Manager account linked to the Page, and a Page category that suits customer messaging.

1. Click **Connect another channel**, choose **Facebook** and click Continue.

![Choose Facebook on the Choose channel step](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/zVSmuNPNbojLDnGYm7Fz/images/whatsapp-and-social-facebook-step-1.png)

2. On Login With Facebook, read the prerequisites. Click **Select all** when you meet them all.

![Click Select all after you check the prerequisites](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/brL6hcDjN6bCkZU5Jbhz/images/whatsapp-and-social-facebook-step-2.png)

3. Click **Login with Facebook** and allow the permissions BotPenguin asks for.

![Click Login with Facebook](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/hUny4lZC3GPL5AOHFNho/images/whatsapp-and-social-facebook-step-3.png)

4. On Choose a Facebook Page, click the Page you want to connect.

![Choose the Facebook Page to connect](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/phLMSlExlGoiolONvlZv/images/whatsapp-and-social-facebook-step-4.png)

5. Click **Connect Page**. A confirmation shows that Facebook is connected.

![Facebook is connected](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/YrmAsFA52paCbQZ2bJn7/images/whatsapp-and-social-facebook-step-5.png)

### Connect Telegram

First, create your Telegram bot:

1. Open Telegram and search for **@BotFather**.
2. Send the command `/newbot`.
3. Type a name for your bot.
4. Choose a username. It must end in "bot", for example `MySupportBot`.
5. BotFather replies with an authentication token. Copy it.

Then connect the bot in BotPenguin:

1. Click **Connect another channel**, choose **Telegram** and click Continue.

![Choose Telegram on the Choose channel step](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/4M8D6PZ9OJ4xHNYBYVhS/images/whatsapp-and-social-telegram-step-1.png)

2. On Connect Telegram Agent, find the Bot username and Authentication token fields.

![The Bot username and Authentication token fields](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/K4UYiJT4Q4xVSYaXNwea/images/whatsapp-and-social-telegram-step-2.png)

3. Type your bot username and paste the token. Click **Show token** to check it. Click **Connect Agent**.

![Fill in the username and token, then click Connect Agent](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/3hNlERphCFNAKIT5fdqT/images/whatsapp-and-social-telegram-step-3.png)

4. BotPenguin checks the username and token. A confirmation shows that Telegram is connected.

![Telegram is connected](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/1yvSKmjQTqGFLhiV0zBv/images/whatsapp-and-social-telegram-step-4.png)

### Manage a connected channel

On WhatsApp & Social, each connected channel has two buttons. Click **Reconnect** to sign in again, for example when a connection needs reconnecting. Click **Disconnect** to stop the agent on that channel. Your stored conversations stay in BotPenguin.

![Reconnect and Disconnect on a connected channel](https://content.gitbook.com/content/APDb8cKQtGlIAfgHjcsQ/blobs/YKOvCJms8ZPIoxAnkhNQ/images/whatsapp-and-social-manage-step-1.png)

### Common errors

<details>

<summary>I do not see Continue with Facebook, Login with Instagram or Login with Facebook</summary>

Click Select all first. The sign-in button shows only after you confirm the prerequisites. Also check that your browser is not blocking pop-ups.

</details>

<details>

<summary>The Meta window does not open</summary>

Allow pop-ups for BotPenguin in your browser and click the button again.

</details>

<details>

<summary>Meta says my business is not verified</summary>

Make sure your Facebook account is an admin of the Business Manager. For WhatsApp, make sure the phone number is not already on WhatsApp. Then try again.

</details>

<details>

<summary>Instagram says it cannot access my account</summary>

Check that the account is a Professional account, linked to a Facebook Page you manage. Then try again.

</details>

<details>

<summary>Telegram does not connect</summary>

Copy the full token from @BotFather with no extra spaces. Check that the username belongs to the same bot as the token. If the bot is already connected to another agent, disconnect it there first.

</details>

<details>

<summary>My agent connected but does not reply</summary>

Check that the agent is switched on and that the channel shows as connected. If the connection needs signing in again, click Reconnect.

</details>

<details>

<summary>What happens when I disconnect a channel?</summary>

The agent stops sending and receiving messages on that channel until you connect it again. Stored conversations stay in BotPenguin.

</details>

### Support

Still not working? Write to us at <support@botpenguin.com>. We will reach out to you within 24 hours.
