# Website Q\&A AI Agent — Ask Any Site, Get Cited Answers (`actor-forge/website-qa-agent`) Actor

Ask questions about many websites ("Do they offer SSO?", "Is there a free trial?") and get a grounded answer per site with verified quotes and source URLs. Bulk vendor due diligence & lead qualification. $0.01 per verified answer; not-found is free; AI tokens at cost.

- **URL**: https://apify.com/actor-forge/website-qa-agent.md
- **Developed by:** [ActorForge](https://apify.com/actor-forge) (community)
- **Categories:** AI, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 question answereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Website Q\&A AI Agent — Ask Any Site, Get Cited Answers

Ask questions about many websites ("Do they offer SSO?", "Is there a free trial?") and get a grounded answer per site with verified quotes and source URLs. Bulk vendor due diligence & lead qualification. $0.01 per verified answer; not-found is free; AI tokens at cost.

**Ask the same questions about hundreds of websites and get a grounded answer for each, with the exact quote and the page it came from.** Give it a list of websites (home pages or bare domains like *stripe.com*) and plain-English questions such as *"Do they offer SSO / SAML?"*, *"What does the Pro plan cost per month?"*, *"Is there a free trial?"*, *"Are they SOC 2 certified?"*, *"Do they ship to Canada?"* or *"Do they integrate with Salesforce?"*. For every **website × question** you get one row: a short **answer**, **found** true/false, a **confidence** level, **verbatim evidence quotes** and the **source URLs**. Every quote is checked against the site's own text, so you can see at a glance which answers are backed by the website and which are not.

This is a **question-answering agent**, not a scraper you configure: for each site it reads the start page, the **sitemap** and the menu links, picks the few pages most likely to answer your questions (pricing, security/trust, FAQ, about, integrations…), splits them into passages, finds the best passages for each question and asks a fast, cheap **AI model (default Google Gemini 2.5 Flash Lite; any OpenRouter model works: GPT-4o mini, GPT-4.1 nano, Gemini 2.5 Flash, Claude, Llama…)** to answer **only from those passages**. Pages are read once per site, however many questions you ask.

Use it for **vendor due diligence and security questionnaires** (SSO, SOC 2, GDPR, data residency across 50 SaaS vendors), **lead qualification and ICP scoring** ("Do they sell to enterprises?", "Do they have a mobile app?", "Do they offer financing?" over a list of prospect domains), **competitor and pricing research**, **partner and supplier screening**, and as a **web research tool for AI agents** that need cited facts from a specific website. Need structured fields from each page instead of answers to questions? Use our AI Web Scraper (ai-web-extractor), which turns pages into JSON by schema.

#### Two lines on your bill (please read)

1. **This actor's fee:** `question-answered`, **$0.01 per answer that was found AND backed by at least one quote verified in the site's text**. Answers marked not found, answers whose quotes could not be verified, and sites that could not be read are **free**. Reading pages is free.
2. **AI tokens, billed directly to your own Apify account** by Apify's official [OpenRouter actor](https://apify.com/apify/openrouter) at **OpenRouter's rates** (the run calls it with your run's own token; there is no extra API key and nothing is marked up by us). With the default model one question costs about **$0.0003–0.0005** in tokens on a paid Apify plan. **On the Apify free plan, Apify charges AI tokens at 10× the OpenRouter rate** (about $0.003–0.005 per question), plus a tiny per-call start fee.

Every row shows its own `inputTokens`, `outputTokens` and **`llmCostUsd`** (the estimated token charge on your account), and the run summary totals them. **`maxLlmCostUsd` (default $0.25) is a hard cap on the token side:** the worst-case cost of each question is reserved before the call and the run stops cleanly before passing it. The run's maximum total charge caps this actor's own fee. If the AI service is unavailable or your account has no credit left, you get one free row explaining what happened, and the run still succeeds.

### What data does it return?

Every run outputs clean, schema-validated rows like these:

| site | question | found | answer | confidence | sourceUrls | charged | llmCostUsd |
| --- | --- | --- | --- | --- | --- | --- | --- |
| apify.com | Does Apify have a free plan? | true | Yes. Apify offers a free plan that lets you use most platform features, with usage limits. | high | \["https://apify.com/pricing"] | true | 0.0031 |
| acme-analytics.example | Do they offer SAML SSO? | true | Yes, SAML single sign-on is available on the Enterprise plan. | high | \["https://acme-analytics.example/security"] | true | 0.0004 |
| acme-analytics.example | Are they SOC 2 certified? | false | The pages read do not mention SOC 2. | medium | \[] | false | 0.0003 |

### How much does it cost?

Transparent pay-per-event pricing — you only pay for what you get, and the
actor **always respects your run budget**: set a maximum total charge and it
stops cleanly at the cap instead of overrunning.

| Event | Price | Charged | Worked example |
| --- | --- | --- | --- |
| `question-answered` | $0.01 | per website × question answered with a verified quote (not-found and unverified answers are free) | 100 vendor sites × 5 questions, 300 answers found = $3.00 (+ AI tokens on your account, ≈ $0.20 on a paid plan with the default model) |
| `apify-actor-start` | $0.00005 | per run per GB of memory (platform start fee) | One run at 0.5 GB = $0.000025 |

### Input options

| Field | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `startUrls` | array | yes | — | The websites to ask about: home pages, full URLs or bare domains (stripe.com), one per line. Bulk lists of hundreds of domains are fine. Each site's start page, sitemap and links are used to pick the pages most likely to answer your questions. |
| `questions` | array | yes | — | Plain-English questions asked of every website, e.g. "Do they offer SSO / SAML?", "What does the Pro plan cost per month?", "Is there a free trial?", "Are they SOC 2 certified?", "Do they ship to Canada?". Each site × question becomes one row. Up to 25 questions. |
| `maxPagesPerSite` | integer | no | `8` | How many pages of each site are read (start page included), chosen by how well their URL and link text match your questions. More pages = better recall on big sites, slower runs. Pages are free; you only pay for answers. |
| `useSitemap` | boolean | no | `true` | Also consider pages listed in the site's sitemap.xml (and robots.txt Sitemap lines), not only those linked from the start page. Finds pricing, security and FAQ pages that aren't in the main menu. |
| `includeSubdomains` | boolean | no | `true` | Treat subdomains (docs., help., support., trust.) as part of the site when choosing pages. |
| `model` | string | no | `"google/gemini-2.5-flash-lite"` | Any OpenRouter model id (see openrouter.ai/models), e.g. google/gemini-2.5-flash-lite (default: cheap and fast), openai/gpt-4o-mini, openai/gpt-4.1-nano or google/gemini-2.5-flash (smarter, ~6× the output price). Tokens are billed to your Apify account at OpenRouter rates. |
| `maxLlmCostUsd` | number | no | `0.25` | Hard cap on the AI token charges this run may cause on your Apify account (estimated, including the 10× free-plan rate when it applies). Before each question the worst-case cost is reserved; the run stops cleanly when the next one would pass the cap. This is separate from the actor's own per-answer fee, which the run's maximum total charge limits. |
| `maxInputTokens` | integer | no | `3000` | How much site text (the best-matching passages) is sent to the model per question. Lower = cheaper; raise it for questions whose answer is spread over several pages. |
| `maxOutputTokens` | integer | no | `500` | max_tokens for each model reply (answer + quotes). 500 is plenty for most questions. |
| `answerLanguage` | string | no | — | Write answers in this language (e.g. English, German), whatever the site's language. Quotes always stay in the site's original words. Empty = the language of your question. |
| `allowPersonalData` | boolean | no | `false` | Off (default): the model is told not to return private individuals' personal contact details, and personal-looking email addresses in answers and quotes are replaced (role mailboxes like info@ or sales@ are kept). Switch on only if you have a lawful basis to process personal data. |
| `respectRobotsTxt` | boolean | no | `true` | Skip pages the site's robots.txt disallows. Recommended. |

### Limits & honest notes

- AI tokens are a second, separate charge on your own Apify account, made by apify/openrouter at OpenRouter's rates (10× on the Apify free plan). They are not part of this actor's pay-per-event price and are not limited by the run's maximum total charge: use maxLlmCostUsd (default $0.25) to cap them. Each row's llmCostUsd is an estimate from the usage OpenRouter reports; your Apify billing page is authoritative.
- Answers come only from the pages that were read (maxPagesPerSite, default 8, chosen by URL, link text and sitemap). If the answer sits on a page that wasn't picked, you get found: false. Raise maxPagesPerSite, or start from a more specific URL (e.g. the docs or trust-center home), for better recall.
- found: false means "not stated on the pages read", not "the company definitely doesn't do this". Treat it as unknown.
- No browser: pages are fetched as static HTML. Sites that render their content with JavaScript only return a free "no-readable-pages" row. Pages behind logins, CAPTCHAs or bot walls are not supported, and the actor does not try to get around them (no proxies, no browser fingerprints). PDFs are not read.
- robots.txt is respected by default (RFC 9309), and requests identify themselves honestly as ActorForge-WebsiteQA. Internal and private network addresses are refused at every redirect hop.
- AI models can make mistakes. Every quote is checked against the site text: answers without a verified quote are marked grounded: false, capped at low confidence and not charged, but always read the evidence for important decisions.
- Site text is treated as data: the model is told to ignore instructions inside pages (prompt-injection defence), but no defence is perfect.
- Personal data: by default the model is told not to return private individuals' personal contact details, and personal-looking email addresses in answers and quotes are replaced (role mailboxes like info@ and sales@ are kept). Only switch allowPersonalData on if you have a lawful basis.

### Related ActorForge actors

- [AI Web Scraper — Structured Data from Any Site](https://apify.com/actor-forge/ai-web-extractor) — structured JSON fields per page by schema, instead of answers to questions
- [Tech Stack Detector](https://apify.com/actor-forge/tech-stack-detector) — which technologies the same domains use, for lead scoring

### Changelog

- **2026-11-11** — Initial release: websites + questions → one grounded answer per site × question with verified quotes and source URLs; sitemap + link-text page ranking, BM25 passage retrieval, apify/openrouter billed to the running account; charged only for verified answers.

***

*Built and maintained by **ActorForge**. Reliability first: every actor in the
portfolio is monitored by an automated nightly self-test, and breakages are
typically fixed the same day.*

# Actor input Schema

## `startUrls` (type: `array`):

The websites to ask about: home pages, full URLs or bare domains (stripe.com), one per line. Bulk lists of hundreds of domains are fine. Each site's start page, sitemap and links are used to pick the pages most likely to answer your questions.

## `questions` (type: `array`):

Plain-English questions asked of every website, e.g. "Do they offer SSO / SAML?", "What does the Pro plan cost per month?", "Is there a free trial?", "Are they SOC 2 certified?", "Do they ship to Canada?". Each site × question becomes one row. Up to 25 questions.

## `maxPagesPerSite` (type: `integer`):

How many pages of each site are read (start page included), chosen by how well their URL and link text match your questions. More pages = better recall on big sites, slower runs. Pages are free; you only pay for answers.

## `useSitemap` (type: `boolean`):

Also consider pages listed in the site's sitemap.xml (and robots.txt Sitemap lines), not only those linked from the start page. Finds pricing, security and FAQ pages that aren't in the main menu.

## `includeSubdomains` (type: `boolean`):

Treat subdomains (docs., help., support., trust.) as part of the site when choosing pages.

## `model` (type: `string`):

Any OpenRouter model id (see openrouter.ai/models), e.g. google/gemini-2.5-flash-lite (default: cheap and fast), openai/gpt-4o-mini, openai/gpt-4.1-nano or google/gemini-2.5-flash (smarter, ~6× the output price). Tokens are billed to your Apify account at OpenRouter rates.

## `maxLlmCostUsd` (type: `number`):

Hard cap on the AI token charges this run may cause on your Apify account (estimated, including the 10× free-plan rate when it applies). Before each question the worst-case cost is reserved; the run stops cleanly when the next one would pass the cap. This is separate from the actor's own per-answer fee, which the run's maximum total charge limits.

## `maxInputTokens` (type: `integer`):

How much site text (the best-matching passages) is sent to the model per question. Lower = cheaper; raise it for questions whose answer is spread over several pages.

## `maxOutputTokens` (type: `integer`):

max_tokens for each model reply (answer + quotes). 500 is plenty for most questions.

## `answerLanguage` (type: `string`):

Write answers in this language (e.g. English, German), whatever the site's language. Quotes always stay in the site's original words. Empty = the language of your question.

## `allowPersonalData` (type: `boolean`):

Off (default): the model is told not to return private individuals' personal contact details, and personal-looking email addresses in answers and quotes are replaced (role mailboxes like info@ or sales@ are kept). Switch on only if you have a lawful basis to process personal data.

## `respectRobotsTxt` (type: `boolean`):

Skip pages the site's robots.txt disallows. Recommended.

## Actor input object example

```json
{
  "startUrls": [
    "https://apify.com"
  ],
  "questions": [
    "Does Apify have a free plan?"
  ],
  "maxPagesPerSite": 3,
  "useSitemap": true,
  "includeSubdomains": true,
  "model": "google/gemini-2.5-flash-lite",
  "maxLlmCostUsd": 0.25,
  "maxInputTokens": 2000,
  "maxOutputTokens": 500,
  "allowPersonalData": false,
  "respectRobotsTxt": true
}
```

# Actor output Schema

## `results` (type: `string`):

One row per website × question: answer, found, confidence, verified quotes with source URLs, pages read, model, tokens and AI token cost. Free status rows explain sites or questions that could not be processed.

## `summary` (type: `string`):

Sites read and failed, answers found / not found / unverified, LLM calls, tokens, AI token cost, why the run stopped and billing.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://apify.com"
    ],
    "questions": [
        "Does Apify have a free plan?"
    ],
    "maxPagesPerSite": 3,
    "maxInputTokens": 2000
};

// Run the Actor and wait for it to finish
const run = await client.actor("actor-forge/website-qa-agent").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": ["https://apify.com"],
    "questions": ["Does Apify have a free plan?"],
    "maxPagesPerSite": 3,
    "maxInputTokens": 2000,
}

# Run the Actor and wait for it to finish
run = client.actor("actor-forge/website-qa-agent").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://apify.com"
  ],
  "questions": [
    "Does Apify have a free plan?"
  ],
  "maxPagesPerSite": 3,
  "maxInputTokens": 2000
}' |
apify call actor-forge/website-qa-agent --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,actor-forge/website-qa-agent"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/YevQj2HCFMfmDNhkD/builds/QhzB276qnJUoP9wDx/openapi.json
