# Installation

## Installer

Here is the link for the [installer](https://github.com/Sunbird-AIAssistant/ai-bot-installer).

Once the pre-requisites are satisfied, run the installation script (install\_on\_aws.sh).

{% hint style="info" %}
Check for your cloud specific installation script. The above one is for the AWS which is the default one.
{% endhint %}

## Load Balancer Configuration

After completing the provisioning process, log in to your cloud account. Then, map the load balancer DNS to your domain by updating the CNAME records in the DNS settings.

## WebHook for Telegram Client

To set the BOT webhook, use the below curl:&#x20;

```sh
curl --location 'https://api.telegram.org/bot{BOT_TOKEN_HERE}/setWebhook'
--header 'Content-Type: application/json'
--data '{"url": "{DOMAIN_URL_HERE}/api/webhook/telegram"}'
```

{% hint style="info" %}
Replace the `{BOT_TOKEN_HERE}` and `{DOMAIN_URL_HERE}/api/webhook/telegram` with the actual values.
{% endhint %}

## Accessing the Telegram Wrapper Service

To access the telegram-unified service externally, hit the URL: `https://<domain_name>/api/webhook/telegram`

### Manual Installation Steps:

1. [Sakhi API Service](https://github.com/Sunbird-AIAssistant/sakhi-api-service?tab=readme-ov-file#getting-started)
2. [Telegram Service ](https://github.com/Sunbird-AIAssistant/sakhi-telegram-unified-service?tab=readme-ov-file#sakhi-telegram-unified-bot-service)
3. [WhatsApp Service](https://github.com/Sunbird-AIAssistant/whatsapp-bot?tab=readme-ov-file#getting-started)
