Skip to content

AI Assistant Overview

The AI Assistant is your conversational partner for building and managing web automations. Instead of manually configuring commands, selectors, and datasets, you simply describe what you want in plain English, and the AI builds it for you.

The AI Assistant can analyze web pages, generate project configurations, create datasets, set up schedulers, debug failed runs, and answer questions about your projects — all through a simple chat interface.

Changed in v8.3.2: The AI Assistant now uses a full-context injection strategy instead of RAG (Retrieval-Augmented Generation). The complete system prompt and command reference are provided to the AI in every conversation, ensuring it always has access to every command, parameter, and strategy. See Release Notes for details.

AI Assistant chat interface showing a conversation where the user asks to scrape a website and the AI generates a project configuration


The AI Assistant is a versatile tool that can help you with many aspects of web automation:

Capability Description
Build automation projects Describe what you want to automate, and the AI generates the complete project configuration.
Analyze web pages The AI opens the target page, examines its structure, and identifies the best selectors and data patterns.
Generate datasets The AI identifies repeating data patterns on a page and creates dataset configurations automatically.
Create schedulers Ask the AI to schedule a project to run at specific intervals.
Debug failed runs Share error logs with the AI, and it will suggest fixes for broken selectors or commands.
Answer questions Ask about RTILA X features, commands, or best practices.
Modify existing projects Chat about a specific project and ask the AI to make changes.

RTILA X supports multiple AI providers, giving you flexibility in how you power the AI Assistant:

Provider Description Best For
OpenRouter Access to hundreds of cloud AI models (DeepSeek, Claude, Gemini, GPT, and more) through a single API key. Users who want the best quality and don’t mind cloud processing.
Local LLM (GGUF) Download and run any GGUF model from Hugging Face directly on your computer using the bundled llama.cpp server. Maximum privacy. No internet needed after download.
Local LLM (Custom API) Connect to any OpenAI-compatible API endpoint (Ollama, LM Studio, vLLM, text-generation-webui). Users who already have a local AI server running.
RTILA Courtesy AI (Preview) A complimentary shared AI provided by RTILA. No API key needed. Getting started quickly. May change over time.
  • For best quality: Use OpenRouter with a model like google/gemini-3.5-flash-lite or anthropic/claude-sonnet-4.5.
  • For maximum privacy: Use Local LLM (GGUF) with a model like Qwen 2.5 7B or Llama 3.1 8B.
  • For quick testing: Use the RTILA Courtesy AI (no setup required).

Tip: You can switch providers at any time in Preferences → AI Assistant. Your chat history is preserved regardless of which provider you use.


Context Strategy: Full Injection (Not RAG)

Section titled “Context Strategy: Full Injection (Not RAG)”

In v8.3.2, RTILA X uses a full-context injection strategy for the AI Assistant. This means:

  • The complete system prompt (behavioral instructions for the AI) is included in every request.
  • The complete command reference (every command, parameter, selector strategy, and configuration rule) is included in every request.
  • The AI always has access to the full knowledge base — no retrieval, no search, no missing context.

Previous versions used RAG (Retrieval-Augmented Generation), which searched a vector database for relevant context. This was removed because:

  • Retrieved chunks were often irrelevant or misleading.
  • RAG added 350–850ms of latency per message.
  • The embedding model lacked domain specificity for RTILA commands.
  • Full-context injection with KV caching is faster and more reliable.
Provider Context Strategy
OpenRouter Full system prompt + complete reference injected into every request.
Local LLM (GGUF) Full system prompt + complete reference injected once per KV cache slot, reused across all subsequent messages.
Local LLM (Custom API) Full system prompt + complete reference injected into every request.

For local LLM users, the KV cache means the system prompt and reference are processed once and then reused for every subsequent message in the conversation. This makes the full-context approach effectively free after the first message.


Each chat conversation has configurable settings. Click the gear icon next to the chat title to open the Chat Settings dialog.

Chat Settings dialog showing title input, project examples count, and message history dropdown

Setting Type Default Description
Chat Title Text First 50 characters of first message A display name for the chat. Helps you identify conversations in the sidebar.
Project Examples in Context Number (0–49) 0 How many recent projects to include as examples in the AI’s context. Helps the AI understand your project structure and style.
Message History Dropdown Last 7 messages How many past messages to include in the AI’s context for each new request.
Option Value Best For
Last 7 messages 7 Short conversations. Uses less context.
Last 15 messages 15 Medium conversations. Good balance.
Last 30 messages 30 Long conversations. More context for the AI.
Unlimited -1 Very long conversations. Uses the most context.

Tip: If you’re using a local LLM with limited context (e.g., 8K tokens), keep the message history at 7 to avoid running out of context. For cloud models with 128K+ context, you can safely use Unlimited.

When you set “Project Examples in Context” to a number greater than 0, the AI includes that many recent projects as examples in its context. This helps the AI:

  • Understand your naming conventions.
  • Match your project structure and style.
  • Generate configurations that are consistent with your existing projects.

Warning: Setting this too high (e.g., 49) uses a lot of context. If you’re using a local LLM, keep this at 0–5 to avoid context overflow.


The AI Assistant has access to several tools that it can use to analyze web pages and interact with your browser:

Tool Description
analyze_target_page Opens the target URL in a stealth browser, analyzes the page structure, identifies elements, forms, data patterns, and network requests, and returns a detailed report.
navigate_and_analyze Navigates to a secondary page (e.g., a product detail page or a pagination page) for additional analysis.
request_user_input Prompts you for credentials, CAPTCHA solutions, or other information when the AI encounters a login wall or protected content.

