# Installation

## Instagram Setup

### Instagram Business Account

The first thing you need is an instagram business account. Luckily, switching from personal to business account is a straightforward process: simply follow [this guide](https://www.facebook.com/business/help/502981923235522).

Some common issues may come up and prevent you to correctly connect your chatbot to your Instagram account:

* Make sure that your Instagram account has the **Business** type (***not*** the Creator type). You can switch from a Creator to a Business account under **Settings > Account > Switch to Business Account**.
* You also need to **allow access to messages** for the chatbot to be able to access them. [Here is how](https://www.facebook.com/help/instagram/791161338412168).

### Facebook Business Page

You will also need a Facebook page linked to your Instagram Business account. You can easily create a new page or use an existing one, and connect it to your Instagram account by [following this process](https://www.facebook.com/help/1148909221857370).

## CSML Studio Setup

To connect your Instagram account to your CSML Studio chatbot, visit the **Channels** page, then click on **Instagram** to create a new Instagram channel. Then, follow the Login with Facebook flow, and make sure to select both the Instagram Business Account, and the Facebook Page it is linked with:

![](https://2862118938-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6OZMoZlXP9VSWYMW_T%2F-MfyFtkPq3IvLBP4ArG-%2F-MfyNF1DJZv2mDV_6eBE%2Fimage.png?alt=media\&token=0ff8c29b-84a1-40d4-9186-729cb380d97a)

![](https://2862118938-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6OZMoZlXP9VSWYMW_T%2F-MfyFtkPq3IvLBP4ArG-%2F-MfyNyLOOsMo6H1Dqe5J%2Fimage.png?alt=media\&token=621c5c2d-2dc5-4b5a-9170-65933744fe90)

Also, make sure that all the requested permissions are checked:

![](https://2862118938-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6OZMoZlXP9VSWYMW_T%2F-MfyFtkPq3IvLBP4ArG-%2F-MfyNzkCwB9vwgNq-9lz%2Fimage.png?alt=media\&token=4460bc8b-d8c6-4d3a-8081-3e3c160a8d96)

After this flow, you will be presented with a list of your Facebook pages. Select the one that is linked to your Instagram page:

![](https://2862118938-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M6OZMoZlXP9VSWYMW_T%2F-MfyFtkPq3IvLBP4ArG-%2F-MfyOuLw05N-fD3GObWV%2Fimage.png?alt=media\&token=24713141-422a-4744-b638-26d31aeb461d)

After a few seconds, you are redirected to a new page. It's done!
