# How to Connect Your Website to Dowork.ai's AI Agent

Connecting your website to Dowork.ai's AI Agent allows it to learn from your site's content, enabling it to provide accurate responses. Here's how you can set this up:

**Step 1: Navigating to the Get Started Page**

* After successfully signing up, you'll be directed to the "Get Started" page.
* Click on the "Add Website" button.

**Step 2: Adding Your Website**

* A popup will appear where you should enter your website URL.
* It’s recommended to use your website's root URL, like `https://dowork.ai/`.
* After entering the URL, click the "Add" button.

**Step 3: Monitoring the Crawling Process**

* You’ll be taken to the setup page where you can see the status of the crawling process.
* This page also shows how many pages have been crawled.
* Once crawling is complete, the status will change to "Completed".
* You will receive an email notification indicating that the crawling is finished and you can start testing.

**Step 4: Testing the AI Agent**

* Even before the crawling is fully complete, you can begin testing. However, note that the answers might be incomplete until crawling is finished.
* Click the "Test" button to open a widget where you can ask questions and receive answers from the AI Agent.
* This testing widget is similar to what users will see on your website.

**Step 5: Integrating the AI Agent Widget into Your Website**

* To integrate the widget into your website, click on the "Scripts" section. This will copy the required script to your clipboard.
* Add this script to the `<head>` section of every page of your website where you want the widget to appear.
* If you're using a CMS, look for an option to add custom scripts. Otherwise, ask your web developer to do this for you.
* Once the script is added, refresh your website to see the Dowork.ai widget.

**Step 6: Updating Website Content**

* If you update your website, click the "Recrawl" button. This ensures that the AI Agent learns from the latest content.

With these steps, Dowork.ai's AI Agent will be successfully integrated into your website, equipped to assist users with information derived from your site's content. If you have any questions or encounter difficulties during this process, remember that our AI Agent is always available to help. You can ask any queries through the AI Agent widget on our website, ensuring you get timely and effective assistance.


---

# 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.dowork.ai/how-to-connect-your-website-to-dowork.ais-ai-agent.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.