When you ask the AI to build a project for a specific URL, it:

  1. Calls analyze_target_page with the URL.
  2. A stealth browser opens the page (using your stealth settings).
  3. The AI examines the page structure, identifies elements, and captures a screenshot.
  4. The analysis results are returned to the AI.
  5. The AI uses this information to generate the best commands and selectors.

When the AI is using a tool, you’ll see an indicator in the chat:

“AI is launching a stealth browser to analyze [URL]…”

And when the analysis completes:

“Page Analysis Complete (Found X elements, Y forms)”


For complex scraping tasks, the AI may need to analyze multiple pages. Here’s how the multi-page workflow works:

  1. You describe the task. For example: “Scrape product details from this listing page, including the detail pages.”
  2. The AI analyzes the listing page. It calls analyze_target_page on the main URL.
  3. The AI identifies detail page links. It recognizes that product cards link to detail pages.
  4. The AI analyzes a detail page. It calls navigate_and_analyze on a sample detail page URL.
  5. The AI generates the complete configuration. It creates commands for navigating to the listing, extracting links, visiting each detail page, and extracting the data.

This multi-page analysis ensures the AI understands the full data structure before generating the project.


When AI Self-Correction is enabled in your project settings, the AI can automatically fix errors during project execution.

  1. During execution, if a run_script command fails, the error is captured.
  2. The error message and the failed script are sent to the AI.
  3. The AI analyzes the error and generates a corrected version of the script.
  4. The corrected script replaces the failed one.
  5. The command is retried.
  • The AI will attempt self-correction up to 3 times per command.
  • After 3 failed attempts, the command fails permanently and the project execution stops.
  • You’ll see a log message indicating the self-correction attempt: “Self-Correction successful. Retrying the automation command (Attempt X/3)”
  1. Select a project.
  2. Click Settings in the ribbon.
  3. Go to the Advanced tab.
  4. Check Enable AI Self-Correction.
  5. Click Save.

Tip: Self-correction is especially useful for websites that change their HTML structure frequently. The AI can adapt to minor selector changes automatically.


When the AI encounters a protected page (login wall, CAPTCHA, 2FA), it uses the request_user_input tool to ask you for help.

  1. The AI detects a login form, CAPTCHA, or 2FA prompt on the page.
  2. It calls request_user_input with a description of what’s needed.
  3. A modal dialog appears in RTILA X asking for the required information.
  4. You enter your credentials or solve the CAPTCHA.
  5. The AI uses your input to proceed with the analysis.
Protection Type What the AI Asks
Login form “I found a login form. Please provide the username and password fields.”
CAPTCHA “I encountered a CAPTCHA. Please solve it or provide the solution.”
2FA “The site requires two-factor authentication. Please provide the code.”
Cookie consent “I found a cookie consent banner. Should I accept or reject it?”

Note: Your credentials are used only for the current analysis session. They are not stored permanently unless you add them as project variables.


The AI builds its context from multiple sources. Understanding these helps you get the best results:

Context Source Description
System prompt Base behavioral instructions telling the AI how to act as an RTILA automation architect.
Complete command reference Every command, parameter, selector strategy, and configuration rule. Always included.
Project examples Recent project configurations (if configured in chat settings).
Current project The project associated with the chat (if any).
Message history Previous messages in the conversation (limited by the Message History setting).
Tool results Results from analyze_target_page and navigate_and_analyze calls.

Changed in v8.3.2: The previous RAG knowledge base context has been replaced by the complete command reference, which is always available to the AI without retrieval errors or relevance tuning.


You can start a chat that’s linked to a specific project. This gives the AI full context about that project, so you can ask it to make changes or debug issues.

  1. Go to Automation Projects.
  2. Select the project you want to chat about.
  3. Click Chat AI in the ribbon toolbar.
  4. A new chat opens, linked to that project.
  5. The AI now has full context about the project’s commands, datasets, and settings.

Once you’re chatting about a specific project, you can ask things like:

  • “Change the selector for the product title to use the data-product-name attribute.”
  • “Add a command to wait for the page to fully load before extracting data.”
  • “Why did my last run fail? Here are the logs.”
  • “Add a new dataset to extract the product images.”

The AI Assistant chat input supports the following keyboard shortcuts:

Shortcut Action
Enter Send the message.
Shift+Enter Insert a new line without sending.

Tip: Use Shift+Enter to write multi-line prompts. This is useful for complex requests with multiple instructions.


The AI Assistant chat interface consists of:

Element Description
Chat sidebar Shows all your chat conversations. Click to switch between them.
Chat messages The conversation history. User messages appear on the right, AI messages on the left.
Chat input The text box at the bottom where you type your messages.
Attachment button Click the + button to attach files or access additional actions.
Send button Click to send your message.
Stop button Appears while the AI is generating. Click to stop generation.

Each AI message has a copy button that appears when you hover over it. Click it to copy the message to your clipboard.

When the AI generates a project configuration, you’ll see a Run Project button below the configuration. Click it to immediately run the generated project.

After a project run completes, you can ask the AI to fetch and analyze the results. The AI will display the data in a formatted table within the chat.


Tip Why It Matters
Be specific about what you want to extract. “Extract product names, prices, and image URLs” is better than “get the data.”
Include the full URL. The AI needs the exact URL to analyze the page.
Mention if the site requires login. The AI will prompt you for credentials.
Use the “Project Examples in Context” setting. Helps the AI match your project style.
Keep message history reasonable. Too much history uses too much context.
Use Shift+Enter for multi-line prompts. Helps you write complex, detailed instructions.
Check the tool indicators. They tell you when the AI is analyzing a page.
Enable Self-Correction for dynamic sites. The AI can fix broken selectors automatically.
Chat about specific projects for modifications. The AI has full context and can make targeted changes.
Use the RTILA Courtesy AI for quick tests. No API key needed. Add your own key for guaranteed access.