> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wassist.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Agent from a Website

> Import your website content to create an AI agent that knows your business

If you have an existing website, Wassist can crawl it to automatically create an agent that understands your business, products, and services.

## When to Use This Method

This approach is ideal when you:

* Have a content-rich website with product/service information
* Want your agent to answer questions based on existing web content
* Need a quick way to bootstrap an agent with accurate information

## Step-by-Step Guide

<Steps>
  <Step title="Navigate to New Agent">
    From your [dashboard](https://wassist.app/agents), click **New Agent**.
  </Step>

  <Step title="Select 'Import from Website'">
    Choose the **Import from Website** option.
  </Step>

  <Step title="Enter Your Website URL">
    Provide your website's URL. Wassist will crawl the site to extract content.

    ```
    https://www.yourcompany.com
    ```

    <Note>
      The crawler follows links from your homepage. For best results, ensure your site has clear navigation to important pages.
    </Note>
  </Step>

  <Step title="Wait for Processing">
    Wassist crawls your website and uses AI to:

    * Extract key information about your business
    * Identify products, services, and FAQs
    * Generate a system prompt based on your content

    This typically takes 1-3 minutes depending on site size.
  </Step>

  <Step title="Review and Customize">
    Once processing completes, review the generated agent:

    * **System Prompt** — Check that it accurately represents your business
    * **First Message** — Ensure the welcome message is appropriate
    * **Knowledge** — Verify the extracted content is correct

    Edit anything that needs adjustment.
  </Step>
</Steps>

## What Gets Imported

<AccordionGroup>
  <Accordion title="Text Content" icon="file-lines">
    All readable text from your pages, including headings, paragraphs, and lists. This becomes the agent's knowledge base.
  </Accordion>

  <Accordion title="Product Information" icon="box">
    If you have product pages, Wassist extracts names, descriptions, and details so your agent can answer product questions.
  </Accordion>

  <Accordion title="Contact Details" icon="address-card">
    Business hours, locations, phone numbers, and email addresses are captured so your agent can provide accurate contact information.
  </Accordion>

  <Accordion title="FAQs" icon="circle-question">
    If your site has an FAQ section, those questions and answers are prioritized in the agent's knowledge.
  </Accordion>
</AccordionGroup>

## Improving Import Quality

<Tabs>
  <Tab title="Before Import">
    **Optimize your website for better results:**

    * Ensure important pages are linked from your homepage
    * Use clear, descriptive headings
    * Keep content up-to-date
    * Include an FAQ page if you have common questions
  </Tab>

  <Tab title="After Import">
    **Refine your agent:**

    * Edit the system prompt to add context the crawler might have missed
    * Remove any irrelevant content from the knowledge base
    * Add specific instructions for edge cases
    * Test with real questions your customers ask
  </Tab>
</Tabs>

## Handling Dynamic Content

<Warning>
  Wassist crawls static HTML content. If your site relies heavily on JavaScript to load content, some information may not be captured. Consider:

  * Using the [Knowledge Base](/guides/create-agent-knowledge-base) method to upload content directly
  * Adding missing information to the system prompt manually
</Warning>

## Example Use Cases

<CardGroup cols={2}>
  <Card title="E-commerce Store" icon="cart-shopping">
    Import your product catalog so customers can ask about items, shipping, and returns.
  </Card>

  <Card title="SaaS Documentation" icon="book">
    Create a support agent from your docs site to answer technical questions.
  </Card>

  <Card title="Service Business" icon="briefcase">
    Import your services page so prospects can learn about what you offer.
  </Card>

  <Card title="Restaurant/Venue" icon="utensils">
    Pull in your menu, hours, and event information automatically.
  </Card>
</CardGroup>

## Keeping Content Fresh

Website content changes over time. To update your agent's knowledge:

1. Go to your agent's **Documents** section
2. Click **Refresh from Website**
3. Wassist re-crawls your site and updates the knowledge base

<Tip>
  Set a reminder to refresh your agent's knowledge monthly, or whenever you make significant website updates.
</Tip>

## SDK Alternative

Create an agent from a website URL programmatically:

```typescript theme={null}
const agent = await client.onboarding.createFromWebsite({
  websiteUrl: 'https://www.yourcompany.com',
});

console.log(`Agent created: ${agent.name}`);
```

## What's Next

<CardGroup cols={2}>
  <Card title="Add More Knowledge" icon="file-arrow-up" href="/guides/create-agent-knowledge-base">
    Supplement with additional documents.
  </Card>

  <Card title="Configure Tools" icon="plug" href="/guides/configure-tools">
    Connect APIs for real-time data.
  </Card>

  <Card title="Deploy to WhatsApp" icon="rocket" href="/guides/deploy-agent">
    Make your agent live.
  </Card>
</CardGroup>
