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

# GPT on my website

> Ask GPT to find the answer to your question in a web-page

## Introduction

Welcome to the documentation for the “GPT on My Website” Tool! This Tool is designed to provide you with answers
to your questions about any website using the power of GPT. Whether you are a marketer, researcher, or business owner,
this Tool will assist you in gaining valuable insights and information about any website effortlessly.

## Overview

The “GPT on My Website” Tool leverages advanced natural language processing and machine learning techniques to analyze
the content of a website and generate accurate responses to your questions. By inputting a website URL and a question,
the Tool harnesses the power of GPT to provide you with insightful answers based on the website’s content.
With its user-friendly interface and powerful AI capabilities, this Tool makes extracting knowledge from websites
more accessible and efficient.

![GPT on my Website](https://relevanceai.com/docs/images/templates/gpt-on-my-website/GPT-on-my-website-answer.png)

## Key Features

1. **Website Analysis**:
   The “GPT on My Website” Tool performs a comprehensive analysis of the content on the specified website. It examines the text to
   gain a deep understanding of the website’s information. This analysis enables the Tool to provide accurate and relevant answers
   to your questions.

2. **Natural Language Processing and Machine Learning Capabilities**:
   The Tool utilizes natural language processing techniques to understand the context and meaning of your questions. It analyzes the
   content of the website to generate accurate and informative responses. This ensures that you receive insightful answers that
   address your specific queries.

3. **User-Friendly Interface**:
   The “GPT on My Website” Tool features a user-friendly interface. Simply enter the URL of the website and your question, and the
   Tool will generate prompt and informative responses. The intuitive design ensures a seamless and enjoyable user experience, allowing
   you to focus on the insights rather than the technicalities.

## How to use the Tool

[Locate the Tool in the template page](/docs/get-started/core-concepts/tools) and click on `Use template`.
You can use the Tool as is or
[clone](/docs/get-started/core-concepts/tools) it.

Follow these steps to extract valuable insights from any website:

* **Enter Website URL**: Provide the URL of the website you want to analyze. Ensure that the website is accessible and available online.
  The Tool will analyze the content of the website to generate responses to your questions.

* **Input Question**: Enter your question or prompt in the designated field. Be clear and specific to receive accurate and relevant responses.
  The Tool utilizes natural language processing to understand the context of your question.
  You can even instruct the Tool to format the output in your desired way.
  <Tip>
    LLMs are not designed or trained for statistical analysis. Questions like
    “How many projects were conducted?” or “What was the overall success on the x projects?”
    are likely to raise the “I could not find the answer” response unless there is a note in
    the provided information stating the answer.
  </Tip>

* **Run the Tool**: Once you have entered the website URL and your question, click the “Run Tool” button (on the App page) or use
  the run options on your data table (bulk/single run) to initiate the the analysis process.
  The Tool will process the website’s content and generate a response based on the information extracted from the website.
  #### Tool execution at Relevance
  Tools and templates can be

  * tested on individually provided inputs:
    * Single run on the App page
    * Single run on the Build page
    * Single run on the data table

  * set to fetch the data from a dataset and apply the analysis on the whole dataset:
    * Bulk run on the data table

* **View Answer**: The Tool will provide you with a response to your question based on the content and context of the website.
  The answer will be displayed in a clear and concise format, allowing you to quickly access the insights you need.

## Deep dive in the Tool

## Tool components

If you [clone](/docs/get-started/core-concepts/tools)
a template, or [make a Tool from scratch](/docs/build/tools/create-a-tool), you will have access to the
Build tab. Build is where one put together different components to build a Tool suitable for
their needs.

### User inputs

![User inputs](https://relevanceai.com/docs/images/templates/gpt-on-my-website/GPT-on-my-website-build-input.png)

**[Text input](/docs/build/tools/user-inputs/text-input)**:
An input text component suitable for short text pieces, such as name, topic, a question.

### Tool steps

There are 5 components under the Tool steps in this analysis flow. These components take care of three
tasks: extracting the website content, preparing the data for search, and the LLM step.

#### Extract the website Content

1. A JavaScript code component is available to Run JavaScript codes when necessary.

2. [Extract Website Content](/docs/build/tools/tool-steps/extract-website-content) is a ready-to-use
   component for scraping website contents. All that is needed a a URL to a website which
   allows scraping.

#### Data preparation and vector search

1. [Split text](/docs/build/tools/tool-steps/split-text) breaks large text content
   such as a PDF file or content of a scraped website to smaller chunks of text.
   When working with large amount of text for tasks such as question-answering,
   it is unlikely that the whole content all-together is the answer to a given question.
   Therefore, it is highly recommended to break the content into smaller chunks (i.e.
   text splitting).

2. [Vectorize and search](/docs/build/tools/tool-steps/vectorize-and-search):

   Vectors are representation of data in vector space. In other words,
   vectors are numeric representationds in which items that are semantically
   close to each other are located close to one another as well.
   This is a how AI and many machine learning algorithms work accurately.
   The Vectorize and search component takes the source content (e.g. content
   of a PDF file) and a query, vectorizes the data and query and returns the
   most relevance piece in the data source as the answer  to the query.

#### Large Language Model (LLM)

[A large language model component](/docs/build/tools/tool-steps/llms/llm-tool-step) is all set up to provide
you access to GPT (and many other LLMs).
In the prompt section, you will provide the required information as well as instructions to what
is expected to be done.

**[A Good Prompt](/docs/build/tools/tool-steps/llms/prompt)**

1. Provide the context at the top
2. Be short and precise with your instruction/request from the LLM
3. Note what you expect instead of noting what you don’t want
