# Getting started

## 1. Install

To install the SDK on your website, copy and paste the snippet below right before the closing `</head>` tag on every page where you want the SDK and widget to appear.

```html
<script src="https://sdk.chathive.app"></script>
```

{% hint style="info" %}
**Good to know:** If you have a single page app make sure this script is loaded before your try to accessing the SDK
{% endhint %}

## 2. Get your API key

You can find your api key in your dashboard under the `implementation` tab.

## 3. Init your project

Follow the initialization steps for the project type that matches your project.

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h3>Chatbot project</h3></td><td>Learn how to add a Chatbot project onto your website</td><td></td><td><a href="/pages/0kTCSfbZHE6Bhp4FBzHP">/pages/0kTCSfbZHE6Bhp4FBzHP</a></td></tr><tr><td><h3>AI Form project</h3></td><td>Learn how to embed a AI form into your website or app</td><td></td><td><a href="/pages/OJdrXA2UCzBewslND5xv#installation">/pages/OJdrXA2UCzBewslND5xv#installation</a></td></tr><tr><td><h3>Triggers</h3></td><td>Learn how you can use the SDK to execute a trigger from within your website or app</td><td></td><td></td></tr></tbody></table>


---

# 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://developers.chathive.app/sdk/getting-started.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.
