# Embed the Agent on your website

Embedding your AI Agent directly in your website is a great way to offer visitors an interactive and personalized experience. This feature lets you provide instant 24/7 assistance, improving user engagement and satisfaction.

### Get your embed code

1. Go to your Agent's management panel;
2. Navigate to the "**Share me**" tab;
3. [Create a layout](/en/sharing/create-and-manage-sharing-layouts.md) or click the  button on an existing layout;
4. Go to the "Embed code" section of your layout;
5. Copy the code provided.

### Embedding the Agent in your site

Follow these simple steps to add your AI Agent to your website:

1. Open your website editor or CMS;
2. **Paste the code** into the section of the page where you want the Agent to appear;
3. Save and publish the changes to your site.

**Make sure to test the integration in a private environment before publishing it** on your live site. That way, you'll have time to adjust the style or change the position.

### Benefits of the integration

By embedding your AI Agent in your website, you can take advantage of:

* Direct integration on your site -> your users won't need to change pages; they can interact with your Agent right from your website;
* Advanced customization -> create a custom layout for your site with personalized colors to deliver a consistent and engaging experience for your visitors.

**Do you have a web app?** Your Agent can interact directly with page elements to highlight certain sections or perform real actions on behalf of the user. To learn more, see the section on [code snippets](/en/agent-training/advanced/content-customization/managing-code-snippets.md) or read the [dedicated guide](/en/advanced-features/web-interfaces-creating-interactive-experiences.md).


---

# 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.aisuru.com/en/sharing/share-your-agents/website-embed.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.
