> For the complete documentation index, see [llms.txt](https://learning.contextqa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/connect-agents.md).

# Connect Agents for Evaluation

Choose an agent connection in ContextQA and validate connectivity, environment, and modality before creating an evaluation baseline.

> **Documentation owner:** [Deep Barot](https://contextqa.com/academy/) · **Last updated:** November 11, 2026

## Quick answer

ContextQA connects to supported agent platforms or a Custom HTTP endpoint so a project can exercise the target system. Select the connection that matches the agent’s actual interface. Validate the environment and a representative interaction; a saved or connected agent does not establish that its conversation or downstream actions are correct.

## Key takeaways

* Choose a connection by interface and modality, not only by the vendor name.
* Test connectivity separately from task correctness and backend verification.
* Use the current connection form as the authority for required fields.

## Available connection choices

The **New Agent** menu checked on November 11, 2026 offered the following choices. Workspace entitlements and platform updates may affect availability.

| Menu choice                   | Selection guidance                                               |
| ----------------------------- | ---------------------------------------------------------------- |
| Salesforce AgentForce         | Use for the supported AgentForce connection workflow             |
| Amazon Connect                | Use the connection form matching your Connect deployment         |
| AWS Bedrock                   | Use for a supported Bedrock agent interface                      |
| Amazon Connect (WebRTC voice) | Choose when testing the supported WebRTC voice path              |
| Snowflake Cortex Agent        | Use for a supported Cortex Agent connection                      |
| Custom HTTP                   | Use when an agent is exposed through a compatible HTTP interface |
| Amazon Lex (text)             | Evaluate the text interface rather than assuming audio coverage  |
| Phone (text)                  | Follow this route’s form and modality requirements               |
| Phone (voice)                 | Place a conversational voice test to a telephone target          |

A phone-accessible agent can be evaluated through its telephone interface. That does not imply a native connector to every vendor behind the phone number.

## Connect and validate

1. Open **Agents → New Agent** and select the platform.
2. Provide a recognizable name and the endpoint, account, or authentication fields requested by the selected form.
3. Confirm that the credentials and destination belong to the intended test environment.
4. Use the available connection test after reviewing its effect. For phone workflows, this can initiate external activity.
5. Run one representative evaluation case. Verify that the correct agent responds and that the expected session context is preserved.

For **Custom HTTP**, confirm the request, response, and session requirements shown by the connector. Do not assume an arbitrary chat-completions endpoint will work without a compatible contract. Keep secrets in supported protected fields rather than in names, scenario text, or screenshots.

## Diagnose connection failures

| Observation                        | Check first                                                                                                                              |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Unauthorized or forbidden response | Credential validity, account scope, and endpoint permissions                                                                             |
| Rate-limit response                | Provider limits and the configured run concurrency                                                                                       |
| Timeout or very slow response      | Endpoint health, upstream dependencies, and one-case behavior                                                                            |
| Connected but incorrect behavior   | Agent identity, environment, session state, and test inputs                                                                              |
| Text works but voice fails         | The separate audio path and [voice troubleshooting](https://learning.contextqa.com/ai-agent-testing/voice-ai-testing/troubleshooting.md) |

Keep transport errors separate from semantic failures in the release review. A timeout may prevent evaluation of the intended business rule; it is not evidence that the rule passed.

For telephone setup, follow [the voice quickstart](https://learning.contextqa.com/ai-agent-testing/voice-ai-testing/quickstart.md). For the remaining project workflow, continue with [your first evaluation](https://learning.contextqa.com/ai-agent-testing/agent-evaluation/quickstart.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://learning.contextqa.com/ai-agent-testing/agent-evaluation/connect-agents.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
