ES EN
How it works

Connections with your AI agent

An Agent Connection is the piece that tells ArtificialQA how to talk to your AI agent. You configure it once and reuse it across every execution you run.

Why the Connection is a separate object

The test (what to test) and the connection (what to test against) are separate, reusable pieces:

How to create a connection

Go to Configuration → AI Agents → Add Connection.

The form asks for:

Browser protocol (Playwright)

For AI agents embedded in a web page. ArtificialQA runs Chromium in headless mode on its cloud workers and simulates user actions against your site. You don't open or see Chromium — all rendering happens server-side.

Available on every plan (including Free).

Browser Configuration

Login Steps

JSON array with the sequence of steps to authenticate before reaching the chat. Supported actions: fill, click, wait, navigate. For example: enter username, enter password, click "Sign in".

Post-Navigation Steps

JSON array with steps that run after the chat page loads. Typical example: click a specific tab, open the bot panel, etc.

Element Selectors

CSS selectors for the key chat elements:

These selectors are optional — if you leave them empty, ArtificialQA uses AI auto-detection to identify them. Only fill them in manually if auto-detection isn't working on your site.

AI Locator Provider

The LLM the platform uses to auto-detect selectors when CSS hints fail. If left empty, the system-default provider is used.

Timeouts

Toggles

HTTP/API protocol (Pro or Enterprise plan)

For AI agents that expose their own endpoint. The cleanest, most efficient option when you have API access. It does not use Login Steps — authentication goes in the request header.

Basic data

Authentication

The form offers 4 options:

Message Configuration

Conversation Mode (for multi-turn cases)

Defines how context is maintained between turns in a conversation:

If you pick Message History, the form asks for the History field path (where the message array goes in the request body, e.g., messages).

Test Connection

Once the connection is saved, use the Test Connection button to validate it. The platform sends a probe message and shows you what was sent, what was received, and how long it took. If it fails, you'll see the exact error:

Multiple environments of the same AI agent

Common pattern: you have your AI agent in Dev, Staging, and Production. You create 3 connections (one per environment) using the Environment field. Then you run the same Test Plan against any of them by picking the connection at Execute time.

💡 Best practice. Keep sensitive credentials (tokens, API keys) up to date. If you rotate them in your AI agent, rotate them in the corresponding connection too. The platform stores them encrypted and never returns them in clear to the UI or API.

Common errors

Next step

Once your connection is configured and validated with Test Connection, you can execute Test Plans using it.