> For the complete documentation index, see [llms.txt](https://ai-assistant.sunbird.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ai-assistant.sunbird.org/get-started-with-ai-assistant/installation.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://ai-assistant.sunbird.org/get-started-with-ai-assistant/installation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
