# Creating an Automation Agent

To run the test case, a corresponding aqua agent must be configured. Each agent has an individual access code. The code is generated in aqua and assigned to the agent. To do this, click on aqua in the main window then select -> Project Configuration -> Automation

<figure><img src="/files/F2LPgkSBl1gepvcubMlj" alt=""><figcaption></figcaption></figure>

Click on Add in the menu and choose a name for the new agent. An access code is automatically generated and must be assigned to the agent by the user. To do this, copy the access code to the clipboard or write it down for later.

<figure><img src="/files/4WZ2YaQJVLhiUBuNha8z" alt=""><figcaption></figcaption></figure>

The access key is needed for the configuration of agents. It has to be inserted into config file at local agent.

An XML file can be found in the folder where the agent is located like aquaAgentRanorexGui.exe.config

The generated access code must be entered into this file. The corresponding position is highlighted in the following excerpt:

```xml
<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="agentCode" value="os99axfnqv6u1ujfm79m"/>
    <add key="aquaServiceUrl" value="http://aquaserver/aquaAPI/aquaAgentWebService.asmx"/>
    <…
  </startup>
</configuration>
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aqua-cloud.io/documentation/automation/desktop-client/creating-an-automation-agent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
