> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neuralfactory.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring Agents

> Fine-tune agent behavior with advanced configuration options.

# Configuring Agents

Fine-tune how your agents behave, respond, and interact with users through advanced configuration options.

## Model settings

### Model selection

Each agent can use a different AI model. Consider:

* **Speed vs. quality** — Faster models are better for simple Q\&A; more capable models handle complex reasoning
* **Context window** — Larger context windows allow longer conversations and more tool outputs
* **Cost** — More capable models typically cost more per request

### Temperature

Not all deployments expose this setting, but when available, temperature controls response randomness:

* **Lower values (0.0–0.3)** — More deterministic, factual responses
* **Higher values (0.7–1.0)** — More creative, varied responses

For knowledge-grounded agents, lower temperature is usually preferred.

## System prompt best practices

The system prompt is the single most impactful configuration. Guidelines:

* **Be specific** — "You are an HR assistant that answers questions about the Employee Handbook" is better than "You are helpful"
* **Define boundaries** — Tell the agent what it should NOT do: "Do not answer questions about compensation or salary"
* **Set the tone** — "Respond in a professional but approachable tone. Use bullet points for lists."
* **Handle edge cases** — "If you cannot find the answer in the knowledge base, say: I don't have that information. Please contact HR directly."

## Knowledge base connections

Agents can search one or more knowledge bases. When multiple KBs are connected:

* The agent searches across all connected KBs simultaneously
* Results are ranked by relevance regardless of which KB they came from
* Citations indicate which source document (and KB) each result came from

## Tool configuration

Enable or disable individual tools per agent. Common configurations:

| Agent type          | Recommended tools                                              |
| ------------------- | -------------------------------------------------------------- |
| Knowledge Q\&A      | Knowledge search                                               |
| Research assistant  | Knowledge search + Web search                                  |
| Developer assistant | Knowledge search + Code execution                              |
| Business operations | Knowledge search + External integrations (Jira, Outlook, etc.) |

## Saving changes

Click **Save** to apply changes. Updates take effect immediately for new conversations. Existing conversations use the updated configuration on the next message.
