Ask0 logoAsk0

Quickstart

Get up and running with Ask0 in minutes. Step-by-step guide to set up your AI documentation assistant and start helping users instantly.

Get your AI assistant up and running in just a few minutes. This guide will walk you through setting up Ask0 for your website or documentation.

Prerequisites

Before you begin, make sure you have:

  • A website or documentation site where you want to add Ask0
  • Access to add JavaScript code to your site
  • Content you want your AI assistant to learn from (website, docs, etc.)

Sign Up for Ask0

Create your free account at ask0.ai/invite

  • Enter your email and create a password
  • Verify your email address
  • You'll be redirected to the Ask0 Console

Create Your First Project

In the Ask0 Console, create a new project:

  1. Click "New Project"
  2. Enter your project details:
    • Project Name: e.g., "My Product Docs"
    • Description: Brief description of your project
    • Website URL: Your main website URL
  3. Click "Create Project"

You'll receive a unique Project ID - save this for later.

Add Knowledge Sources

Tell Ask0 what content to learn from. For this quickstart, we'll add your website:

  1. Navigate to Sources in your project
  2. Click "Add Source" and select "Web Crawler"
  3. Configure the crawler:
    Start URL: https://your-website.com
    Include Patterns: https://your-website.com/docs/*
    Crawl Frequency: Daily
    Max Pages: 500
  4. Click "Start Crawling"

The crawler will begin indexing your content. This typically takes 5-15 minutes depending on site size. You can add the chat widget while crawling continues.

Example of adding documentation site:

Start URL: https://docs.your-product.com
Include Patterns:
  - https://docs.your-product.com/guides/*
  - https://docs.your-product.com/api/*
  - https://docs.your-product.com/tutorials/*
Exclude Patterns:
  - */changelog
  - */archive/*

Embed the Chat Widget

Add Ask0 to your website with our JavaScript snippet:

<!-- Add before closing </body> tag -->
<script>
  (function() {
    var script = document.createElement('script');
    script.src = 'https://assets.ask0.ai/scripts/ask.js';
    script.async = true;
    script.dataset.projectId = 'YOUR_PROJECT_ID';
    document.body.appendChild(script);
  })();
</script>
// In your main layout or _app.js
import Script from 'next/script';

export default function Layout({ children }) {
  return (
    <>
      {children}
      <Script
        src="https://assets.ask0.ai/scripts/ask.js"
        strategy="afterInteractive"
        data-project-id="YOUR_PROJECT_ID"
      />
    </>
  );
}
<!-- In your main App.vue or index.html -->
<script>
export default {
  mounted() {
    const script = document.createElement('script');
    script.src = 'https://assets.ask0.ai/scripts/ask.js';
    script.async = true;
    script.dataset.projectId = 'YOUR_PROJECT_ID';
    document.body.appendChild(script);
  }
}
</script>
// In your app.component.ts
import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html'
})
export class AppComponent implements OnInit {
  ngOnInit() {
    const script = document.createElement('script');
    script.src = 'https://assets.ask0.ai/scripts/ask.js';
    script.async = true;
    script.dataset.projectId = 'YOUR_PROJECT_ID';
    document.body.appendChild(script);
  }
}

Replace YOUR_PROJECT_ID with the Project ID from step 2.

Test Your Assistant

  1. Visit your website where you added the snippet
  2. Look for the Ask0 chat widget (bottom right by default)
  3. Click to open and ask a question about your product
  4. The AI will provide answers based on your crawled content

Try asking questions like:

  • "How do I get started?"
  • "What are the main features?"
  • "How does pricing work?"
  • "Where can I find API documentation?"

Configuration Options

Customize the widget behavior by adding data attributes:

<script
  src="https://assets.ask0.ai/scripts/ask.js"
  data-project-id="YOUR_PROJECT_ID"
  data-position="bottom-right"
  data-theme="light"
  data-primary-color="#0066cc"
  data-greeting="How can I help you today?"
  data-placeholder="Ask me anything..."
></script>

Available Options

OptionValuesDescription
data-positionbottom-right, bottom-left, centerWidget position
data-themelight, dark, autoColor theme
data-primary-colorHex colorBrand color
data-greetingTextInitial greeting message
data-placeholderTextInput placeholder text
data-hide-brandingtrue, falseHide Ask0 branding (Pro)

What's Next?

Now that your basic setup is complete, explore these next steps:

Troubleshooting

Widget not appearing?

  • Check that the Project ID is correct
  • Ensure the script is loading (check browser console)
  • Verify your domain is whitelisted in project settings

AI not answering questions?

  • Wait for initial crawling to complete (check Sources status)
  • Ensure your content is accessible to the crawler
  • Check crawler logs for any errors

Getting Help

Need assistance with your setup?

Congratulations! You've successfully added AI assistance to your product. Your users can now get instant answers to their questions, reducing support burden and improving their experience.