# 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)


---

# 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://ai-assistant.sunbird.org/get-started-with-ai-assistant/installation.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.
