Skip to content

Setup Wizard

Holger Imbery edited this page Feb 19, 2026 · 1 revision

Setup Wizard

The Setup Wizard provides a guided, agent-first onboarding workflow for first-time users.

When It Appears

  • Automatically on first run (no agents configured in the database)
  • Manually via Setup Wizard in the sidebar navigation

Step 1 — Create Your First Agent

Configure a Copilot Studio agent with all its Direct Line credentials and evaluation settings.

Required Fields

Field Description Where to Find
Agent Name Descriptive name, e.g. "Production Bot" Your choice
Environment dev / staging / production Your choice
Direct Line Secret Web Channel security secret Copilot Studio → Settings → Security → Web channel security
Bot ID Agent identifier Copilot Studio agent URI
Judge Endpoint Azure AI Foundry or OpenAI-compatible URL Azure Portal → AI Foundry resource → Keys and Endpoint
Judge API Key API key for the judge model Azure Portal → AI Foundry resource → Keys and Endpoint
Judge Model Deployment name Azure AI Foundry Studio → Deployments
Pass Threshold Minimum score (0–1) for a test to pass Default: 0.70

Optional — AI Question Generation

Check Use AI to generate questions and provide:

  • Azure OpenAI endpoint URL
  • Azure OpenAI API key
  • Model deployment name (e.g., gpt-4o-mini)

If left unconfigured, rule-based question generation is used as a fallback.

Agent configuration is stored in the database. Additional agents can be added at any time from the Agents page.


Step 2 — Upload Documents

Upload knowledge base documents to drive AI test generation.

Format Notes
.pdf Text layer extracted automatically via PdfPig
.txt Plain text
.md Markdown

File size limit: 10 MB per file. Upload multiple files if needed.

The application:

  1. Extracts text
  2. Normalizes and chunks the content (sliding window with overlap)
  3. Stores chunks in SQLite for question generation

You can skip this step if you plan to define test cases manually.


Step 3 — Generate Test Questions

Specify how many questions to generate (5–50) and click Generate Questions.

AI generation (if configured in Step 1):

  • Azure OpenAI reads document chunks and produces contextually rich questions
  • Each question includes suggested expected answer, intent, and entities
  • Questions span factual recall, conceptual understanding, application, and edge cases

Rule-based fallback:

  • Key sentences are extracted from chunks
  • Questions are wrapped using a library of starters ("What can you tell me about…", "How does…", etc.)

Actions available:

  • Select/deselect individual questions
  • Select all
  • Regenerate (new set)
  • Add a custom question manually

Step 4 — Create a Test Suite

Provide:

  • Suite Name (required) — e.g., "Product Knowledge Q1"
  • Description (optional)

The suite is automatically associated with the agent created in Step 1.


Step 5 — Run Tests and View Results

Click Run Tests. The application:

  1. Connects to the agent via Direct Line (WebSocket or polling)
  2. Sends each test question
  3. Collects responses
  4. Evaluates each response using the AI Judge
  5. Displays results immediately

Result metrics:

  • Passed / Failed counts and pass rate
  • Average response latency
  • Per-test: question, verdict, judge rationale, overall score, latency, token count

After the Wizard

Next Step Where
Add more agents (dev, staging, prod) Agents → New Agent
Associate a suite with additional agents Test Suites → Edit → Agents tab
Run the same suite against multiple agents Test Suites → Run
View run history and compare agents Dashboard / Runs
Configure team authentication Authentication

Tips

  • Use descriptive agent names that include the environment: "Prod — Customer FAQ"
  • Upload documents that reflect your agent's actual knowledge domain
  • Generate more questions than needed, then hand-pick the best ones
  • Add edge-case questions manually to complement AI-generated ones
  • After the wizard, run the same suite against a staging agent to compare before promotion

Clone this wiki locally