# Add GaiaHub on your website

After creating your Chatbot, you might want to share it on your website, and here is how you do that:

In the app editor area, you'll find a sharing icon like in the picture:

<figure><img src="/files/BXlAPodmfQZVH9dWFZRe" alt=""><figcaption><p>Share your app</p></figcaption></figure>

In there you'll find several options to integrate your app with other things, like a website for example:

<figure><img src="/files/QPfkqDhG74iyioFs7n24" alt=""><figcaption><p>Share your app via javascript</p></figcaption></figure>

Then, click on the "copy" button:

<figure><img src="/files/HfQUX6jjwvgSyAozF5bJ" alt=""><figcaption></figcaption></figure>

And finaly, inject that block of code in your website. Here, as an example, we'll add it to our "Hello world!" page:

````
```html
<!DOCTYPE html>
<html>
<head>
    <title>Hello World Website</title>
</head>


<script type="module">
    import Chatbot from "https://gaiahub.github.io/web-packages/gaia-embed/dist/web.js"
    Chatbot.init({
        chatflowid: "a9ad179d-6ebd-4431-9042-ca05c78edc09",
        apiHost: "https://api.gaiahub.ai",
    })
</script>


<body>
    <h1>Hello World</h1>
</body>
</html>
```
````

And you will see a little floating chat button on the bottom of your website:

<figure><img src="/files/STw702BxxfhgRl3HVq2v" alt=""><figcaption></figcaption></figure>

\
\
But you also have other options:

* ReactJS
* Python
* cURL

You can pick up the option that best works for your use case.

Let us know if you need any help. Our team will be happy to help!

Happy hacking!


---

# 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://docs.gaiahub.ai/getting-started/add-gaiahub-on-your-website.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.
