# Workplace by Facebook: Deploy an Endpoint

**Cognigy Support**  
October 24, 2022

With the implementation of a Workplace by Facebook Endpoint you can easily connect your Workplace Chat Bot with Cognigy.AI.

This tutorial covers the necessary steps for creating and connecting a Workplace Endpoint. If you want to get information about assigning a Flow to the Endpoint and setting up the _Data Management_ see [Endpoints.](https://docs.cognigy.com/docs/endpoints)

## Two Step Preparation Process

1. Create a **Workplace** on [Workplace](https://www.workplace.com/ "")
2. Create and Configure a **Workplace Endpoint** on Cognigy.AI

## 1 Create a Workplace

Location: [workplace.com](https://work.workplace.com/company_creation/invite/?ref=AVvnWhJ4z3JoB0EGNI7srXiHYelIlaDxkYeqpx_KjeieXal1tBttj9X5DsGYP3AbPRAmAKSMCRVD0kTCICI2cHMEkxOQQ_3yKkSVqTrD6q-CkePCLFis6Fmf0jBHscUGNrEo-frHPCQlB77yxXIEGmmqUdYP74_UUJV-FimwXOMtAo_pAMT_aV279URJIfM6SVJ6KPIOMbbif07aWnLzGq2oQQ4e65z3XpDSh7tPUgi6FNlMr2TJBeXAH7VT9RVclP2USw_IxsBHFtxTCKtEA2d1LQ5lsWn8ygTajP_7pEZnkA "")

## 2 Create a Workplace Endpoint

### 2.1 Create a Workplace Endpoint in Cognigy.AI

First you have to create an Endpoint of the type _Workplace_ (see **Figure 2.1**).

_Figure 2.1: Workplace Endpoint Creation_

### 2.2 Configure the Workplace Endpoint

In the endpoint configuration, scroll down to the _Workplace Settings_ section (see **Figure 2.2**) and click the blue _Install_ button.

_Figure 2.2: Workplace Settings_

### 2.3 Add Cognigy to Workplace

**2.3.1 Terms of Service and Privacy Policy**  
In the pop-up screen, make sure to refer to the Cognigy.AI Terms of Service and Privacy Policy (see **Figure 2.3**).

**2.3.2 (Optional) Customize**  
Click _customize_ in order to change the _Integration Name_ and _Description_ (see **Figure 2.3**).

**2.3.3 (Optional) Specific Groups**  
Select the option _Specific groups_ in case you want to add this bot to specific group chats (see **Figure 2.3**).

**2.3.4 Add to Workplace**  
Click the _Add to Workplace_ button in order to add the Cognigy bot to Workplace (see **Figure 2.3**).

_Figure 2.3: Add Cognigy.AI to Workplace_

### 2.4 Verify the Integration in Workplace

**2.4.1 Navigate to Integrations in Workplace**  
After the pop-up closes automatically, navigate to the _Admin Panel_ in Workplace and click on _Integrations_ in the left menu (see **Figure 2.4**).

**2.4.2 Note that the bot has been added**  
Note that the bot has been added under the _Added to Workplace_ > _Added By Your Company_ section in the _Integrations_ panel (see **Figure 2.4**).

_Figure 2.4: Verify the Integration_

### 2.5 Add the Workplace Recipient Id

**2.5.1 Find your new bot**  
After confirming that the extension has been successfully added, navigate to the Workplace _Home screen_ and then scroll down to the _Bots_ section to see your Cognigy.AI bot listed (see **Figure 2.5**).

_Figure 2.5: Select your Bot_

**2.5.2 Retrieve the Recipient Id**  
Start a conversation with your bot by clicking on it. In the top bar, select and copy the Recipient Id.

**2.5.3 Enter the Recipient Id in the Endpoint Configuration**  
Enter this recipient Id into the _Workplace Recipient Id_ field of your endpoint configuration and click the _Save_ button. Your bot is now configured in Workplace and can be interacted with (see **Figure 2.6**).

_Figure 2.6: Paste the Recipient Id and click Save_
